Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 211

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

• When a ladder performing a master control includes an instruction which does not require a contact
instruction (such as the FOR to NEXT instruction), the CPU module executes the instruction regardless of
the execution command of the MC instruction.
• To create an easy-to-understand program, use the MC and MCR instructions within a single program block.
• The MC instruction can use the same nesting (N) number as many times as needed by specifying different devices in (d).
• When the MC instruction is on, the coil of the device specified by (d) turns on. Using the same device for the OUT
instruction causes double coils. Do not use the device specified by (d) in other instructions.
■MCR
• This instruction is a master control reset instruction which indicates the end of the master control area.
• Do not place any contact instruction before the MCR instruction.
• Use the MC and MCR instructions with the same nesting number as a set. Note that if the MCR instructions are nested in
one place, all master controls can be terminated by specifying the lowest nesting (N) number. (Refer to "Precautions".)
Operation error
There is no operation error.
The master control instructions can be nested. Individual master control areas are distinguished by nesting
(N) numbers. Nesting can be set from N0 to N14.
Using the nesting structure enables the creation of a ladder which can sequentially constrain the program
execution conditions.
The following figure shows a ladder program example using the nesting structure.
(Left: Display on the engineering tool, Right: Actual operation)
A
N0
M15
B
N1
M16
C
N2
M17
(1) Executed when A is on.
(2) Executed when A and B are on.
(3) Executed when A, B, and C are on.
(4) Executed regardless of the status of A, B, and C
MC
N0 M15
N0
MC N1 M16
N1
MC N2 M17
N2
N2
MCR
N1
MCR
N0
MCR
A
M15
B
M16
C
M17
5 SEQUENCE INSTRUCTIONS
5.5 Master Control Instructions
5
MC N0 M15
(1)
MC N1 M16
(2)
MC N2 M17
(3)
N2
MCR
(2)
N1
MCR
(1)
N0
MCR
(4)
209

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents