Chapter 16 PLC Function Applications│CP2000
16-48
Command Function
MC/MCR
Connect/release a common series contact
Operand N0–N7
MC is the main control initiation command, and any commands between MC and
MCR will be executed normally. When the MC command is OFF, any commands
between MC and MCR will act as follows:
Determination of commands Description
Ordinary timer
The timing value will revert to 0, the coil will lose
power, and the contact will not operate
Counter
The coil will lose power, and the count value and
contact will stay in their current state
Coil driven by OUT command None receive power
Elements driven by SET, RST
commands
Will remain in their current state
Applications commands None are actuated
MCR is the main control stop command, and is placed at the end of the main control
program. There may not be any contact commands before the MCR command.
The MC-MCR main control program commands support a nested program structure
with a maximum only 8 levels; use in the order N0-N7, please refer to the following
program:
Ladder diagram:
X0
MC
N0
X1
Y0
X2
MC
N1
X3
Y1
MCR
N1
MCR
N0
X10
MC
N0
X11
Y10
MCR
N0
Command
code:
Description:
LD X0 Load Contact a of X0
MC N0
Connection of N0 common series
contact
LD X1 Load Contact a of X1
OUT Y0 Drive Y0 coil
:
LD X2 Load Contact a of X2
MC N1
Connection of N1 common series
contact
LD X3 Load Contact a of X3
OUT Y1 Drive Y1 coil
:
MCR N1
Release N1 common series contact
:
MCR N0
Release N0 common series contact
:
LD X10 Load Contact a of X10
MC
N0
Connection of N0 common series
contact
LD X11 Load Contact a of X11
OUT Y10 Drive Y10 coil
:
MCR N0
Release N0 common series contact