5/20/2025 10:19 AM | |
Joined: 1/21/2013 Last visit: 9/11/2025 Posts: 4102 Rating:
|
Hi The "GetActiveAlarms" method is asynchronous and returns a Promise rather than an AlarmResult. Therefore, it is better to evaluate the promise using the then() and catch() functions.
Kind regards |
5/20/2025 12:07 PM | |
Joined: 2/12/2025 Last visit: 8/5/2025 Posts: 6 Rating:
|
So it should look like this ? |
5/20/2025 1:25 PM | |
Joined: 1/21/2013 Last visit: 9/11/2025 Posts: 4102 Rating:
|
Hi Radim, As a quick tip, you can debug scripts when using WinCC Unified PC RT or the simulation. This will provide more information on why the script is failing. Kind regards |
Follow us on