← Sequencing

Traffic Light Simple

medium

Simple traffic light sequencer cycling through Red, Green, and Amber phases.

What it teaches

Move through a fixed sequence of phases — red, then green, then amber, then back to red — each held for a set time. One repeating timer paces the whole cycle, and you light each output by comparing the elapsed time against that phase's cutoff. The skeleton behind every wash cycle, batch process, and motion routine.

Parameters

TagDirectionTypeDefaultDescription
In_EnableInputBOOL1—
Cfg_RedTimeInputDINT5000—
Cfg_GreenTimeInputDINT5000—
Cfg_AmberTimeInputDINT2000—
Out_RedOutputBOOL0—
Out_GreenOutputBOOL0—
Out_AmberOutputBOOL0—

Required behavior