Mitsubishi Electric MELSEC FX3U Programming Manual page 217

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2) When the nesting structure is adopted
When using MC instructions inside MC instruction, increase the nest level "N" in turn in the way "N0 → N1
→ N2 → N3 → N4 → N5 → N6 → N7".
For returning from the nesting structure, reset the nest levels from the highest one in turn using MCR
instruction in the way "N7 → N6 → N5 → N4 → N3 → N2 → N1 → N0".
For example, if "MCR N5" is programmed without programming "MCR N6" and "MCR N7", the nest level
is returned to 5 at one time.
Available nest levels are from N0 to N7 (eight layers).
Circuit program
While X000
is OFF
[A]
N 0
[B]
While
X002 is
OFF
N 1
[C]
While
X004
is OFF
N 2
[D]
[C]
[B]
[A]
X000
MC
N 0
M100
M100
X001
Y000
X002
MC
N 1
M101
M101
X003
Y001
X004
MC
N 2
M102
M102
X005
Y002
MCR
N 2
X006
Y003
MCR
N 1
X007
Y004
MCR
N 0
X010
Y005
N 0
Level N0
The bus line B is active while X000 is ON.
N 1
Level N1
The bus line C is active while both X000 and
X002 are ON.
N 2
Level N2
The bus line D is active while all of X000,
X002 and X004 are ON.
N 2
Level N1
The bus line returns to the status of the bus
line C by "MCR N2".
N 1
Level N0
The bus line returns to the status of the bus
line B by "MCR N1".
N 0
Initial status
The bus line returns to the initial status of the
bus line A by "MCR N0". Accordingly, Y005
turns ON or OFF by turning ON or OFF of
X010 without regard to X000, X002 and X004.
7 Basic Instruction
7.9 MC, MCR
1
2
3
4
5
6
7
8
9
10
215

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents