← All exercises

Start/Stop Motor

easy

Start/Stop motor controller with seal-in latch and stop priority.

What it teaches

A motor that keeps running after Start is released, and only stops when Stop is pressed. The output's own state feeds back to hold itself on — this 'seal-in' pattern is the most common control idiom in industry.

Inputs and outputs

TagTypeDefaultDescription
In_StartBOOLPush button to start the motor
In_StopBOOLNC stop signal; 1 = OK to run, 0 = stop pressed
Out_MotorBOOLMotor drive signal

Required behavior