← All exercises

Conditional Sequencer

medium

Advances each step only when that step's own completion input is on.

What it teaches

Builds on Single-Trigger Sequencer by giving each state its own transition condition. Start enters Step 1, then separate Done inputs advance Steps 1, 2, and 3. Inputs for other states are ignored, providing the foundation for sequences driven by sensors, timers, permissives, and operator confirmations.

Inputs and outputs

TagTypeDefaultDescription
In_StartBOOLStarts Step 1 from Idle
In_Step1DoneBOOLAdvances Step 1 to Step 2
In_Step2DoneBOOLAdvances Step 2 to Step 3
In_Step3DoneBOOLCompletes Step 3 and returns to Idle
In_ResetBOOLReturns the sequencer to Idle
Sts_Step1ActiveBOOL1 only while Step 1 is active
Sts_Step2ActiveBOOL1 only while Step 2 is active
Sts_Step3ActiveBOOL1 only while Step 3 is active
Sts_StepDINT0=Idle, 1=Step1, 2=Step2, 3=Step3

Required behavior