Sprint: 6 — Design & Safety Time: ~1 hour
Implement the PLC-side logic for a Category 1 controlled stop. Real safety logic lives in a dedicated safety relay or safety PLC — but the standard PLC needs to react correctly when E-stop is pressed:
T_Decel_Done (deceleration timer), allow safety relay to remove powerReset button pressed AND drive at zero speed| Tag | Type | Description |
|---|---|---|
EStop_OK |
BOOL | Dual-channel E-stop says OK (both channels true) |
Reset |
BOOL | Manual reset button |
Start |
BOOL | Start request |
Drive_AtZero |
BOOL | Drive feedback: speed = 0 |
T_Decel_Done |
BOOL | Deceleration timer elapsed |
Drive_Run_Cmd |
BOOL | Output: drive run command |
Drive_Stop_Cmd |
BOOL | Output: controlled stop request |
Power_Permit |
BOOL | Output to safety relay: OK to keep contactor energized |
Ready |
BOOL | System ready (idle, awaiting start) |
State |
INT | 0=Faulted, 1=Ready, 2=Running, 3=Stopping |
Drive_Run_Cmd = (State = 2)Drive_Stop_Cmd = (State = 3)Power_Permit = (State = 1) OR (State = 2) OR (State = 3) — power kept on during decelerationReady = (State = 1)