(1)| 11/19/2021 10:30 AM | |
|
Joined: 9/30/2016 Last visit: 1/12/2026 Posts: 953 Rating:
|
Please also see the attached screenshots. I have (base on a somewhat similar VB script) tied to make a VB script to do the following: A value (between 0 and 450) is typed into WinCC (Rec_19). If Rec_19 < 300 the value 45 is written into Rec_18. If Rec_19 > 300 the valy 35 is written into Rec_18. But unfortunately when I run the OS similation the value of Rec_18 stays at 0 no matter what value I type into Rec_19. What is wrong with the VB scripts and how must the script look to do as intended? AttachmentFC2 Fedt & MaxS A.zip (158 Downloads) |
| 11/19/2021 11:49 AM | |
|
Posts: 7298 Rating:
|
Hello xmnj, 1. there is the question about the different tagnames. 2. in WinCC V7.x the "SmartTags" are only used in Faceplats, There are some examples for reading and writing WinCC-Tags https://support.industry.siemens.com/cs/ww/en/view/109792585/45950901771
Georg Berghof |
| 11/19/2021 12:25 PM | |
|
Joined: 9/30/2016 Last visit: 1/12/2026 Posts: 953 Rating:
|
Hello again Georg, Please look at the attached acreenshots. 1. I don't know why our automation vendor have used the Internal tags ("MaskineRecpt_REC018" and "MaskineRecpt_REC019") as the output value and the TCP/IP tags ("REC018" or "REC019") as the variable in the VB script. But they did this and it is working on that machine. I will try to use "REC018" or "REC019" in both cases but what are the internal tags used for in that case? 2. I am sure you are right but in this WinCC 7.5 machine the script is as I have shown with the screenshots and it is actually working. I would prefer to make the new logic as similar as possible to the existing logic since it will create confusion is each man with a PG decide to do it in his own way. I will try to RTFM but you are often much better of explaining things. :-)
AttachmentFC2 Fedt & MaxS C.zip (187 Downloads) |
Follow us on