PLC controlled traffic light: Difference between revisions
(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...) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==PLC controlled traffic light== | |||
This page contains guidelines for setting up a simple demonstration using the section's PM571 PLCs, from ABB, and the traffic light models. | This page contains guidelines for setting up a simple demonstration using the section's PM571 PLCs, from ABB, and the traffic light models. | ||
Line 10: | Line 12: | ||
Open CodeSys and open the *.pro file in the following zip-archive: | Open CodeSys and open the *.pro file in the following zip-archive: | ||
[http:// | [http://aut.elektro.dtu.dk/staff/sh/rsewiki/traffic_light.zip traffic_light.zip] | ||
Choose 'Communication parameters' from the menu 'Online' and a window like the following will popup: | |||
[[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 | 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. |
Latest revision as of 12:08, 30 October 2012
PLC controlled traffic light
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:
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.