4
MODBUS(R) STANDARD FUNCTIONS
4.20 Read/Write Multiple Registers (FC: 23)
4
- 60
1
O
VER
VIE
W
2
SYS
T
E
M
CO
NF
IG
U
R
A
T
IO
N
3
S
P
E
CIFICA
TI
ONS
4
MODB
US
(R)
S
TA
NDA
RD
FUN
C
TIO
N
S
5
FUNC
TI
ON
6
PR
E
-O
PER
A
T
ION
AL
P
R
OCED
URE
S A
ND
SE
TTINGS
7
P
A
RA
MET
E
R S
E
TTI
N
G
8
UTIL
ITY P
A
CK
AGE
(G
X Co
nf
ig
u
rat
o
r-M
B)
4.20 Read/Write Multiple Registers (FC: 23)
Reads from or writes to multiple holding registers.
Writing is executed first and reading is then executed.
(1) Request message format (Master Slave)
* 1 The number of the specified write points must be matched with the number of bytes.
(2) Response message format (Slave Master)
(When completed normally)
(When completed with an error)
* 2 Exception and error codes are stored in the buffer memory in the case of error completion.
Refer to the following for storage location, confirmation methods, and detailed contents.
Figure 4.98 Read/Write multiple registers (Request message)
Figure 4.99 Read/Write multiple registers (Normal response message)
Figure 4.100 Read/Write multiple registers (Exception message)
Data
(L)
(L)
(L)
. . .
(L)
(L)
(L)
Function
code
Function
code
(17
H
)
Read head holding
register number
(0000
H
to FFFF
H
)
Read points
n
(0001
H
to 007D
H
)
Write head holding
register number
(0000
H
to FFFF
H
)
Write points
m *1
(0001
H
to 0079
H
)
Number of
bytes
m x 2 *1
(0000
H
to 00F2
H
)
(Number of bytes m x 2)
Write
device data
1
Write
device data
m
(H)
(H)
(H)
(H)
(H)
(H)
Data
(L)
. . .
Function code
Function
code
(17
H
)
Number of
bytes
n x 2
Read
device data
1
Read
device data
n
(Number of bytes n x 2)
(L)
(H)
(H)
Data
Function code
Function code
(97
H
)
Exception
code *
2
Summary of Contents for QJ71MB91
Page 1: ......
Page 2: ......
Page 366: ...App 14 Appendix 4 External Dimensions APPENDICES Memo ...
Page 371: ......
Page 372: ......