5 SEQUENCE INSTRUCTIONS
5.5 Master Control Instructions
209
5
• 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)
(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
MC N1 M16
MC N2
M17
MCR
N2
MCR
N1
MCR
N0
N0
M15
N1
M16
N2
M17
A
B
C
MC
N0 M15
MC
N1 M16
MC
N2 M17
MCR
N2
MCR
N1
MCR
N0
N0
M15
N1
M16
N2
M17
A
B
C
(1)
(2)
(3)
(2)
(1)
(4)
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......