6/27/2024 8:47 AM | |
Joined: 1/21/2013 Last visit: 9/13/2024 Posts: 3096 Rating: (483)
|
Hi F a r i, A possible reason for not being able to write HMI tags in a scheduled task would be using the local session scope for the tags. So knowing more about your HMI tags and your system in general would help us. You are right, from a performance point of view it is not recommended to use scripts for dynamization. You should use tags or expressions instead. Using a script in a scheduled task to write a tag for dynamization will probably result in worse performance. Kind regards |
6/27/2024 1:01 PM | |
Joined: 10/11/2018 Last visit: 9/12/2024 Posts: 10 Rating: (0) |
Hi Stefan, thanks for your reply. I'm using both connection and internal tags. Contactor is to check my motor is turned on, and Angulo's purpose is to make a svg file rotate (if I change it manually, it works, since it's associated to rotation - angle property).
At first glance I don't know how I could use Expressions for this dynamization: I've always used it for conditionals "if this and that happens, you do this" but in this case I would have to jump through those conditions (do this, wait, do that, wait). Can I code inside them? As far as I remember, I can only use logic gates AND, OR, (...), math operators +, %, (...) and relational operators &&, =!, (...). At this point, best solution will probably be creating a "clock" variable inside PLC and use a PowerTag (I only have 95%+ of them available haha). Thanks for your suggestion! |
From LIESA to the world. Thanks for reading my message! |
|
6/27/2024 1:50 PM | |
Joined: 3/30/2020 Last visit: 9/13/2024 Posts: 4756 Rating: (977) |
I am keeping my eye on using an animated GIF. But we are not using Unified yet. The following link may be useful to you: Add animation to WinCC Unified --
@Murof: As related to this topic -- |
Last edited by: qwazee at: 06/27/2024 13:50:56Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
7/5/2024 7:07 AM | |
Joined: 8/3/2009 Last visit: 9/13/2024 Posts: 13684 Rating: (1726)
|
Hello Timer are a useful thing in WinCC Unified. There are two different ones. If you define them in global Script area you can use it in the screen context for multible usecases. Here are a few information: https://support.industry.siemens.com/cs/ww/en/view/109896132/157858368651 Bye Murof |
If this Information really helps, you could use the Rate function |
|
This contribution was helpful to1 thankful Users |
Follow us on