Mc, Mcr - Mitsubishi Electric MELSEC FX3U Programming Manual

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
7.9

MC, MCR

Outline
When MC instruction is executed, the bus line (LD or LDI point) is moved to a position after MC contact.
The bus line can be returned to the original position by MCR instruction.
By changing a device (Y or M) number, MC instruction can be used as many times as necessary.
If a same device number is used twice, however, it results in the double coil operation in the same way as
OUT instruction.
1. Instruction format
MC
Master Control
MCR
Master Control
Reset
2. Applicable devices
Bit Devices
Instruc-
System User
tion
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
MC
MCR
: Except special auxiliary relays (M)
Explanation of function and operation
1. MC and MCR instructions (denotes the start of a master control block and denotes the end
of a master control block)
When MC instruction is executed, the bus line is moved to a position after MC contact.
Drive instructions connected to the bus line after MC contact execute each operation only when MC
instruction is executed, and do not execute the operation when MC instruction is not executed.
In the program example below, the instructions from MC to MCR are executed as they are while the input
X000 is ON.
However, while the input X000 is OFF, each driven device offers the following operation:
Timers (except retentive type timers) and devices driven by OUT instruction: Turn OFF.
Retentive type timers, counters and devices driven by SET/RST instruction: Hold the current status.
The expressions of circuit programs used to explain operations are circuits (for reading or monitoring) of GX
Developer.
Circuit program
X000
N 0
M100
X001
X002
Mnemonic
Basic Instruction
MC
Mnemonic
Basic Instruction
MCR
2 steps
→ For the number of steps of MC instruction, refer to Section 7.15.
Digit Specification
There are no applicable devices.
MC
N 0
M100
Y000
Y001
MCR
N 0
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Word Devices
Special
System User
Index
Unit
V Z Modify K H
List program
0000
LD
X000
0001
MC
N000
SP
M100
0004
LD
X001
0005
OUT
Y000
0006
LD
X002
0007
OUT
Y001
0 ← Two-step instruction
0008
MCR
N
← Write MCR N0 instruction.
7 Basic Instruction
7.9 MC, MCR
Others
Con-
Real
Charac-
stant
Number
ter String
E
" "
Three-step instruction
1
2
3
4
5
Pointer
P
6
7
8
9
10
213

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents