See also
Multiple Use of Procedures and Actions (Page 23)
Saving a Procedure (Page 52)
Protecting a Module with a Password (Page 51)
Adding Module-related Information (Page 49)
Using Standard and Project Procedures (Page 47)
How to Write Procedure Codes (Page 45)
Creating a New Procedure (Page 42)
Modules and Procedures (Page 18)
Creating and Editing Procedures (Page 39)
1.10 Creating and Editing Actions
1.10.1 Creating and Editing Actions
Introduction
When using VBS in WinCC, there is no differentiation between local (valid for entire project)
and global (valid on all computers) actions, as opposed to C. A configured action is always
valid globally.
A copied action is available for use in Runtime following a restart or opening and saving the
action. The become visible in the editor when the view is updated.
VBS actions can be used in to make graphic objects and object properties dynamic in Runtime
or to execute picture-independent actions.
Note
Please note that the object name length of objects made dynamic in Graphics Designer is
limited to approx. 200 characters, and each special character used in an object name is
converted to five characters in the script files. The special characters are represented by a
four-place
hexadecimal code behind the preceding X. If the name of an object made dynamic
is too long, a corresponding error message appears. Further information is available in this
help under "Structure of VBScript Files".
NOTICE
If you make an object property dynamic with a VBS action via the return value of a script, the
value of the object property is written only if it has changed in relation to the last script run.
It is not considered if the value had been changed from another location.
Therefore it is illegal to change properties which have been made dynamic by VBS action
via the return value from another location (e.g., other C scripts or VBS scripts).
VBS for Creating Procedures and Actions
1.10 Creating and Editing Actions
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
55