1/21/2021 9:12 AM | |
Joined: 9/16/2013 Last visit: 1/27/2022 Posts: 17 Rating:
|
Hello, How do I generate an alarm if an error occurs within a java script execution, please? Thank you |
2/6/2021 11:23 PM | |
Joined: 2/6/2021 Last visit: 4/1/2024 Posts: 9 Rating:
|
Stateless entries in the alarm log can be created using the system function CreateSystemInformation(), see here: https://support.industry.siemens.com/cs/mdm/109773780?c=126075170955&lc=en-WW There is also a snippet for it in the Editor. Stateful alarms are only possible by using Tags. Define an alarm which is triggered by a Tag in the alarm editor and set the tag value from the script. When the alarm uses auxiliary values, they have to be set before or at latest at the same time as the trigger tag. It should work when you use a TagSet and set all the Tags with one write call, although I haven't tested it. Please also have a look at this posting: https://support.industry.siemens.com/tf/ww/en/posts/wincc-unified-simple-sample-operator-alarms-user-alarms/252768/?page=0&pageSize=10e=0&pageSize=10 Michael |
Last edited by: turner44 at: 02/07/2021 01:06:17 |
|
This contribution was helpful to
1 thankful Users |
Follow us on