2-71
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Sequence Control Instructions
2
MC and MCR
• If you use the MC and MCR instructions and the JMP instruction together, the operation is as follows:
• The following figure shows an MC-MCR pair inside a JMP-Label pair. Here, the jump is executed
regardless of the value of In.
• The following figure shows a JMP-Label pair inside an MC-MCR pair. Here, operation is as given
in the following table.
Value of In Operation
TRUE Master control region is not reset. The jump is made.
FALSE Master control region is reset. The jump is not made.
Label
Flow of processing
JMP instruction executed.
Not executed due
to JMP instruction.
Instructions after the label
are executed.
Label:
UINT#1
UINT#1
MCR
EN ENO
MCNo
MC
In ENO
MCNo
Label
Label:
UINT#1
UINT#1
UINT#1
UINT#1
MCR
EN ENO
MCNo
MC
In ENO
MCNo
Label
Label:
MCR
EN ENO
MCNo
MC
In ENO
MCNo
Flow of processing
● In = TRUE
● In = FALSE
MC instruction not executed.
MCR instruction not executed.
Instructions after the label
are executed.
Not executed due
to JMP instruction.
JMP instruction executed.
Flow of processing
MC instruction
executed.
MCR instruction
executed.
Not executed due
to MC instruction.