Using scripts
TIA Portal's Unified system can make use of JavaScript against screen object properties. Historically, Siemens used Visual Basic Script (VBS) for dynamization in an HMI environment; however, Unified has moved to a more advanced and commonplace JavaScript language.
Scripting can be used by setting Dynamization to Script, as illustrated in the following screenshot:
When Script is used as the Dynamization type, a script file is displayed to the right of the window.
The script file can be used to perform more complex evaluations of data before setting the associated properties. This allows greater flexibility and customization than other dynamization options.
Construction of script files
Scripts are semi-constructed when the Script option is selected from the Dynamization list. TIA Portal will provide the necessary function...