22 • vacon
modbus
Tel.+358 (0)201 2121 • Fax +358 (0)201 212 205
6
Example of a request to preset register 42001 to 00001hex in Slave device 1:
ADDRESS
01 hex
Slave address 1 hex (= 1)
FUNCTION
06 hex
Function 04 hex (= 4)
DATA
Starting ddress HI
07 hex
Starting address 07d0 hex (= 2000)
Starting address LO
D0 hex
Data HI
00 hex
Data = 0001 hex (= 1)
Data LO
01 hex
ERROR
CHECK
CRC HI
48 hex
CRC field 4887 hex (= 18567)
CRC LO
87 hex
6.1.1.4
Preset Multiple Registers
The query message specifies the register references to be preset. Registers are addressed starting
with zero, i.e. register 1 is addressed as 0.
Example of a request to preset two registers starting at 42001 to 0001hex and 0010hex in Slave device
1:
ADDRESS
01 hex
Slave address 1 hex (= 1)
FUNCTION
10 hex
Function 10 hex (= 16)
DATA
Starting ddress HI
07 hex
Starting address 07d0 hex (= 2000)
Starting address LO
D0 hex
No. of registers HI
00 hex
Number of registers 0002 hex (= 2)
No. of registers LO
02 hex
Byte count
04 hex
Byte count 04 hex (= 4)
Data HI
00 hex
Data 1 = 0001 hex (= 1)
Data LO
01 hex
Data HI
00 hex
Data 2 = 0010 hex (= 16)
Data LO
10 hex
ERROR
CHECK
CRC HI
88 hex
CRC field 88CF hex (= 35023)
CRC LO
CF hex