90
8 DEVICE ACCESS
8.2 Batch Read and Write
Communication example (Reading bit device)
Read the value of M100 to M131 (for 2 words). (Subcommand: for MELSEC-Q/L series)
■Data communication in ASCII code
(Request data)
(Response data)
■Data communication in binary code
(Request data)
(Response data)
0401
30
H
34
H
30
H
31
H
000
30
H
30
H
30
H
0M
*
30
H
4D
H
2A
H
000
30
H
30
H
30
H
100
31
H
30
H
30
H
000
30
H
30
H
30
H
2
32
H
Device
code
Subcommand Head device number
Number of device points
1
M115
12340002
000 1001 0001 1010 0000 00000000 0001 0
234
31H 32H 33H 34H
000
30H 30H 30H
2
32H
M100 M131 M116
0=OFF
1=ON
to to
01
H
04
H
00
H
00
H
64
H
00
H
00
H
90
H
02
H
00
H
Device
code
Subcommand
Number of
device points
Head device
number
M107
34120200
001 1010 0000 1001 0000 0001 0000 0000 0
34
H
12
H
02
H
00
H
M100 M115 M108 M123 M116 M131 M124
0=OFF
1=ON
to to to to