CHAPTER 13 RS-485 COMMUNICATIONS
Modbus RTU Communications 13-13
13
FC 17h (Read out/write in various data)
Only addresses 6000H to 600FH are applicable.
An exception response (exception code: 02H) is returned if an address outside this range is
specified.
(1) Query from the master
Station No. 1 byte
FC 1 byte
・・・
17h
(H)
Read out start
address
2 bytes
(L)
・・・ Specifies the data address.
* Addresses from 6000H to 600FH
can be
set.
(H)
No. of registers
2 bytes
(L)
・・・ Specify the number of sets of data n x 2.
* Up to setting range 1 to 16
for number of
sets of data n
(H)
Write in start
address
2 byte
(L)
・・・ Specify the data address.
* Addresses from 6000H to 6007H
can be set.
(H)
・・・
No. of registers
2 byte
(L)
Specify the number of sets of data
n x 2
.
* Up to setting range 1 to 8
for number of
sets of data n
No. of data bytes
1 byte
・・・
n x 4
(HH)
・・・
(HL)
(LH)
Data 1
4 bytes
(LL)
Write in data for n sets from the specified
address
* For the data format, refer to the format field
(symbol) in table 4-1.
~
~
(HH)
(HL)
(LH)
Information
Data n
4 bytes
(LL)
(L)
CRC check
16 bits
(2 bytes)
(H)
(2) Response message from slave
Station No. 1 byte
FC 1 byte
・・・ 17h
No. of data bytes
1 byte
・・・
n x 4
(HH)
(HL)
(LH)
Data 1
4 bytes
(LL)
~
~
・・・
Read out data for n sets from the specified
Address
** Data read out range:
1 to 16
(HH)
(HL)
(LH)
Information
Data n
4 bytes
(LL)
(L)
CRC check
16 bits
(2 bytes)
(H)