PLC Simulator
PLC field notesladder logic

Master Control Relay (MCR) in PLC Programming Explained

What the master control relay (MCR) instruction does in a PLC, how an MCR zone de-energises a section of rungs, the difference between MCR and JMP/AFI, and why an MCR is never a substitute for a hardwired E-stop.

PLC Simulation Software8 min read

The master control relay (MCR) instruction is a software fence that switches off a zone of ladder rungs at once. You place one MCR at the start of the zone and a second MCR at the end; when the start MCR is false, every non-retentive output between the two is de-energised in a single scan. It is a program-structure tool — not a safety device, and never a replacement for a hardwired E-stop or safety relay.

That distinction is the most important thing on this page, so it is worth saying again before we go any further: the MCR instruction runs inside the CPU. If the CPU, its firmware, or its output card fails, the instruction fails with it. A real machine-safety stop must remove power through hardwired contacts that do not depend on the processor. The MCR is for organizing and disabling logic, not for protecting people.

Master control relay MCR instruction in PLC ladder logic explained

What an MCR zone looks like

An MCR comes in a pair. The first MCR instruction begins a fenced zone; the second MCR (with no preceding contacts) ends it. Whatever rungs sit between them are controlled as a group by the conditions on the first MCR.

Ladder logic showing an MCR zone start a fenced rung and an MCR zone end

  • Zone start — MCR preceded by contacts. When those contacts are true the zone runs normally. When they are false the zone is fenced off.
  • Fenced rungs — your normal logic. Outputs here behave as usual only while the zone is enabled.
  • Zone end — a standalone MCR with nothing in front of it. It marks where the fence closes.

How the MCR controls a section of the program

Think of the MCR zone as a switch in front of a block of your program. When the zone is enabled the rungs inside are scanned and act normally. When the zone is disabled the rungs are still scanned, but every non-retentive output inside is forced off.

Architecture diagram of an MCR zone controlling a section of the PLC program

This is why an MCR is so handy for grouping logic: one set of enable conditions — a "system ready" bit, a mode selector, a guard-closed interlock — can disable an entire subsystem of outputs without you wiring that condition into every single rung.

What happens when the zone goes false

The moment the start MCR goes false, all non-retentive outputs in the zone drop on that scan. The timing diagram below shows three outputs falling together the instant the zone-enable signal goes low.

Timing diagram showing MCR zone false de-energising all non-retentive outputs at once

There is a critical exception you must remember: retentive instructions hold their state. A latch (OTL/SET), a retentive timer (RTO), or a counter accumulator inside the zone does not reset when the zone goes false — it simply stops being updated. When the zone re-enables, those instructions resume from where they were. If you assume an MCR "clears everything", a latched output can come straight back on, which is exactly the kind of surprise that hurts people on a real machine. Plan your retentive instructions deliberately, or keep them outside the zone.

MCR instruction vs a hardwired E-stop

This is the heart of the safety message. An MCR and a hardwired emergency-stop circuit can both "stop the outputs", but they are not interchangeable.

Comparison of the MCR instruction versus a hardwired E-stop safety circuit

The MCR is software running on a general-purpose CPU. A hardwired E-stop drops power through dedicated, often redundant, safety-rated contacts that operate whether or not the processor is alive. Code can hang; an output transistor can weld on; firmware can fault. None of those failures will release a properly designed hardwired safety circuit, but all of them can defeat an MCR. Use the MCR for program structure and operational disabling. Use a hardwired, safety-rated circuit — sized per the machine's risk assessment — for emergency stop and personnel protection.

A safe-use checklist for the MCR instruction

Checklist for using the MCR instruction safely including the hardwired safety warning

Read the first item on that list as non-negotiable: the MCR never replaces hardwired safety. Everything else — pairing your instructions, watching retentive outputs, and not nesting zones unless your platform explicitly supports it — keeps the logic predictable, but only the hardware keeps people safe.

MCR vs JMP vs AFI

Beginners often confuse the MCR with the jump (JMP) instruction and the always-false instruction (AFI / unconditional disable). They all "turn logic off", but they behave very differently.

Comparison table of MCR versus JMP versus AFI instructions across PLC dialects

  • MCR still scans the fenced rungs but forces their non-retentive outputs off. It is the right tool when you want a block of outputs to drop together.
  • JMP/LBL skips rungs entirely — they are not scanned, so their outputs hold their last state rather than turning off. That difference catches people out constantly.
  • AFI simply makes a single rung evaluate as false; it disables one rung, not a zone.

If your goal is "make these outputs go off", reach for the MCR — not the jump, which can leave outputs frozen on.

Practice the MCR in your browser

The fastest way to see an MCR zone behave — including how a latch survives the zone going false — is to wire it up and toggle the enable yourself. You can do exactly that in the free browser PLC simulator, and switch the ladder logic editor between IEC, Allen-Bradley and Siemens dialects to see how each one names the instruction. While you are there, the related seal-in / latching rung guide explains exactly why a latched output inside an MCR zone can come back on.

FAQ

What is a master control relay in a PLC? It is an instruction that fences off a zone of ladder rungs. You place an MCR at the start and end of the zone; when the start MCR's conditions are false, every non-retentive output inside the zone is de-energised in that scan.

Is an MCR instruction a safety device? No. The MCR runs in the CPU and fails if the processor, firmware or output hardware fails. It is never a substitute for a hardwired, safety-rated E-stop or safety relay. Emergency stop and personnel protection must be implemented in hardware per the machine's risk assessment.

What is the difference between MCR and JMP in a PLC? An MCR still scans the fenced rungs but forces their non-retentive outputs off. A JMP skips the rungs entirely, so they are not scanned and their outputs hold their last state instead of turning off.

Do retentive outputs reset inside an MCR zone? No. Latches (OTL/SET), retentive timers (RTO) and counters hold their state when the zone goes false — they just stop updating. They can resume or come back on when the zone is re-enabled, so plan them carefully.

ShareX / TwitterLinkedIn

From reading to running logic

Practice this yourself in the simulator

Start with guided PLC practice in your browser. No install and no credit card required.

Start practising free

Continue learning

Related field notes

All articles
fundamentals
ladder logic

Jump To Subroutine (JSR) in a PLC: SBR, RET and Program Structure

What Jump To Subroutine (JSR) does in a PLC, how JSR/SBR/RET work together, calling subroutines with parameters, and the Allen-Bradley, Siemens and IEC 61131-3 equivalents — with ladder diagrams.

8 min read
fundamentals
ladder logic

One-Shots & Edge Detection in PLCs: ONS, OSR and R_TRIG

One shot ladder logic explained. How rising-edge and falling-edge detection works, R_TRIG and F_TRIG, the Allen-Bradley ONS/OSR one-shot, P/N edge contacts, timing diagrams and the pitfalls that bite beginners.

8 min read
fundamentals
ladder logic

PLC Counters Explained: CTU, CTD and CTUD (with Ladder Logic)

PLC counters explained in plain English. How the CTU up-counter, CTD down-counter and CTUD up/down counter work, the CU/CD/RESET/PV/CV/Q parameters, ladder logic examples, and the IEC 61131-3, Allen-Bradley, Siemens and Mitsubishi names.

9 min read

Technical reference and worked-example guide

PLC master control relay instruction: field reference

Direct answer

The reader can predict every affected instruction when an MCR zone is enabled or disabled and avoid treating software control as energy isolation.

Written for pLC learners and maintainers interpreting master-control zones, output behavior, skipped instructions and safer program-structure alternatives.

System map / 02

NODE 01observable

Definition

The zone boundary, enable condition, affected instructions, output types, stateful elements, stop requirement and restart expectation.

NODE 02observable

Signal path

MCR condition through enabled or disabled execution to output and internal-state behavior across scans.

NODE 03observable

Worked example

Zone on, zone off and return-to-on behavior recorded for coils, timers, counters and latched state.

NODE 04observable

Limits

Nested zones, stale state, hidden outputs, online edits, restart, forcing and maintenance isolation confusion.

NODE 05observable

Common mistake

A zone-boundary, state, output, reset, priority or restart defect.

NODE 06observable

Verification

The exact target instruction behavior verified and the safety boundary reviewed independently.