The trafficsignal case, The second traffic signal, The on switch – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 98: L-force | plc designer

Advertising
background image

L-force | PLC Designer

We Write a Little Program

96

DMS 3.2 EN 02/2011 TD29



5.2.4

The TRAFFICSIGNAL case

Now enter the command 'Insert' 'Rectangle', and insert in the same way as the circle a
rectangle which encloses the three circles. Once again choose as neutral a color as
possible for the rectangle and give the command 'Extras' 'Send to back' so that the
circles are visible again.

If simulation modeis not yet turned on, you can activate it with the command 'Online'

'Simulation'.

If you now start the simulation with the commands 'Online' 'Login' and 'Online' 'Run',

then you can observe the color change of the first traffic signal.

5.2.5

The second traffic signal

The simplest way to create the second traffic signal is to copy all of the elements of
the first traffic signal. For this you select all elements of the first traffic signal and copy
them (as before with the lights of the first traffic signal) with the commands 'Edit'
'Copy'
and 'Edit' 'Paste'. You then only have to change the text "TRAFFICSIGNAL1" in
the respective dialog boxes into "TRAFFICSIGNAL2", and the visualization of the
second traffic signal is completed.

5.2.6

The ON switch

Insert a rectangle and award it, as described above, a colour for a traffic light of your
choice and enter .ON at Variables for the Change color. Enter "ON" in the input field
for Content in the category Text.

Advertising