Skip to content
Tutorials Center
My learning

Topics

Lesson 13 of 37 ยท Ladder Logic

Interlocks and Motor Control in Ladder

Build real motor control in ladder logic: permissives, interlocks, forward/reverse starters, hand/off/auto selection, overload handling and alarms, with C simulations.

With contacts, coils, seal-ins and edges you can already write real machine logic. This lesson puts them together into the patterns that appear in almost every plant: permissives, interlocks, a forward/reverse motor starter and hand/off/auto selection.

We will keep each pattern small, show it as ladder (read-only), and simulate it in C so you can try every input combination.

Permissives and interlocks

  • A permissive is a condition that must be true before something may start (guard closed, oil pressure ok, no fault).
  • An interlock prevents two things happening at once (forward and reverse together, two valves that must not both open).

Both are series contacts. A permissive is usually a normal-open contact of a "ready" bit; an interlock is a normally-closed contact of the opposing output.

Two kinds of conditions

Permissive Must be true to start
Interlock Blocks a conflicting action
Alarm Tells the operator why

All three are plain logic

1 / 2

Forward/reverse starter

A motor that runs in both directions has two contactors. If both closed together they would short the supply lines, so each direction's rung includes an NC contact of the other direction's output.

TEXT
|--+--[ Fwd_Start ]--+--[ Stop_OK ]--[/ Rev_Out ]--( Fwd_Out )--|
|  +--[ Fwd_Out ]----+
|
|--+--[ Rev_Start ]--+--[ Stop_OK ]--[/ Fwd_Out ]--( Rev_Out )--|
|  +--[ Rev_Out ]----+

Pressing Reverse while running forward does nothing until Stop is pressed, because /Fwd_Out blocks the Reverse rung. Real installations also add a mechanical interlock on the contactors and a short delay when changing direction (see Timers and Counters).

C Stand-in: forward/reverse interlock (C)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

Look at scan 2: Reverse is pressed while Forward runs and nothing changes. After Stop in scan 3, scan 4 lets Reverse start.

Overload and fault handling

A motor starter usually has an overload relay that trips on too much current. Its auxiliary contact is wired NC to a PLC input (so a cut wire also trips). The program turns this into a fault bit, latches it and requires a reset:

TEXT
|--[/ Overload_OK ]--+--( S Motor_Fault )--|
|--[ Fault_Reset ]----( R Motor_Fault )--|
|--[/ Motor_Fault ]--[ Stop_OK ]--...  to the motor rung

The fault stays until the operator acknowledges and resets, even if the overload contact has recovered. This prevents a motor from silently restarting.

C Stand-in: latched fault with reset (C)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

After scan 2 the fault latches. In scan 3 the overload is OK again but the fault remains, so the motor stays stopped until the reset in scan 4. The start input is held on in this test, so the motor restarts the moment the fault clears (a real machine uses a momentary Start button, so it would stay stopped until someone presses Start).

Hand/Off/Auto

Operators and technicians often need a mode selector: Hand (manual run), Off, and Auto (run under program control). Typical logic:

Pump_Run = (Hand_Mode AND Hand_Start) OR (Auto_Mode AND Auto_Request), always ANDed with the permissives.

C Stand-in: Hand/Off/Auto selector (C)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with scanf or fgets), it gets the next line from this box.

Alarms and indications

Always tell the operator why a machine will not run. Use a lamp or HMI message for each permissive: "Guard open", "Overload tripped", "Low oil". Technicians will thank you at 3 a.m.

A checklist for motor rungs

  1. Start rung with seal-in; stop priority.
  2. All permissives in series.
  3. Interlocks from conflicting outputs.
  4. Fault latch with a manual reset.
  5. One output coil per output.
  6. Feedback ("motor running") compared with the command, with a timeout alarm.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is an interlock?

    An interlock prevents two incompatible things from happening together.
  2. 2. How is the forward/reverse interlock built in ladder?

    Each direction rung includes a normally-closed contact of the other direction's output.
  3. 3. Why latch a motor fault and require a reset?

    A latched fault forces a deliberate acknowledgement.
  4. 4. In a Hand/Off/Auto selector, what must always be ANDed with the run condition?

    Whatever the mode, safety permissives and faults still have to be satisfied.

Summary

  • Permissives enable starting; interlocks prevent conflicting actions.
  • Forward/reverse uses an NC contact of the opposite output (plus mechanical interlock in the hardware).
  • Latch overload faults and require a reset.
  • Hand/Off/Auto selects the source of the run command but never bypasses permissives.

Next: Function Blocks Basics