Drive plc developer studio – Lenze DDS v2.3 User Manual
Page 54

Drive PLC Developer Studio
Programming languages
4-16
l
DDS EN 2.3
Example of a declaration
PROGRAM flags
VAR
SFCEnableLinit:BOOL;
SFCError:BOOL;
SFCErrorStep:STRING;
SFCReset AT %IX1.0.2: BOOL;
SFCInit AT %IX1.0.3:BOOL;
END_VAR
SFCQuitError
Processing of the SFC diagram will be suspended for as long as this Boolean variable remains TRUE.
Timeouts in variables SFCError will be reset. All previous times in the active steps will be reset when
the variable is reset to FALSE.
SFCPause
Processing of the SFC diagram will be suspended for as long as this Boolean variable remains TRUE.
SFCError
This Boolean variable becomes TRUE if a timeout occurred in an SFC diagram. If variable SFCError
is not reset again, and the first timeout is then followed by a second one in the program, the second
one will not be registered.
SFCTrans
This Boolean variable becomes TRUE when a transition switches.
SFCErrorStep
This variable is a STRING-type variable that, if SFCError registers a timeout, stores the name of the
step that causes the timeout.
SFCErrorPOU
This STRING-type variable, after a timeout, contains the name of the organization unit in which the
timeout occurred.
SFCCurrentStep
This variable is a STRING-type variable that saves the name of the active step independently of the
watchdog function. In parallel branching, the step is saved in the branch at the extreme right.
SFCTip, SFCTipMode
These BOOL-type variables permit the SFC tip mode. If that is activated via
SFCTipMode
= TRUE, the next step can be reached only if SFCTip is set to TRUE. As long as
SFCTipMode
is set to TRUE, the transitions may also be used for switching.
SFCErrorAnalyzation
This variable is a STRING-type variable. If the SFC flag SFCError registers a timeout,
SFCErrorAnalyzation
outputs the responsible variables or transition expressions.
This function requires the library Analyzation.lib to be integrated into the DDS project.
Note!
On some target systems, the length of the output of variables or transition expressions can be
limited.
In some cases the string routines can only process 20 characters.
Show/Hide Bookmarks