12
Modbus RTU On-Board communications
POWERXL DG1 SERIES VFD
MN040010EN—September 2016 www.eaton.com
Example of the request to write single register 2000 from
Slave device 18, the output value is 5.
Table 16. Request to write single register
Item
Code
Description
Slave address
0x12
Function code
0x06
Output address High
0x07
Starting address 0x07D0 hex (= 2000)
Output address Low
0xD0
Output value High
0x00
Output value 0x0005 hex (= 5)
Output value Low
0x05
CRC High
0x4B
CRC Low
0xE7
Example of Write coils 19–28 from Slave device 18.
Table 17. Write coils 19–28
Item
Code
Description
Slave Address
0x12
Function code
0x0F
Starting Address High
0x00
Starting Address 0x0013 (= 19)
Starting Address Low
0x13
Quantity of Outputs High 0x00
Quantity of Outputs 0x000A (= 10)
Quantity of Outputs Low 0x0A
Bye Count
0x02
Outputs Value High
0xCD
Outputs Value Low
0x01
CRC High
0xAB
CRC Low
0xFB
ote:
N
The binary outputs in the previous example corre-
spond to the outputs in the following way.
Table 18. Binary bits and corresponding outputs
Bit
1
1
0
0
1
1
0
1
0
0
0
0
0
0
1
Output
26 25 24 23 22 21 20 19 — — — — — 28 27
Example of write Holding registers 2000-2001 from Slave
device 18.
Table 19. Request to write holding registers
Item
Code
Description
Slave Address
0x12
Function code
0x10
Starting Address High
0x07
Starting Address 0x07D0 (= 2000)
Starting Address Low
0xD0
Quantity of Outputs High 0x00
Quantity of Outputs 0x0002 (= 2)
Quantity of Outputs Low 0x02
Bye Count
0x04
Outputs Value High
0x00
Outputs Value Low
0x01
Outputs Value High
0x00
Outputs Value Low
0x02
CRC High
0x53
CRC Low
0x46