What does sequence do, What does plc_prg do, Trafficsignal simulation – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 80: L-force | plc designer

Advertising
background image

L-force | PLC Designer

We Write a Little Program

78

DMS 3.2 EN 02/2011 TD29



5.1.5

What does SEQUENCE do?

In SEQUENCE all is combined so that the right light lights up at the right time for the
desired time period.

5.1.6

What does PLC_PRG do?

In PLC_PRG the input start signal is connected to the traffic lights' sequence and the

"color instructions" for each lamp are provided as outputs.

5.1.7

TRAFFICSIGNAL simulation

Now test your program in simulation mode. Compile ('Project' 'Build') and load
('Online' 'Login') it. Start the program by 'Online' 'Start', then set variable ON to TRUE,
e.g. by a double-click on the entry "ON" in the input box of the CFC editor. This will
mark the variable as prepared to be set to <TRUE>. Then press <Ctrl><F7> or
command 'Online' 'Write values', to set the value. Now variable START in ABLAUF
(which we had set to TRUE manually in the first extension level of the program) gets
this value by variable ON, which is used in PLC_PRG. This will make run the traffic light
cycles. PLC_PRG has changed to a monitoring window. Click twice on the plus sign in
the declaration editor, the variable display drops down, and you can see the values of

the individual variables.

Advertising