Mitsubishi Electric MELSEC IQ-R series Reference Manual page 116

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

Communication example
Read values from device as follows. (Subcommand: for MELSEC-Q/L series)
Item
Word device
Bit device
■Data communication in ASCII code
(Request data)
0
4
0
6
30
34
30
36
H
H
H
H
Device
Device number
code
D
*
0
0
44
2A
30
30
30
H
H
H
H
Device
Device number
code
M
*
0
0
4D
2A
30
30
30
H
H
H
H
Device
Device number
code
B
*
0
0
42
2A
30
30
30
H
H
H
H
(Response data)
0
0
0
30
30
30
H
H
H
D0
M15
to
M0
2
0
3
32
30
33
H
H
H
Bit device
Data in the first block
M15 Bit order of M0
2
0
0 1 0
0 0 0 0 0 0 1 1
M15
8 DEVICE ACCESS
114
8.4 Batch Read and Write Multiple Blocks
Content to be read
Block 1: D0 to D3 (4 points)
Block 2: W100 to W107 (8 points)
Block 1: M0 to M31 (2 points)
Block 2: M128 to M159 (2 points)
Block 3: B100 to B12F (3 points)
Number of word
Number of bit
device blocks
device blocks
Subcommand
0
0
0
0
0
2
0
30
30
30
30
30
32
30
H
H
H
H
H
H
H
Number of
device points
0
0
0
0
0
0
0
4
30
30
30
30
30
30
34
H
H
H
H
H
H
H
Number of
device points
0
0
0
0
0
0
0
2
30
30
30
30
30
30
32
H
H
H
H
H
H
H
Number of
device points
0
1
0
0
0
0
0
3
31
30
30
30
30
30
33
H
H
H
H
H
H
H
Word device
Data in the first block
8
2
0
3
0
1
5
38
32
30
33
30
31
35
H
H
H
H
H
H
H
D1
D2
M31
to
M16
M143
to
0
4
8
4
9
C
3
30
34
38
34
39
43
33
H
H
H
H
H
H
H
Data in the second block
0
3
0
0 0 0 0
M0
to
3
33
H
Device
Device number
code
W
*
0
0
0
1
0
57
2A
30
30
30
31
30
H
H
H
H
H
H
H
Device
Device number
code
M
*
0
0
0
1
2
4D
2A
30
30
30
31
32
H
H
H
H
H
H
H
H
4
5
2
8
0
0
0
34
35
32
38
30
30
30
39
H
H
H
H
H
H
H
D3
M128
M159
to
M144
B10F
D
E
2
8
0
0
0
44
45
32
38
30
30
30
39
H
H
H
H
H
H
H
Bit device
0 = OFF
1 = ON
Number of
device points
0
0
0
0
8
30
30
30
30
38
H
H
H
H
H
H
Number of
device points
8
0
0
0
2
38
30
30
30
32
H
H
H
H
H
H
Word device
Data in the second block
9
7
0
0
1
37
30
30
31
33
H
H
H
H
H
to
W100
W107
to
B100
B11F
to
B110
B12F
9
7
0
B
9
A
F
B
37
30
42
39
41
46
42
H
H
H
H
H
H
H
Bit device
Data in the third block
3
1
31
H
H
to
B120
9
A
F
39
41
46
H
H
H
H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents