L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 70

Advertising
background image

L-force | PLC Designer

What is What in PLC Designer

68

DMS 3.2 EN 02/2011 TD29



SFCError: This Boolean variable is TRUE when a timeout has occurred in a SFC diagram.
If another timeout occurs in a program after the first one, it will not be registered
unless the variable SFCError is reset first. It is a pre-condition that SFCError is defined,
if you want to use the other time-controlling flags (SFCErrorStep, SFCErrorPOU,
SFCQuitError, SFCErrorAnalyzation).

SFCTrans: This boolean variable takes on the value TRUE when a transition is actuated.

SFCErrorStep: This variable is of the type STRING. If SFCError registers a timeout, in this
variable is stored the name of the step which has caused the timeout. It is a pre-

condition that the flag SFCError has been defined also, which registers any timeout in
the SFC.

SFCErrorPOU: This variable of the type STRING contains the name of the block in
which a timeout has occurred. It is a pre-condition that the flag SFCError has been
defined also, which registers any timeout in the SFC.

SFCCurrentStep: This variable is of the type STRING. The name of the step is stored in
this variable which is active, independently of the time monitoring. In the case of
simultaneous sequences the step is stored in the branch on the outer right. No further
timeout will be registered if a timeout occurs and the variable SFCError is not reset
again.

SFCErrorAnalyzationTable: This variable of type ARRAY [0..n] OF ExpressionResult
provides the result of an analyzation of a transition expression. For each component
of the expression, which is contributing to a FALSE of the transition and thereby to a
timeout of the preceding step, the following information is written to the structure
ExpressionResult: name, address, comment, current value.

This is possible for maximum 16 components (variables), thus the array range is max.
0..15).

The structure ExpressionResult as well as the implicitly used analyzation modules are
provided with the library AnalyzationNew.lib. The analyzation modules also can be
used explicitly in other POUs, which are not programmed in SFC.

It is a pre-condition for the analyzation of a transition expression, that a timeout is
registered in the preceding step. So a time monitoring must be implemented there

and also the variable SFCError (see above) must be defined in the declaration window.

SFCTip, SFCTipMode: This variables of type BOOL allow inching mode of the SFC. When

this is switched on by SFCTipMode=TRUE, it is only possible to skip to the next step if
SFCTip is set to TRUE. As long as SFCTipMode is set to FALSE, it is possible to skip even

over transitions.

Advertising