PLC controlled traffic light

From Rsewiki
Jump to: navigation, search

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:

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