Retrieve statistics message – Comtrol Modbus TCP User Guide User Manual
Page 31

DeviceMaster UP Modbus/TCP User Guide: 2000447 Rev. I
Chapter 2. Programming Interface - 31
Retrieve Statistics Message
2.5. Retrieve Statistics Message
The data returned from the Retrieve Statistics message contains various counters. The Retrieve Statistics
message formats the data into 32-bit integers and returns data in an array of WORDs. The first WORD
contains the most significant word and the second WORD contains the least significant word.
Note: Some Modicon PLC programming software, such as Concept, requires one to be added to the address
offset. This is because their address range begins at 40001, while the address range on the DeviceMaster
UP begins at zero.
The following table displays the format of the Retrieve Statistics message.
The Retrieve Statistics messages have the following characteristics.
DeviceMaster UP Addressing for the
Statistics Modbus/TCP Messages
Serial Port
1
Serial Port
2
Serial Port
3
Serial Port
4
Access
Rule
Unit ID
255 (FF hex) 255 (FF hex) 255 (FF hex) 255 (FF hex) N/A
Statistics Address
1600
2600
3600
4600
Read Only
Index
Name
Data Type
Data Value(s)
Access Rule
1
Receive Byte Count
UDINT
0=default
Read only
2
Receive Packet Count
UDINT
0=default
Read only
3
Transmit Byte Count
UDINT
0=default
Read only
4
Transmit Packet Count
UDINT
0=default
Read only
5
Dropped Packet Count to PLC
UDINT
0=default
Read only
6
Parity Error Count
UDINT
0=default
Read only
7
Framing Error Count
UDINT
0=default
Read only
8
Overrun Error Count
UDINT
0=default
Read only
9
Unexpected Transmit Sequence
Number errors
UDINT
0=default
Read only
10
Invalid Modbus/RTU Device Responses UDINT
0=default
Read only
11
Modbus/RTU Device Timeouts
UDINT
0=default
Read only
12
Reserved
UDINT
0
Read only
Retrieve Statistics Message Description
Receive Byte Count
This attribute counts the number of bytes received on the serial port.
Receive Packet Count
This attribute counts the number of packets received on the serial port.
Transmit Byte Count
This attribute counts the number of bytes transmitted on the serial port.
Transmit Packet Count
This attribute counts the number of packets transmitted on the serial port.
Dropped Packet Count to PLC
This attribute counts the number of dropped receive packets on the serial
port intended for the PLC due to:
•
No STX byte(s) found
•
No ETX byte(s) found
•
Time-outs
•
Too large of packet
•
Receive buffer queue overflows
Parity Error Count
This attribute counts the number of packets with parity errors received on
the serial port.
Framing Error Count
This attribute counts the number of packets with framing errors received
on the serial port.