Words
|
Value of the Words
|
Description
|
---|---|---|
%MW10
|
:= 16#0004
|
corresponds to the read function of n input words (byte 0 = 16#04, byte 1 = 16#00)
|
%MW11
|
:= 16#0296
|
corresponds to the identification of the Modbus function
|
%MW12
|
:= 0
|
reserved
|
%MW13
|
:= 16#0A00
|
address of the first word to read (1)
|
%MW14
|
:= 16#0400
|
number of words to read (1)
|
%MW103
|
:=10 (bytes)
|
length of the data to be transmitted in bytes
|
Key:
|
||
(1)
|
the most significant bytes and the least significant bytes must be inverted.
|
Value of %MW50
|
Value of %MW51
|
Description
|
---|---|---|
:= 0 if action taken
|
:= 16#0004
|
corresponds to the read function of n input words (byte 0 = 16#04, byte 1 = 16#00)
%MW52 to %MW79 contain the Modbus response data:
|
:= 1 if action not taken
|
:= 16#0007
|
incorrect request parameters
|
:= 16#0004
|
incorrect question parameters
|
|
:= 16#0688
|
byte 0 =16#80 + function code (16#08 for Echo)
byte 1 = 16#06 Modbus error code (the slave is busy)
|
|
:= 16#0188
|
byte 0 =16#80 + function code (16#08 for Echo)
byte 1 = 16#01 Modbus error code (the function is unknown)
|
|
:= 16#0388
|
byte 0 =16#80 + function code (16#08 for Echo)
byte 1 = 16#03 Modbus error code (the data is invalid)
|