
DID-UM-004
Val Controls A/S
•
Limfjordsvej 3
•
DK-6715 Esbjerg N
•
Tel. +45 7547 0600
•
Fax +45 7547 0611
•
www.valcontrols.com
Revision: 3
6/25
4
Function codes
This section contains the supported MODBUS commands.
4.1
03 (0x03) Read holding registers
Reads Register 40001 - 49999
Request
Length
Value
Function code
1 Byte
0x03
Starting address
2 Bytes
0x0000 to 0xFFFF
Quantity of registers
2 Bytes
1 to 125 (0xD7)
Response
Length
Value
Function code
1 Byte
0x03
Byte count
1 Byte
2 x N*
Register value
N* x 2 Bytes
Error
Length
Value
Error code
1 Byte
0x83
Exception code
1 Byte
01 to 08
4.2
16 (0x10) Write multiple registers
Writes to Register 40001 - 49999
Request
Length
Value
Function code
1 Byte
0x10
Starting address
2 Bytes
0x0000 to 0xFFFF
Quantity of registers
2 Bytes
0x0001 to 0x007B
Byte count
1 Byte
2 x N*
Registers value
N* x 2 Bytes
value
Response
Length
Value
Function code
1 Byte
0x10
Byte count
1 Byte
0x0000 to 0xFFFF
Register value
N* x 2 Bytes
1 to 123 (0x7B)
Error
Length
Value
Error code
1 Byte
0x90
Exception code
1 Byte
01 to 08