Implicit Variables
At compile time, a structure variable with the name UML_SC_<object name>
is generated automatically for each graphical statechart object. This variable provides access to the implicit data of the object. The data provides information on how the object is structured. At runtime, it provides information on the state of the diagram. For example, that the end state has already been reached (InFinalState
), that the program was aborted (Abort
), or that the application has been reinitialized (AutoReInit
).
Tip
When you use the input assistance for the implementation in the statechart editor and the Input Assistant context dialog is open, the implicit variable UML_SC_PLC_PRG
is listed in the Variables category.
You can monitor the structure in monitoring and access the structure components programmatically.
Important
Write access to the array States
is execution-critical. Write access makes sense only for AutoReInit
, ReInit
, and Abort
.
In the sample project SimplePLCChart.project
, the implicit structure UML_SC_PLC_PRG
is created for the object PLC_PRG
.
