userkemet
Hello. I'm trying to simulate a traffic light LD using timers.
 
When I force the Start switch to True, the Red latching switch doesn't toggle immediately.
 
It works fine when I simulate it with only the single Red latching switch, but not once I include the rung 3 Red switch and the timers. The rung 1 Red switch toggles only after the rung 3 Red contact is toggled. The same happens with the rung 2 and rung 4 Amber switches, where they don't toggle at the same time after the rung 3 Amber contact is toggled (in this case, the rung 4 switch toggles first).
 
I'm a PLC noob, and it seems like there's a setting I need to change to modify the sequence of switches toggling? Or maybe I misunderstood how my reference diagram works?
 
Hoping you can help. Thanks.
 
[203128%2F9247981%2Fmceclip0]
 
[203128%2F9247980%2Fmceclip0]   [203128%2F9247978%2Fmceclip0]
Reply 0 0
Grz
Hello Userkemet,
The first rule you need to know is that you can only write an output once.
This means that the conditions that activate an output must be in parallel.
However, you can write an input as many times as you like.
So in your program, there should only be one coil -(red)-, -(amber)-, and -(green)-.
|--------| |-----------------(red)--------|
Reply 0 0
Grz
Hello Userkemet,
 
You can take inspiration from the example below to translate your grafcet (SFC) into contact language (LD).
 
Best regard
Pierre
 
20240707_084429.jpg
Reply 0 0
Reply