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

L-force | PLC Designer
We Write a Little Program
92
DMS 3.2 EN 02/2011 TD29
Click on the right mouse key in the editor window and select the element Box. Click on
the text AND and write "SEQUENCE" instead. This brings up the block SEQUENCE with
all of the already defined input and output variables. Insert two further block
elements which you name PHASES. Phases is a function block and this causes you to
obtain three red question marks over the block which you replace with the already
locally declared variables LIGHT1 and LIGHT2. Now set an element of the type Input,
which award the title ON and six elements of the type Output which you award
variable names to, as described, namely L1_green, L1_yellow, L1_red, L2_green,
L2_yellow, L2_red.
All of the elements of the programme are now in place and you can connect the inputs
and outputs, by clicking on the short line at the input/output of an element and
dragging this with a constantly depressed mouse key to the input/output of the
desired element.
Your program should finally look like the example shown here.
PLC_PRG, Declaration and presentation with the continuous function chart editor