5/26/2014 11:12 AM | |
Posts: 12 Rating: (0) |
Hi Experts, In WinCC i want to and two of WinCC tags and assign the result to another tag, Is that possible? Thanks Kaveh |
5/26/2014 11:36 AM | |
Joined: 10/3/2010 Last visit: 3/14/2024 Posts: 1552 Rating: (188) |
Yes you can for example with global script quick sample in case of binary tags Dim var1,var2,var3 var1 = HMIRuntime.Tags("NewTag_1").Read(1) var2 = HMIRuntime.Tags("NewTag_2").Read(1) var3 = var1 And var2 HMIRuntime.Tags("NewTag_3").Write var3,1 use this in global script with defined trigger |
B r g d s , |
|
This contribution was helpful to1 thankful Users |
5/26/2014 6:02 PM | |
Joined: 10/3/2010 Last visit: 3/14/2024 Posts: 1552 Rating: (188) |
Kaveh_K, just want to add the following: it depends on whenever you want the result. Is it only when a particular screen is open in runtime (then go can use I/O-fields) or do you want the resulting 3rd tag updated the whole time during runtime, independent of the active picture (here you choose global script). further it's up to you to use c-script or vbs alternative. |
B r g d s , |
|
This contribution was helpful to2 thankful Users |
5/26/2014 6:14 PM | |
Joined: 10/3/2010 Last visit: 3/14/2024 Posts: 1552 Rating: (188) |
Kaveh_K in that case, I would always suggest to do the logic at PLC. Most customers don't like logics at scada-level. |
B r g d s , |
|
This contribution was helpful to3 thankful Users |
Follow us on