Note
Actions can include calls to project and standard functions. These can in turn have calls to
project and standard functions etc. Therefore, when importing actions from other sources,
you must make sure that the current project has all necessary functions.
Particular attention is called for whenever the actions were imported from a different
computer. Since standard functions can be customized by the user, it is possible that the
standard functions called in the action have a different functionality on the source computer
than the ones with the same names on the target computer.
See also
How to Import an Action (Page 821)
How to Export an Action (Page 821)
2.14 Runtime Behavior of Actions
2.14.1 Runtime Behavior of Actions
Analysis of Runtime Behavior
WinCC provides a range of tools with which the Runtime behavior of actions can be analyzed.
These are the application windows GSC Runtime and GSC Diagnose plus the application
apdiag.exe.
To use the application windows GSC Runtime and GSC Diagnose, they must be added to a
process
picture. This may be a process picture made especially for diagnostic purposes. This
picture is then called in Runtime.
The application windows are used for the following strategies:
● GSC Runtime supplies information about the dynamic behavior of all (Global Script) actions,
supports the individual start and the Start and End Action for each individual action and
provides an entry point into Global Script Editor, while Runtime is active.
● GSC Diagnose outputs the printf instructions (contained in the actions) in the order in which
they are called. This also applies to the printf instructions in functions that are called in
actions. Through a well thought out use of printf instructions, for example to output the
values
of tags, it is possible to follow the action's flow and that of the called functions. Even
error conditions, which result in a call to the OnErrorExecute function, are displayed in the
GSC Diagnose window.
See also
GSC Diagnose (Page 830)
GSC Runtime (Page 825)
ANSI-C for Creating Functions and Actions
2.14 Runtime Behavior of Actions
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
824
System Manual, 11/2008,