PLC controlled traffic light

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(New page: This page contains guidelines for setting up a simple demonstration using the section's PM571 PLCs, from ABB, and the traffic light models. ==Hardware setup== * Connect one of the PLCs to...)
 
Line 12: Line 12:
 
[http://server.elektro.dtu.dk/www/sh/junk/traffic_light.zip traffic_light.zip]
 
[http://server.elektro.dtu.dk/www/sh/junk/traffic_light.zip traffic_light.zip]
  
Choose 'Communication parameters' form the menu 'Online' and set the correct IP (192.38.66.24x, with x being the PLC number).
+
Choose 'Communication parameters' from the menu 'Online' and a window like the following will popup:
  
Then choose Start from the 'Online' menu, and verify that the program is running correct.
+
[[image:Comm_param.png|center]]
 +
 
 +
Set the correct IP for the PLC. This is 192.38.66.24x with x being the PLC number. Verify that the port number and byteorder settings are as shown.
 +
 
 +
Then choose 'Login' from the 'Online' menu, to download the program to the PLC. Choose 'Run' (or press F5) to start the program. Verify that it works as expected.
  
 
In order to store the program in the PLC's memory choose 'Create boot project' in the 'Online' menu. This way the program will remain in th PLC's memory after poweroff.
 
In order to store the program in the PLC's memory choose 'Create boot project' in the 'Online' menu. This way the program will remain in th PLC's memory after poweroff.

Revision as of 13:11, 21 April 2009

This page contains guidelines for setting up a simple demonstration using the section's PM571 PLCs, from ABB, and the traffic light models.

Hardware setup

  • Connect one of the PLCs to one of traffic lights models using the DB25 connector.
  • Connect the PLC to the section's ethernet (It will automatically get the IP: 192.38.66.24x, where x is the PLC number)
  • Connect the power

Software download

The software controlling the traffic light is written in CoDeSys v2.3. The program is a MS Windows program, and is installed on the sections computers. It is located in the start-menu under '3S Software'. (If not, talk to Benny).

Open CodeSys and open the *.pro file in the following zip-archive: traffic_light.zip

Choose 'Communication parameters' from the menu 'Online' and a window like the following will popup:

Comm param.png

Set the correct IP for the PLC. This is 192.38.66.24x with x being the PLC number. Verify that the port number and byteorder settings are as shown.

Then choose 'Login' from the 'Online' menu, to download the program to the PLC. Choose 'Run' (or press F5) to start the program. Verify that it works as expected.

In order to store the program in the PLC's memory choose 'Create boot project' in the 'Online' menu. This way the program will remain in th PLC's memory after poweroff.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox