Traffic Control using Comparison Instructions
Exit to the Main Menu and
select the Traffic Light simulation.
Using your knowledge of
word comparison instructions, develop a traffic light
control program which operates via a single timer.
Red = O:1/00 |
Green =
O:1/02 |
Amber = O:1/01 |
Green =
O:1/06 |
Amber =
O:1/05 |
Red = O:1/04 |
8 Sec. |
4 Sec. |
8 Sec. |
4 Sec. |
Traffic Light Control With Delayed Green
Red = O:1/00 |
Green =
O:1/02 |
Amber = O:1/01 |
Green =
O:1/06 |
Amber =
O:1/05 |
Red = O:1/04 |
8 Sec. |
4 Sec. |
1 |
8 Sec. |
4 Sec. |
|