← Sequencing

Pedestrian Crossing

hard

Adds a queued pedestrian request and walk phase to a two-direction traffic light.

What it teaches

Keeps Traffic Light 2-Way’s Enable control, then adds an event queue. A one-shot records one button press, a latch remembers it, and the state machine serves it only after all-red.

Parameters

TagDirectionTypeDefaultDescription
In_EnableInputBOOL01 runs the crossing; 0 resets it and shows red in both directions
In_WalkRequestInputBOOL0Pedestrian push button
Cfg_GreenTimeInputDINT3000Duration of each green phase in milliseconds
Cfg_AmberTimeInputDINT1500Duration of each amber phase in milliseconds
Cfg_AllRedTimeInputDINT2000Duration of each all-red phase in milliseconds
Cfg_WalkTimeInputDINT2500Duration of the walk phase in milliseconds
Out_NSGreenOutputBOOL0North-south green light
Out_NSAmberOutputBOOL0North-south amber light
Out_NSRedOutputBOOL0North-south red light
Out_EWGreenOutputBOOL0East-west green light
Out_EWAmberOutputBOOL0East-west amber light
Out_EWRedOutputBOOL0East-west red light
Out_WalkOutputBOOL0Pedestrian walk signal
Sts_WaitingOutputBOOL01 while a new walk request is queued

Required behavior