5/21/2014 6:50 AM | |
Joined: 10/3/2010 Last visit: 2/12/2025 Posts: 1566 Rating:
|
The thing is that i don't want to create a tag for each script, and don't want to make a longer script with conditionals. hope someone have some ideas, or someone ttell me if it is posible or not Working on TIA Portal V11. Thanks In advanced Hey Juan.Mechatronic, this is the WinCC part of the forum, this question belongs in the TIA part instead. You might get some answers here that can work in WinCC but maybe not in TIA. In WinCC you can create a Global Action with your single tag as active trigger. On change of your tag value, you can check the value in this Global Action script. Then you can call the corresponding script: tag=1 -> call global script1 tag=2 -> call global script2 .... tag=5 -> call global script5 hope this can help you on the way, check sample in attachment AttachmentDoc1.zip (844 Downloads) |
Last edited by: SteBo at: 5/21/2014 8:11 AMadded attachment example Last edited by: SteBo at: 5/21/2014 6:51 AMB r g d s , |
|
This contribution was helpful to
2 thankful Users |
5/21/2014 9:03 AM | |
Joined: 11/26/2011 Last visit: 12/12/2024 Posts: 508 Rating:
|
Please find the manual for Wincc ScriptingHERE. Look for Chapter 1.8.2 regards Global Scripts. Your query can solved by using global scripts
|
This contribution was helpful to
1 thankful Users |
5/21/2014 9:15 AM | |
Joined: 1/5/2011 Last visit: 1/28/2025 Posts: 815 Rating:
|
Hi, I think in TiA portal V11 global scripts are not available, you can use scheduled tasks (option2) or trigger on clock memory bit(option1) I have suggested, but I do not advice option1 (see previous post). Kr, Jens
|
Last edited by: Jens_app at: 5/21/2014 9:17 AMfixed layout bug Keep it simple and on-topic. |
|
This contribution was helpful to
1 thankful Users |
5/22/2014 7:10 AM | |
Posts: 98 Rating:
|
Regars, Andrew Thanks a lotJens_appundandre_pulse I haven't worked with Scheduled Task i'll make some test with that option, becasuse it's very similar even i see it saves me time making code. Thanks
|
This contribution was helpful to
1 thankful Users |
5/26/2014 3:29 AM | |
Posts: 98 Rating:
|
Hi, Yes, but it's what I didn't want Thanks anyway Best regards.
|
Follow us on