Mitsubishi Electronics MELSEC-F Universal Remote User Manual


 
9 - 21
MELSEC-F
WHEN COMMUNICATING DATA USING THE MC PROTOCOL9
9 - 21
9.3.3 Batch write in bit units (command: 02)
The examples shown in this section explain the command/response format when
batch writing to the bit device memory.
For more details on the order and contents of data items of the areas marked by " "
shown in the control procedure diagram, see Subsection 9.1.2.
[Control procedure]
Writing the on/off status of M50 to M61 of the PLC on which the Ethernet module is
loaded.
(1) Communication in binary code
0A
H
32H00
H
(Data name)
External device
side
(Example)
(Data name)
PLC side
(Example)
02
H
FF
H
00
H
00
H
00
H
20
H
0C
H
00
H
82
H
00
H
HL L
4D
H
01
H
11
H
01
H
00
H
00
H
01
H
HLHLHLH
1
0
1
1
1
0
0
0
0
0
1
0
M50
(OFF)
M51
(ON)
M52
M53
(ON)
M54
(OFF)
M56
(OFF)
M55
(ON)
M58
(OFF)
M59
(OFF)
M60
(OFF)
M61
(ON)
(ON)
M57
(OFF)
-
---
Subheader
PC No.
Number of device points
Head device
Monitoring
timer
Data for the number
of designed device
points
Characters for the
number of device
points
Subheader
Complete code