Diagnostics Available through Modbus/TCP
Original instructions
Introduction
CPUs and BMENOC0301/11 communication modules in M580 systems support the diagnostic codes in these tables.
Function Code 3
Some module diagnostics (I/O connection, extended health, redundancy status, FDR server, etc.) are available to Modbus clients that read the local Modbus server area. Use Modbus function code 3 with the unit ID set to 100 for register mapping:
Type
Offset Modbus Address
Size (Words)
Basic Networks Diagnostic Data
0
39
Ethernet Port Diagnostics Data (Internal port)
39
103
Ethernet Port Diagnostics Data (ETH 1)
142
103
Ethernet Port Diagnostics Data (ETH 2)
245
103
Ethernet Port Diagnostics Data (ETH 3)
348
103
Ethernet Port Diagnostics Data (backplane)
451
103
Modbus TCP/Port 502 Diagnostic Data
554
114
Modbus TCP/Port 502 Connection Table Data
668
515
SNTP Diagnostics
1218
57
QoS Diagnostics
1275
11
Identify
2001
24
For a description of available function codes refer to the list of supported Modbus diagnostic codes in the topic Modbus Diagnostic Codes in the Quantum EIO Control Network Installation and Configuration Guide.
Function Code 8
Modbus function code 08 provides a variety of diagnostic functions:
Operation Code
Diag. Control
Description
0x01
0x0100
network diagnostic data
0x0200
Read the Ethernet port diagnostic data from the switch manager.
0x0300
Read the Modbus TCP/port 502 diagnostic data from the Modbus server.
0x0400
Read the Modbus TCP/port 502 connection table from the Modbus server.
0x07F0
Read the data structure offset data from the Modbus server.
0x02
0x0100
Clear the basic network diagnostic data. NOTE: Only specific parameters of basic network diagnostic data are used to clear requests.
0x0200
Clear the Ethernet port diagnostic data. NOTE: Only specific parameters of basic network diagnostic data are used to clear requests.
0x0300
Clear the Modbus TCP/port 502 diagnostic data. NOTE: Only specific parameters of Modbus port 502 diagnostic data are used to clear requests.
0x0400
Clear the Modbus TCP/port 502 connection table. NOTE: Only specific parameters of Modbus port 502 connection data are use to clear requests.
0x03
0
Clear all diagnostic data. NOTE: Only specific parameters of each diagnostic data are used to clear requests.
Read Device Identification
Modbus function code 43, subcode 14: A Modbus request associated with function code 43 (Read Device Identification) asks a Modbus server to return the vendor name, product name, version number, and other optional fields:
Category
Object ID
Object Name
Type
Requirement
Basic
0x00
VendorName (vendor name)
ASCII string
mandatory
0x01
ProductCode (product code)
ASCII string
mandatory
0x02
MajorMinorRevision (version number)
ASCII string
mandatory
Regular
0x03
VendorUrl (vendor URL)
ASCII string
optional
0x04
ProductName (product name)
ASCII string
optional
0x05
ModelName (model name)
ASCII string
optional
0x06
UserApplicationName (user application name)
ASCII string
optional
0x07...0x7F
(reserved)
ASCII string
optional
Extended
0x80...0xFF
device-dependent
optional
This table provides sample responses to the Modbus request (function code 43, subcode 14):
Module
0x00 Vendor ID
0x01 Part Number
0x02 Version
BMEP584020 CPU
Schneider Electric
BMEP584020
v02.10
BMENOC0301 module
Schneider Electric
BMENOC0301
V02.04 build 0009
BMENOC0311 module
Schneider Electric
BMENOC0311
V02.04 build 0009
BMENOC0321 module
Schneider Electric
BMENOC0321
V01.01 build 0004