Nesting (N) - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

9.9 Nesting (N)

(1) Definition
Nesting (N) is a device used in the master control instructions (MC and MCR instructions) to program operation
conditions in a nesting structure.
(2) Specification method using master control instructions
The master control instruction opens or closes a common ladder gate to switch the ladder of a sequence program
efficiently.
Specify the nesting (N) in ascending order (in order of N0 to N14), starting from the outside of the nesting
structure.
Control
Control
range of
range of
nesting N1
nesting N0
Remark
For use of the nesting, refer to the following.
QCPU Programming Manual (Common Instructions)
9 - 70
A
N0
M15
B
N1
M16
C
N2
M17
Control
range of
nesting N2
Figure 9.83 Programming example using the nesting
Designated in
ascending No. order
N0
M15
MC
Executed when condition
A is met.
N1
M16
MC
Executed when conditions
A and B are met.
N2
M17
MC
Designated in
descending No. order
Executed when conditions
A, B, and C are met.
MCR
N2
Executed when conditions
A and B are met.
MCR
N1
Executed when condition
A is met.
MCR
N0
Executed regardless of
conditions A, B, and C.

Advertisement

Table of Contents
loading

Table of Contents