← All exercises

Start/Stop Motor

easy

Latch a motor running on Start press and drop it on Stop press.

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

  • Motor turns on when In_Start is 1 and In_Stop is 1.
  • Motor stays on after In_Start returns to 0.
  • Motor turns off when In_Stop goes to 0.
  • If In_Start is 1 and In_Stop is 0, the motor remains off (stop priority).