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
| Tag | Type | Default | Description |
|---|---|---|---|
| In_Start | BOOL | — | Push button to start the motor |
| In_Stop | BOOL | — | NC stop signal; 1 = OK to run, 0 = stop pressed |
| Out_Motor | BOOL | — | Motor 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).