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

Page 186

Advertising
background image

Drive PLC Developer Studio

Editors

7-64

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

Variable of type BOOL.

Processing of the SFC diagram will be suspended as long as this variable is TRUE , resetting a
potential timeout in variable SFCError . Resetting the variable to FALSE will reset all previous times
in the active steps.

SFCPause

Variable of type BOOL.

Processing of the SFC diagram will be suspended as long as this variable is TRUE .

SFCTrans

Variable of type BOOL.

This variable is set to TRUE if a transition becomes TRUE.

SFCError

Variable of type BOOL.

This variable will be set if a timeout has occurred in an SFC diagram.

SFCErrorStep

Variable of type String.

In the event of timeout, this variable saves the name of the step that caused the timeout.

SFCErrorPOU

Variable of type String.

In the event of a timeout, this variable saves the name of the organization unit in which the
timeout occurred.

SFCCurrentStep

Variable of type String.

This variable saves the name of the active step independently of the time limits.

In the case of parallel branching, the step will be saved in the branch on the extreme right.

SFCTip, SFCTipMode

These variables of type BOOL allow the tip area of SFC. If that is activated by
SFCTipMode

= TRUE , advance to the next step is possible only by setting SFCTip to TRUE. As long

as SFCTipMode is set to TRUE , advance is also possible via the transitions.

SFCErrorAnalyzation

This

variable is

of

type STRING.

If

the SFC flag

SFCError

registers

a timeout,

SFCErrorAnalyzation

will output the responsible variables or transition expressions.

This function requires the library Analyzation.lib to be integrated into the DDS project.

Show/Hide Bookmarks

Advertising