24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Visualizing a Traffic Signal Unit...<br />

In order to set the variable ON to TRUE with a mouse click on the switch, activate option 'Toggle<br />

variable' in category 'Input' and enter variable name ".ON" there. Variable keying means that when a<br />

mouse click is made on the visualization element the variable .ON is set to the value TRUE but is<br />

reset to the value FALSE when the mousekey is released again (we have created hereby a simple<br />

switch-on device for our traffic lights program).<br />

Font in the visualization<br />

In order to complete the visualization you should first insert two more rectangles which you place<br />

underneath the traffic signals.<br />

In the visualizations dialog box set white in the category Color for Frame and write in the category<br />

Text in the field Contents "Light1" or "Light2". Now your visualization looks like this:<br />

3-14 CoDeSys V2.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!