Deca23

Hello everyone,

I am currently working on a traffic light ladder logic by using one timer and comparison instructions.
I tried with one side (green, amber and red lights) and uploaded the program to an Arduino-breadboard set up to simulate the lights and it worked. But when I tried to implement 2 sides (6 lights) the simulation did not work properly. It would turn on a single light only at first and then it would turn 2 lights on at some times. I have checked that my led lights are properly connected to the breadboard by using a predetermined design to try them out.

I have attached 2 pictures of how the first part of my ladder logic and the Arduino set up look like. Please let me know if you have any suggestions.

TrafficLightDesign.png

ArduinoBreadboard.png
Reply 0 0
kingmatrix
The plc program is executed from top to bottom, left to right. Please avoid using double coils because only the last one will be executed.
Reply 0 0
thiagoralves
Not only that, but you’re also reusing coils, which breaks your logic completely. See this:  https://openplc.discussion.community/post/question-about-a-test-plc-program-i-found-on-the-inet-12525253?pid=1334143723
Reply 0 0
kingmatrix
For plc programming it is recommended to take a special course, it is still different from relay panel control.
Reply 0 0
Reply