3/29/2022 2:57 PM | |
Joined: 6/22/2020 Last visit: 8/30/2024 Posts: 118 Rating:
|
Here https://support.industry.siemens.com/cs/us/en/view/109758536 you can find two interesting documents regarding JavaScript in Unified. |
If this post was helpful, please rate it! |
|
1/11/2023 10:10 AM | |
Joined: 9/23/2005 Last visit: 8/27/2024 Posts: 4347 Rating:
|
Hi, As from TIA V18 it is possible to save scripts modules in the project library as Type.This facilitates version management and continuous code improvement. TIPs:
Example:. Global definition:
This declaration module is actualized automatically when a new type is released. Sample project AttachmentProject25_20230103_0900.zip (672 Downloads) |
Denilson Pegaia |
|
1/31/2024 11:41 AM | |
Joined: 2/11/2020 Last visit: 8/20/2024 Posts: 8 Rating:
|
It is not working. There is not Alarm Subscription in this project. How it should works? I create this javascript on the load event of start screen: [snip] It works. But only a few times after project started. After some time it looks as subscription was canceled. It never jumps to onAlarm... Any Idea why? Many alarms can shutdown something? Thanks for any idea. Attachmentjavascript.txt (282 Downloads) |
Last edited by: Jen_Moderator at: 02/01/2024 09:00:20Script added as .txt file. |
|
Follow us on