5/12/2022 5:04 PM | |
Posts: 5 Rating: (0) |
Hi, I have a small script (Unified V17) where I want to detect if there are alarms active. If that's the case, I write an HMI-tag to TRUE. If there are no alarms the function gives an error I assume. That's why the catch(function(errorCode) is used. When that is the case I write the tag to FALSE.
When I place this script on a property of a random screenobject with trigger 1s it works, but when I try to do the same in 'Scheduled tasks', it does not work. Testbit1 gets written, so the script runs. Testbit2 does not get written. So the script is stopped by the GetActiveAlarms-function. Does anybody know why? Kind regards ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 05/13/2022 10:01:14New subject after splitting |
|
Follow us on