See also
VBS Reference (Page 109)
VBScript Editors (Page 28)
Basic Principles of VBScript (Page 760)
Actions (Page 21)
Modules and Procedures (Page 18)
Using Visual Basic Script in WinCC (Page 14)
1.7 Using Global Tags in VBS
Introduction
Global tags can be defined in the Global Script Editor which can then be used in all actions
and procedures.
Using Global Tags in Graphics Designer and Global Script
Observe the following conditions when using global tags in Graphics Designer and Global
Script:
● In order to use a global tag in an action in Graphics Designer, call in the procedure in which
the tag is defined so that the associated module is loaded in Runtime.
● In order to use a global tag in an action in Global Script, at least one procedure must be
activated from the module in at least one global action in which the tag is defined so that
the module is loaded in Global Script Runtime. This does not need to be the procedure in
which the tag was defined.
This process is necessary because actions from Global Script and Graphics Designer are
processed independently of each other in Runtime. There is no common data area between
the two Runtime systems.
If you need to synchronize actions from Global Script and Graphics Designer, use the DataSet
object or internal WinCC tags.
Using Global Tags in Graphics Designer
When using global tags in Graphics Designer, observe the following conditions:
● In order to use a global tag in cyclic or tag triggered action in Graphics Designer, call in the
procedure in which the tag is defined. This also applies when the tag has already been
called in an event triggered action.
● In order to use a global tag in an event triggered action in Graphics Designer, call in the
procedure in which the tag is defined. This also applies when the tag has already been
called in a cyclic or tag triggered action.
VBS for Creating Procedures and Actions
1.7 Using Global Tags in VBS
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
27