Trafficsignal simulation, Visualizing a traffic signal unit, Creating a new visualization – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 95: L-force | plc designer

Advertising
background image

L-force | PLC Designer

We Write a Little Program



DMS 3.2 EN 02/2011 TD29

93

5.1.19

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.

5.2

Visualizing a Traffic Signal Unit...

With the visualization of PLC Designer you can quickly and easily bring project
variables to life. We will now plot two traffic signals and an ON-Switch for our traffic

light unit which will illustrate the switching process.

5.2.1

Creating a new visualization

In order to create a visualization you must first select the range of Visualization in the
Object Organizer. First click on the lower edge of the window on the left side with the
POU on the register card with this symbol

and the name Visualization. If you now

choose the command 'Project' 'Object Add', then a dialog box opens.

Enter here any name. When you confirm the dialog with OK, then a window opens in
which you can set up your new visualization.

Advertising