Index

PSIM
Traffic Control Lab
Utilizing Compare Instructions


 

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

  • Modify your program so that there is a 1 second period when both directions will have their RED lights illuminated. Using the timing diagram below, note that two 1 second periods are required in this sequence.

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.

 

 

 

 

 Learning Support for Trades and Technology