Issue
Customers want to read the modbus daignostic of the BMENOC modules to publish this data in their SCADA and this resolution identifies the right configuration of the DATA_EXCH to read this info by Modbus TCP using a Function Code 0x03.
Product Line
Ecostruxure Control Expert, M580, BMENOC0301, BMENOC0311, BMENOC0321
Environment
Control Expert v14.1, Windows 10 version 1902 (OS Build 18362.30), BMEH586040 v2.90, BMENOC0301 v2.17
Resolution
A Modbus request associated with function code 3 with the Unit ID 100 asks the Modbus server BMENOC modules to return I/O connection, extended health, redundancy status, FDR server, etc.:
Using the table above, you can create a Modbus Explicit message using DATA_EXCH to read this information. The example below is to read the modbus diagnostic of a BMENOC0301 (IP address 192.168.10.10) located on slot 2 of the backplane, using ST language and you can use it as a guide for your own logic.
P.S.: Additional information can be found on pages 142/372of the Ethernet Communications Module Installation Guide and on page 12 of the Modbus Application Protocol Specification.