Function description

This procedure is to set a step in a sequence.

NOTE: The procedure can only be used in the operation mode "Multi-Token".

This procedure sets the specified step, in addition to the already active step(s). Already active steps are not affected by this procedure.

Since the step stays set as long as this procedure (SETSTEP) is running (the procedure is run cyclically), you should take one of the following measures to prevent a permanent setting of the step:

  • Conditional call of the procedure SETSTEP via the input EN.

  • Conditional call of the procedure SETSTEP via e.g. IF statement in the programming language ST.

  • Use edge recognition (R_TRIG) at the input.

EN and ENO can be configured as additional parameters.

Representation in FBD

Representation:

Representation in LD

Representation:

Representation in IL

Representation:

LD StepName
SETSTEP

Representation in ST

Representation:

SETSTEP (StepName);

Parameter description

Description of the input parameter:

Parameter

Data type

Meaning

StepName

SFCSTEP_STATE

Assignment of the step to be set via the name of the step.

(If an SFC step is created then it is automatically assigned with a variable of data type SFCSTEP_STATE. The variable that is created always has the name of the respective SFC step.)