3 entry and exit action, 4 transition/ transition condition, 5 active step – Lenze DDS v2.3 User Manual

Page 50: Entry and exit action, Transition/transition condition, Active step, Drive plc developer studio

Advertising
background image

Drive PLC Developer Studio

Programming languages

4-12

l

DDS EN 2.3

4.4.3

Entry and exit action

In addition to the step action, a step may be added an entry action and an exit action.

An entry action is executed once-only immediately after the step has been activated.

An exit action is executed once-only before the step is deactivated.

Entry and exit actions can be implemented in any language.

A step with entry action is identified with an ’E’ in the bottom left-hand corner, the exit action with
an ’X’ in the bottom right-hand corner.

Double-click the respective corner in the step to edit an entry or exit action.

Example of a step with entry and exit actions:

Note!

Any exit action contained in the active step will be executed during the next cycle only, provided
the subsequent transition is TRUE.

4.4.4

Transition/ transition condition

There are so-called transitions between the steps.

A transition condition must have a value TRUE or FALSE and can therefore consist of

a Boolean variable

a de-referenced address to Boolean variable (

poTo_bTest)

a Boolean constant (TRUE)

a sequence of instructions with a Boolean result in ST syntax
(e.g. (i<=100) AND b)

a sequence of instructions programmed in any language

A transition must not contain any programs, function blocks or assignments.

Tip!

The next step can be reached both via transitions and the single step mode.
(SFCtip and SFCtipmode)

4.4.5

Active step

The initial SFC editor call always executes the action pertaining to the initial step.

A step whose action is being executed is referred to as the active step.

In online mode, active steps are displayed in blue.

Show/Hide Bookmarks

Advertising