Skip to main content

Master Control (End)

Instruction Parameters

Supported PLC Series

XPnA/1RXPnBXPnEXPnFCP3A/B/P/U
CP4A~D/U
CPnECPnFBPPLC-S

Supported Data Registers

MXYKLFTCSZRQD@DConstant
n--------------

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1-
CarryF11.2-

Number of Steps

Steps
1

Operands

OperandDescription
nThe only operand.
Entries are only constants.
This is the identifier for the end of the master control area.

If nesting master control, the value range is 0 ~ 7.

Notice

Notice

A compile error will occur when the number of nests, n, is greater than 8.

Instruction Behavior

The MCR instruction behaves as follows:

  • MCR n indicates the end of the master control area.
  • MCR recovers from the master control and starts the process of scanning the program from the next step.
  • Identical nesting numbers, n, of MC and MCR are used as a set.
  • MCR with the lowest nesting number can terminate all master controls when:
    • MCR instructions are nested in one place.
    • There may be MC instructions with higher nesting numbers, n, within the MC ~ MCR area with the lowest nesting number, n.

Master Control Area

  • Master Control is defined as a control area within the ladder logic for executing certain parts of the ladder logic code.
  • Master Control will execute from MC n through MCR n where n is a constant.
  • If MC ~ MCR instructions are nested in other MC ~ MCR, the nesting number, n, is available from lower to higher with the MC instruction and higher to lower with the MCR instruction.
    • Please refer to Master Control Example 1.
  • MCR with the lowest nesting number can terminate all master controls when:
    • MCR instructions are nested in one place.
    • There may be MC instructions with higher nesting numbers, n, within the MC ~ MCR area with the lowest nesting number, n.

Examples