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.
Parameters
| Tag | Direction | Type | Default | Description |
|---|---|---|---|---|
| In_Start | Input | BOOL | 0 | Push button to start the motor |
| In_Stop | Input | BOOL | 0 | NC stop signal; 1 = OK to run, 0 = stop pressed |
| Out_Motor | Output | BOOL | 0 | 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.
- With In_Start at 0, In_Stop returning to 1 does not restart the motor.
- After a stop and Start release, a new In_Start press starts the motor again.
- If In_Start is 1 and In_Stop is 0, the motor remains off (stop priority).