It looks good.
Your instructions about the yellow light say "...If the number of parked vehicles in the garage is 23 or 24, the green light is turned off and a yellow light flashes continuously ".
On rung 4 for the Yellow Light, take another look at your comparison "CTA0 < K23". Don't you want the yellow light to be ON when there are 1 to 2 spaces left (CTA0 = 23 or 24)? That would mean that you should look at when CTA0 >= K23 and < K25 ( or CTA0 >= K23 and <= K24).
Your instructions about the yellow light say "...If the number of parked vehicles in the garage is 23 or 24, the green light is turned off and a yellow light flashes continuously ".
On rung 4 for the Yellow Light, take another look at your comparison "CTA0 < K23". Don't you want the yellow light to be ON when there are 1 to 2 spaces left (CTA0 = 23 or 24)? That would mean that you should look at when CTA0 >= K23 and < K25 ( or CTA0 >= K23 and <= K24).
Last edited: