Professional Documents
Culture Documents
04 en Scripting
04 en Scripting
Scripting
Screen objects
Alarming
Logging
Scheduled Tasks
Search context
Find script code in global scripts and screens via search in project
Screen_3 Screen_4
Hide or unhide
the GDA
Have a quick overview of the GDA during the editing of the local scripts without switching the GDA on/off.
Alias in GDA
Updated reference
in script
Updated reference in
script
Definition of
global script
function Select the global
script function by the
autocompletion
Handle easily the renaming of global script functions of the imported modules.
Change the global function name and all the usages in scripts will be updated.
Use case:
The customer wants to change the screen triggered by a PLC tag which contains the screen
number. The screen number refers to a particular state of the plant.
Displays all alarm information Get all names of the current screen
in the trace viewer elements. Can be used for mass
operation like change color
Scripting snippet
Use the new code snippet also in faceplates to change the appearance of the screen items to your needs
depending on the authorization of the logged-in user for specific screen items.
list recursive
files and
folders
filter
New Script function “HMIRuntime.FileSystem.Browse” lists folders and files in a specific directory
Subscribe to multiple
tags
Snippet available
LIVE DEMO
• HMIRuntime.FileSystem.Browse
H A N D S O N in 10 min
• HMIRuntime.FileSystem.Browse
H A N D S O N in 10 min
• Change the style of the “start button” upon
authorization in the faceplate in faceplate created at
the hands-on
LIVE DEMO
H A N D S O N in 15 min
© Siemens 2022