beautypg.com

Sequence" first expansion level, Create a sfc diagram, L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 86

background image

L-force | PLC Designer

We Write a Little Program

84

DMS 3.2 EN 02/2011 TD29

5.1.13

"SEQUENCE" first expansion level

First we declare the variables we need. They are: an input variable START of the type
BOOL, two output variables TRAFFICSIGNAL1 and TRAFFICSIGNAL2 of the type INT and
one of the type WAIT (DELAY as delay). The program SEQUENCE now looks like shown
here:

Program SEQUENCE, First Expansion Level, Declaration Part

5.1.14

Create a SFC diagram

The beginning diagram of a POU in SFC always consists of an action "Init" of a
following transition "Trans0" and a jump back to Init. We have to expand that.

Before we program the individual action and transitions let us first determine the
structure of the diagrams. We need one step for each

TRAFFICSIGNAL

phase. Insert it by

marking Trans0 and choosing 'Insert' 'Step transition (after)'. Repeat this procedure
three more times.

If you click directly on the name of a transition or a step, then this is marked and you
can change it. Name the first transition after Init "START", and all other transitions
"DELAY.OK".