4/30/2024 8:15 PM | |
Joined: 12/14/2022 Last visit: 1/16/2025 Posts: 78 Rating: (9) |
Try writing the text property directly
|
igorcoraine.github.io |
|
4/30/2024 8:36 PM | |
Joined: 1/21/2013 Last visit: 1/23/2025 Posts: 3451 Rating: (543)
|
Hi, I am missing the trigger information for the script. If you have not specified a trigger and you are using a current version of WinCC Unified, the trigger will be set to 'Tags (automatic)'. In this case, the script will be triggered on changes to the tag "dbTest_Unified", which is definitely not intended. However, for me, the main cause of your problem is the position of the return statement. Because GetActiveAlarms is asynchronous, the return value of the txtFirstAlarm_Text_Trigger function is written before the GetActiveAlarms promise is fulfilled. A few additional notes:
Kind regards |
5/1/2024 6:57 AM | |
Posts: 7 Rating: (0) |
This makes a lot of sense... I´ll give this a try, this will be most likely the problem... Will post again if this fixes the problem. Usually I use let but when I make a script Siemens automaticly makes the return a var? I´ll take a look into the alarm subscriptions. Thanks! |
Follow us on