Website:-www.bholanath.in
E-mail id:[email protected]
17
Response
Error
Error code
1 Byte
0x86
Exception code
1 Byte
01 or 02 or 03 or 04
For configuration parameters exception code 03 indicate that the data send is out of the boundary
limit.
Write Parameter
(Multiple Register)
:
Function Code 0x10 (Write Holding Registers)
Request
Here is an example of a request to write two registers starting at 2 to 00 0A and 01 02 hex:
Read Single Bit Parameter (Coil):
Function Code 0x01
Request
Function code
1 Byte
0x01
Starting Address
2 Bytes
0x0000 to 0xFFFF
Quantity of Coils
2 Bytes
1 to 2000 (0x7D0)
Response
Function code
1 Byte
0x01
Byte count
1 Byte
2 x
N
*
Coil Status
n Byte
n = N or N+1
*
N
= Quantity of Outputs / 8, if the remainder is different of 0 => N = N+1
Error
Error code
1 Byte
Function code + 0x80
Exception code
1 Byte
01 or 02 or 03 or 04
Function code
1 Byte
0x06
Starting Address
2 Bytes
0x0000 to 0xFFFF
Register Value (Data)
2 Bytes
0x0000 to 0xFFFF
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
Data
*
N
= Quantity of Registers
Response
Function code
1 Byte
0x10
Starting Address
2 Bytes
0x0000 to 0xFFFF
Quantity of Registers
2 Bytes
1 to 123 (0x7B)
Error
Error code
1 Byte
0x90
Exception code
1 Byte
01 or 02 or 03 or 04