Industrial
Electronic Devices
ADFweb.com Srl – IT31010 – Mareno – Treviso INFO:
www.adfweb.com
Phone +39.0438.30.91.31
User Manual
PROFINET / Modbus Master
Document code: MN674-A006_ENG Revision 1.000 Page 32 of 47
Page 32 of 47
B2 command
This command allows to see the number of errors for each Modbus poll defined in the section “Set Access”.
REQ:
Byte 0
0xB2
RES:
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
…
0xB2
Number of errors for Poll 1
Number of errors for Poll 2
…
Note:
In the UDP message, after the command’s identifier (0xB2), you can read the number of errors for the Modbus Reading requests
and then for the Modbus writing requests defined in the section “Set Access”.
Example:
We have defined one Modbus Reading request and one Modbus Writing request in the section “Set Access”. We want to know the number of
error for each poll, so we use the B2 command
REQ:
Byte 0
0xB2
RES:
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
Identifier
Number of error for poll 1
Number of error for poll 2
0xB2
0x00
0x00
0x00
0x00
0x00
0x00
0x00
0x05
In this example, for the Modbus poll 1 (Modbus Reading request) the errors are 0 and fort he Modbus poll 2 (Modbus Writing Request) the
errors are 5.