Every SFC object supplies implicit variables for you to monitor the status of steps and IEC actions at runtime. These implicit variables are automatically declared for each step and each IEC action.
The implicit variables are structure instances of the type SFCStepType
for steps and type SFCActionType
for actions. The variables have the same names as their elements, for example "step1"
variable name for "step1" step name. The structure members describe the status of
a step or action or the currently elapsed time in an active step.
In the ⮫ “SFC Element Properties ”, you can define whether or not CODESYS should export a symbol definition for this ⮫ flag to the symbol configuration.
-
Step and action status
-
Linked list of elements in the SFC chart, implicit variable
_MetaStep
-
Access to implicit variables