Diagnostic Options for Modbus Communication

Diagnostics via the e!COCKPIT Interface

The status of the fieldbus is displayed on the user interface in various places, e.g., on the right of the 4-segment status display of a device or in the status bar in the lower right of the window .
There may be no Modbus communication despite the displayed fieldbus status “Running” (green). For example, variable values remain at “zero”.

  1. In this case, test the connection to the Modbus slave by disconnecting it and connecting it again.

Diagnostics from the Application

If the status indicator does not update and the Modbus server remains inaccessible, you can request further diagnostics via the library instance “FbModbusRemoteSlave”:

  1. To do this, insert the library instance in the application of the master (e.g., using the input help [F2] > Instance calls > “IoConfig_Globals” > [device name]).
  2. Add Library Instance
  3. Call up the respective methods for diagnostics.
Call Up Methods for Diagnostics
Call Up Methods for Diagnostics

“GetErrorCode” returns the following diagnostic information:

“GetChannelErrorCode” returns the status of the passed channel number (starting at 1).

For additional information see: