This visual execution shows a simple state machine implemented in ladder logic. The machine has three states represented by bits S0, S1, and S2. It starts in State 0 (Idle) with S0=1. When the Start button is pressed (StartBtn=1), it transitions to State 1 (Running) by setting S1=1 and clearing S0. The motor output turns on in State 1. Pressing StartBtn again moves the machine to State 2 (Done) with S2=1 and motor off. In State 2, the machine resets back to State 0 automatically when StartBtn is released. The execution table traces each step, showing state bits, input, conditions, actions, next state, and output. Variable tracker shows how bits and output change over time. Key moments clarify common confusions about output activation, no input behavior, and reset logic. The quiz tests understanding of state transitions and outputs. This approach helps beginners see exactly how ladder logic controls a state machine step-by-step.