Procedure
1. Set at least one breakpoint in the current script.
2. Switch to WinCC Runtime and trigger an action which causes the script to be
executed.
The Debugger stops at the first breakpoint.
3. Open the "View" menu and activate the "Command Window" entry.
The "Command Window" opens.
4. In order to determine the value of a tag or property, enter a "?" followed by a Space and
the name of the tag or property whose value is to be determined, e.g. "?myTag".
Press <RETURN> to execute the command.
5. In order to modify the value of a tag/property, assign a value in the VBS syntax.
See also
Principles of Debugging (Page 93)
Executing Script Commands (Page 107)
How to Set Bookmarks in Scripts (Page 105)
Deleting Breakpoints (Page 104)
Setting Breakpoints (Page 103)
Selecting a Script for Editing (Page 100)
Action and Procedure Names in the Debugger (Page 99)
Structure of VBScript Files (Page 97)
Components of the Microsoft Script Debuggers (Page 95)
How to Activate the Debugger (Page 91)
Testing with the Debugger (Page 90)
Diagnostics (Page 83)
1.12.4.13 Executing Script Commands
Introduction
While a script is running in Runtime, the "Command Window" of the debugger can be used to
execute script commands directly and thus manipulate the running of the current script. The
script
commands can be executed directly for test purposes without creating the command in
a script and activating it. It is possible, for example:
● To retrieve methods
● To retrieve procedures
● To manipulate object properties
"Command Window" can basically be used to execute all commands which can also be
executed from a VBScript.
VBS for Creating Procedures and Actions
1.12 Diagnostics
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
System Manual, 11/2008,
107