CHAPTER 13 RS-485 COMMUNICATIONS
13-8
Modbus RTU Communications
13
(2) Response message from the amplifier
Station No. 1 byte
FC 1 byte
・・・
10h
(H)
・・・
Address 2 bytes
(L)
Specified address
(H)
・・・
Information
No. of
registers
2 bytes
(L)
(L)
CRC check
16 bits
(2 bytes)
(H)
Number of sets of actually written data, m × 2
* The positioning data are m × 10
.
* Cannot write in to nonexistent data.
(3) Message examples
PA2_19: shows a message example to enter 200000 to a preset position.
<Query example>
Station No. 1 byte
01
・・・
When the amplifier station no. is "1".
FC 1 byte
10
41
Address
2 bytes
12
・・・
Specify 4112h as the address of PA2_19.
00
No. of registers 2 bytes
02
・・・
Specify 0002h as the number of data 1×2.
No. of data
bytes
1 byte
04
・・・
1×4 = 04h
00
03
0D
Information
Data 1 4 bytes
40
・・・
Specify 200000 = 00030D40h.
Specify data 1 = FFFCF2C0h for -20000.
BA
CRC check
16 bits
(2 bytes)
49
<Response message example>
Station No. 1 byte
01
FC 1 byte
10
41
Address 2 bytes
12
00
Information
No. of registers 2 bytes
02
F5
CRC check
16 bits
(2 bytes)
F1