IMDHMIControls LibraryShop main store

How-to

PLC motor interlock logic for three one-at-a-time motors

PLC programming Published 6 min read

Short answer

Put an examine-off contact of each other motor's output bit into every motor rung, so each motor runs only while the other two outputs are off. With the example rung order, a simultaneous pair of start presses resolves to the first rung in the scan; the software interlock prevents commanded overlap and is not a safety function.

On this page
  1. Assign the I/O and fix the stop polarity
  2. Build the three interlocked rungs
  3. Decide the simultaneous-start rule
  4. Commission the interlock
  5. What the software interlock does not cover
  6. Questions asked

Interlock each motor rung against the other two output bits: put an examine-off contact of MOTOR2 and of MOTOR3 in the MOTOR1 rung, and the mirror contacts in the other two rungs. A motor then energizes only while both competitors are off, the operator must stop the running motor before another will start, and no button combination changes that. This article builds the three rungs on example slot addressing, works through what the scan does when two start buttons close in the same scan, and marks the limit: the pattern prevents commanded overlap, it does not see a welded contactor, and it is not a safety-rated function.

Assign the I/O and fix the stop polarity #

The example layout puts the CPU in slot 0, an 8-point input module in slot 1 and an 8-point output module in slot 2, which fixes the addresses in the table. Any controller maps the same pattern onto its own addressing; the logic carries over unchanged.

Signal Example address Field device Ladder contact
START1 I:1/0 pushbutton, normally open examine-on
START2 I:1/1 pushbutton, normally open examine-on
START3 I:1/2 pushbutton, normally open examine-on
STOP1 I:1/3 pushbutton, normally closed examine-on
STOP2 I:1/4 pushbutton, normally closed examine-on
STOP3 I:1/5 pushbutton, normally closed examine-on
MOTOR1 O:2/0 starter coil output coil
MOTOR2 O:2/1 starter coil output coil
MOTOR3 O:2/2 starter coil output coil

Wire every STOP pushbutton normally closed and program it with an examine-on contact. A healthy stop circuit holds the input bit at 1 and the contact passes; pressing the button breaks the rung, and a broken stop wire reads the same as a pressed button, so the rung can neither start nor hold. A normally open stop under an examine-off contact does the opposite: with the stop wire broken it starts and keeps running, which is the failure to design out.

Drive each panel lamp from a branch of its own motor rung, the multiple-outputs-on-one-rung pattern in SLC 500 multiple outputs on one ladder rung, so lamp and coil cannot disagree. Never let an interlock contact read a lamp bit: a lamp rung that is edited, fails or is removed leaves the interlock watching a state the motor is not in. The interlock reads the coil bits, O:2/0 through O:2/2 in this example.

Build the three interlocked rungs #

Each rung is a sealed starter rung plus two interlock contacts. The seal branch that holds a motor on after its START button releases is the pattern in how to program a sealed motor starter rung in STEP 7 ladder; the interlock adds an examine-off contact of each competing coil in series ahead of the output coil.

  • Rung 1, MOTOR1: START1 examine-on in parallel with MOTOR1 examine-on (the seal), in series with STOP1 examine-on, MOTOR2 examine-off and MOTOR3 examine-off, feeding the MOTOR1 coil.
  • Rung 2, MOTOR2: START2 examine-on in parallel with MOTOR2 examine-on, in series with STOP2 examine-on, MOTOR1 examine-off and MOTOR3 examine-off, feeding the MOTOR2 coil.
  • Rung 3, MOTOR3: START3 examine-on in parallel with MOTOR3 examine-on, in series with STOP3 examine-on, MOTOR1 examine-off and MOTOR2 examine-off, feeding the MOTOR3 coil.

The examine-off contact is the normally closed contact of IEC 61131-3 ladder, and the rung symbols are tabulated in ladder logic symbols and what each one does in a rung. The mechanism is the output image: a coil set in rung 1 is a 1 in the output image before rung 2 is solved, so rung 2's MOTOR1 examine-off contact is already open inside the same scan. Keep all three rungs in one task and solve them top to bottom, because rungs in one task run in listed order and that order is your priority.

Decide the simultaneous-start rule #

Worked example: all motors off, and the operator clamps START1 and START2 so both are on at the same input scan.

  • Rung 1 solves first: START1 on, STOP1 circuit healthy, MOTOR2 bit at 0, MOTOR3 bit at 0. Continuity reaches the coil and MOTOR1 is set to 1.
  • Rung 2 solves next: its MOTOR1 examine-off contact reads the MOTOR1 bit as 1 and opens, so MOTOR2 stays at 0 although START2 is on.
  • Rung 3 solves the same way: MOTOR3 stays at 0.

With this rung order the earliest rung wins and the losing request is not queued. If the operator keeps holding START2, MOTOR2 starts on the first scan in which the MOTOR1 bit is 0; if START2 was released, the operator presses it again. To prefer a different motor, reorder the rungs. To reject a simultaneous pair instead, add two examine-off contacts per rung that gate each START against the other two: the START1 rung also requires START2 and START3 off, and the mirror holds for the other two rungs. A single press then starts its motor, a pair press starts neither until one button is released, and the surviving press starts on the next scan. The default costs nothing; reject-all costs two contacts per rung. Pick one rule and record it.

The state count closes the argument. Three coil bits span 2 x 2 x 2 = 8 combinations. The interlock admits 4 of them, the all-off state plus the three single-motor states, and blocks the remaining 8 - 4 = 4: three pairs and one triple. No button sequence reaches a blocked combination, because a second coil can only be set by a rung whose interlock contacts already read the first coil's bit as 1.

Commission the interlock #

  1. With all three coils off, press START2 alone: O:2/1 and its lamp turn on, and O:2/0 and O:2/2 stay off.
  2. With MOTOR2 running, press and hold START1, then START3: neither coil changes state, and the operator must stop MOTOR2 before either press takes effect.
  3. Press STOP2: MOTOR2 drops, and a following press of START1 starts MOTOR1.
  4. Simultaneous test, from all coils off: hold START1 and START2 together. Under the default rule MOTOR1 starts and MOTOR2 does not; under reject-all neither starts, and releasing one button starts its motor on the next scan.
  5. Broken-stop test: with all coils off, open the STOP1 field circuit and press START1; MOTOR1 must not start. Restore the circuit.
  6. Acceptance: after every test, the three coil bits must match one of the allowed combinations; any state with two or three bits on is a logic fault, and the usual cause is an interlock contact reading a lamp bit instead of a coil bit.

What the software interlock does not cover #

The interlock acts on commanded state only. A welded contactor or a shorted output point leaves the coil bit reading off while the motor stays powered, so the interlock will let a competitor start; the same follows when an overload trips the contactor coil circuit and the output bit stays on. To see the drop-out, wire each contactor's auxiliary contact to a spare input and put an examine-on contact of that feedback into each competing rung, so MOTOR2 may start only when MOTOR1 is proven open as well as commanded off. One auxiliary contact proves what it is wired to, not each main pole.

One safety note: when one-at-a-time protects a person - two motions that must never run together, for example - this standard-task software interlock is not that protection. A safety-rated exclusion function needs monitored, dual-channel hardware validated against the machine's risk assessment, rated under ISO 13849-1 as a Performance Level or under IEC 62061 as an SIL, each its own rating. Keep the PLC interlock for process sequencing and damage prevention; treat a personnel-safety exclusion as a separate validated circuit.

Questions asked

Does the interlock hold when a start comes from an HMI or SCADA write instead of a pushbutton?

Only if every start path leads through the same interlocked rung. A second instruction that writes the output coil directly, such as an HMI write to the output address or a MOVE in another routine, bypasses the examine-off contacts and can energize a second motor. Route all starts into one rung, or copy the interlock conditions into every routine that can set a coil.

How does the pattern scale to four or more motors?

Each rung carries one examine-off contact for every other motor: four motors mean three interlock contacts per rung and twelve across the program. The state count follows the same arithmetic, 2 x 2 x 2 x 2 = 16 combinations, of which 5 are allowed and 11 blocked. Past five or six motors, a permitted-request bit selected once per scan keeps every rung short and the priority explicit.

What happens after a controller power cycle?

The output image clears, so all three motors are free to start and the first start press after power-up wins. If the process must not resume unannounced, add a first-scan bit that holds every rung off until an operator presses a reset. Also test a warm restart: whether output data is retentive depends on the controller configuration, and a retained coil would defeat the all-off assumption.

Can the same rule be written in structured text or a function block?

Yes. The contacts become Boolean logic: MOTOR1 runs when its start or seal condition is true and both MOTOR2 and MOTOR3 are false, and the mirror conditions guard the other two. Keep the three assignments in one task in a fixed order, because the first assignment executed wins a simultaneous request, exactly as the first rung wins in ladder.

Keep reading

  • How-to

    Structure dock door conveyor interlocks in Studio 5000

    Run the conveyor on three explicit states — Ready, Running and Restart-required — with door-open, truck-present and curtain-clear as permissives. Truck departure mid-cycle stops the conveyor and latches a manual restart; the light curtain's protective stop stays in safety-rated equipment. Fix the door sensor before debouncing, then size the timer to the measured flicker — 600 ms against a 240 ms example.

    PLC programming

  • How-to

    Program a CODESYS assembly line sequence in ladder logic

    Structure the line as one INT state variable with permissive-qualified station starts: TON timers of T#20s, T#40s and T#60s run the stations, Stop drops the run latch so everything pauses with the timers reset, and a CTU with a preset of 4 releases the vehicle on the fourth door. The Emergency Stop belongs in the safety circuit, with the PLC only monitoring it and clearing the sequence.

    PLC programming

  • How-to

    Repeating a forward reverse sequence on an Omron PLC ladder timer

    Run the forward and reverse outputs from the PLC's normal cyclic scan and gate both commands with one 30-second run timer; when its completion flag turns ON, it removes the run permission and both outputs drop. A backward jump is unnecessary, delays scan completion and can trip the CPU watchdog.

    PLC programming