Справочник Пользователя для Mitsubishi Electronics FXCPU
16 Applied Instructions (External Device)
16.9 MCDE / F2-30GM code
432
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
16.9
MCDE / F
2
-30GM code
Outline
This instruction sends the M code numbers M0 to M77 to the PLC from the F
2
-30GM type pulse output unit.
1. Format and operation, execution form
2. Set data
3. Applicable devices
Function and operation explanation
• From F
2
-30GM type pulse output unit, M code number M0 to M77 is
sent out to the PLC.
• The content of the device specified by
,
is determined by the
connection position of FX
2
-24EI type special block.
• When M code output instruction is executed at the F
2
-30GM side, input
X is operated according to the value 0 to 77 (octal), and the result is
stored in M500 to M577 in octal notation.
For example, in the case of M code 23, M523 is turned ON.
stored in M500 to M577 in octal notation.
For example, in the case of M code 23, M523 is turned ON.
• For the ease of understanding of correspondence of M code number between the PLC side and the F
2
-
30GM side, it is recommended to set 00 in the lower two digits of device M, S specified by
.
• In the FX-1GM type pulse output unit, FROM instruction is used instead of MCDE instruction.
Cautions
The instruction is not provided in the FX
U
and FX
2C
PLCs Ver. 3.30 or later.
This instruction is disused from V3.30 and later.
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD
ST
MCDE
16 bits
Continuous
MCDE(EN, s, d1, d2);
MCDEP
16 bits
Pulse
MCDEP(EN, s, d1, d2);2
Variable
Description
Data type
Input
variable
variable
EN
Execution condition
Bit
Head input number of FX
2
-24EI connected to F
2
-30GM
Bit
Output
variable
variable
ENO
Execution state
Bit
Head output number of FX
2
-24EI connected to F
2
-30GM
Bit
Bit device for issuing M code number (78 points occupied)
Bit
Operand
type
Bit Devices
Word Devices
Others
System user
Digit designation
System
user
Special
unit
Index
Con
stant
Real
Number
Character
String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R
U
\G
V Z Modifier K H
E
"
"
P
z
z
z z
z
MCDE
EN
s
s
ENO
d1
d2
d2
MCDEP
EN
s
s
ENO
d1
d2
d2
X000
FX
2
-30GM
→FX
U,
FX
2C
M code number M0 to 77 (octal)
Y030
MCDE
EN
s
ENO
d1
d2
X040
M500