Implicit variables in sfc, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual
Page 68

L-force | PLC Designer
What is What in PLC Designer
66
DMS 3.2 EN 02/2011 TD29
Note!
When an action has been deactivated it will be executed once more. This means
that each action at least is executed twice (also an action with qualifier P).
Implicit variables in SFC
In SFC implicitly declared variables ( "flags") can be used to scan the status of steps
and actions as well as the time of steps. These flags each are set at the beginning of a
cycle. For IEC steps and IEC actions they are provided by the library iecsfc.lib
(structures SFCStepType and SFCActionType), which is included automatically in a
project, for the simplified steps they are implemented in »PLC Designer«.
Scan of the step or action status via boolean variables:
• For IEC steps:
current activation status.
cycle. If
following cycle, i.e.
of a cycle.
• For simplified steps:
step will be executed in the current cycle. If _
executed in the following cycle, i.e.
the beginning of a cycle.
• For IEC-actions:
(
Time of a step via TIME variables:
The following implicit variables give the current time span which has passed since the
step had got active; this is only for steps which have a minimum time configured in
the step attributes.
• For IEC steps:
• For simplified steps: _time
used for scan purposes, it also must be declared explicitly as a TIME variable; e.g.
"_timeStep1 : TIME;"
• For IEC actions: the implicit time variables are not used.