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
0AH32H00H
(Data name)
External device
side
(Example)
(Data name)
PLC side
(Example)
02HFFH00H00H00H20H0CH00H
82H00H
HL L
4DH01H11H01H00H00H01H
HLHLHLH
1
01
11
00
00
01
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