26
Modbus TCP On-Board communications
POWERXL SERIES VFD MN040010EN—June 2018 www.eaton.com
Example of the request to write single coil 2000 from Slave
device 18, the output value is 1.
Table 42. Request to write single coil
Item Code Description
Slave address 0x12
Function code 0x05
Output address High 0x07
Starting address 0x07D0 hex (= 2000)
Output address Low 0xD0
Output value High 0xFF
Output value 0xFF00 hex (= 65280)
Output value Low 0x00
Note. Output value is 0x0000 or 0xFF00
CRC High 0x8E
CRC Low 0x14
Example of the request to write single register 2000 from
Slave device 18, the output value is 5.
Table 43. 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 44. 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
correspond to the outputs in the following way.
Binary bits and corresponding outputs
Bit 11
00110100000001
Output 26 25
24 23222120 19——————2827
Example of write Holding registers 2000–2001 from Slave
device 18.
Table 45. 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
Modbus registers
The variables and fault codes as well as the parameters can
be read and written from Modbus. The parameter addresses
are determined in the application. Every parameter and actual
value have been given an ID number in the application. The
IDnumbering of the parameter as well as the parameter
ranges and steps can be found in the application manual in
question. The parameter value shall be given without decimals.
All values can be read with function codes 3 and 4 (all
registers are 3X and 4X reference). Modbus registers are
mapped to drive IDs as follows.
Table 46. Index table
ID Modbus register Group R/W
1–98 40001–40098
(30001–30098)
Actual Values 1/1
100 40099 (30099)
Fault Code 1/1
101–1999 40101–41999
(30101–31999)
Parameters 1/1
2004–2011 42004–42011
(32004–32011)
Process Data In 1/1
2104–2111 42104– 42111
(32104–32111)
Process Data Out 1/1