I've watched some tutorials and am trying to gradually write some FBD that can handle a model of an intersection (traffic lights in 4 directions, pedestrian walk signs + crossing buttons).
Before I get deep into it, I'm playing around with a few functions and seeing if things work the way I expect.
The below FBD is supposed to alternately light Green1 and Red1 but it gets stuck on Green1. Any idea where I went wrong?

Also, am I right in thinking Function Block Diagram is the best language for programming a traffic light PLC? It seems easy to read and follow.
Before I get deep into it, I'm playing around with a few functions and seeing if things work the way I expect.
The below FBD is supposed to alternately light Green1 and Red1 but it gets stuck on Green1. Any idea where I went wrong?

Also, am I right in thinking Function Block Diagram is the best language for programming a traffic light PLC? It seems easy to read and follow.




