Learn PLCs free
Beginner30 minutesSeal-inSoftware interlockMutual exclusionOverload protection

Motor Reversing with Interlock

Reversing a motor electrically requires two contactors (forward and reverse) that must NEVER energise simultaneously — doing so creates a phase-to-phase short and destroys the starter. This example shows the canonical software interlock pattern.

Sequence overview showing inputs flowing into PLC logic and outputs driving actuators, with this example named Motor Reversing with Interlock.Process flow: inputs → logic → outputsInputsPB_Fwd, PB_Rev, PB_Stop4 signalsPLC LogicSeal-in · Software interlockBeginner · 30 minutesOutputsM_Fwd, M_Rev2 signals

I/O list

TagTypeDescription
PB_FwdDIForward push-button
PB_RevDIReverse push-button
PB_StopDIStop push-button (NC, TRUE = not pressed)
OL_TripDIMotor overload contact (NC, TRUE = healthy)
M_FwdDOForward contactor coil
M_RevDOReverse contactor coil

Structured Text code

PROGRAM main
VAR
    (* No additional internal vars needed *)
END_VAR

(* Forward: started by PB_Fwd, sealed in by M_Fwd, broken by Stop, OL trip, or M_Rev energised *)
M_Fwd := (PB_Fwd OR M_Fwd) AND PB_Stop AND OL_Trip AND NOT M_Rev AND NOT PB_Rev;

(* Reverse: mirror image *)
M_Rev := (PB_Rev OR M_Rev) AND PB_Stop AND OL_Trip AND NOT M_Fwd AND NOT PB_Fwd;

How it works

Seal-in: the first parenthesis (PB_Fwd OR M_Fwd) means the forward contactor stays energised after the button is released, until something breaks the rung.

Software interlock: NOT M_Rev in the forward rung guarantees the forward contactor cannot energise while reverse is on. Mirror logic in the reverse rung.

Stop button is NC: PB_Stop is normally-closed wired. TRUE means NOT pressed. Pressing the stop button drops PB_Stop to FALSE, breaking both rungs.

OL_Trip is NC: TRUE means the motor overload is healthy (not tripped). Tripped overload drops OL_Trip to FALSE, stopping the motor.

Critical: software interlock alone is NOT sufficient for safety. Always pair with electrical interlock (auxiliary contacts) and mechanical interlock (lever between contactors) for safety-rated reversing applications.

More examples