Utilizing a single timer employ the use of word comparison


Exercise 1- Traffic Control utilizing 1 Timer

From the Simulations Menu at the top of the LogixPro screen. Select the Traffic Light Simulation

1074_Traffic Control Utilizing Timer.png

Utilizing a single timer. employ the use of Word Comparison instructions to control our simulated traffic light. The sequence of operation and timing durations are set out in following timing diagram.

Your program should incorporate a 1 second period (delayed green) when both directions will have only their RED lights illuminated. Note that the timing diagram below only shows one of these 1 second intervals. but two are actually required.

Rad= 0:2/00

Green =0:2/02

Amber =0:2/01

Green= 00:2/06

Amber= 0:2/05

Red =0:2/04

8 Sec.

4Sec

1

8 Sec.

4 Sec.

If a one second delay proves insuficient to get these drivers under control then just go ahead and jack the delay up to two!

Exercise 2- Dealing with Pedestrians

Modify your program so that the crosswalks are also controlled. This is not necessarily a word comparison exercise. but its a task that needs doing. and you should now have sufficient expertise to accomplish it. It might not be all that easy however!

634_Dealing With Pedestrians.png

Your program should operate as follows:

• When depressed. the crosswalk pushbutton will cause the appropriate Walk Sign to be illuminated at the next occurence of a Red to Green transition for the appropriate direction.

• If the Green light is already illuminated when the button is pressed then the Walk signal sequence will be delayed until the next Red to Green transistion ocurrs.

• Once the Walk Sign is illuminated. it will remain so for the duration of the Green signal.

• When the Amber light appears. the Walk Sign will commence to flash On and Off and continue to do so until the Red signal appears.

You might consider using a bit from the free-running timer located in S2:4 to create the cautionary flashing effect.

Request for Solution File

Ask an Expert for Answer!!
Simulation in MATLAB: Utilizing a single timer employ the use of word comparison
Reference No:- TGS01282364

Expected delivery within 24 Hours