earth_america
user_standard Anmelden
action_search_stroke
earth_america
Log on to rate and give feedback 1 2 3 4 5 Log on to rate
0
Ratgeber

Ratgeber


Produkte: AS-B, AS-P, Project Configuration Tool
Funktionen: Modbus
Produktversion: 2024, 7.0
30.04.2025

Opening Modbus Diagnostics

You open Diagnostics to check the health of your Modbus devices.

Mehr zeigen
action_close

Diagnostics data within the Modbus network should be interpreted in a hierarchical manner. The Modbus Network presents diagnostics for all devices and points beneath it, while each individual device displays diagnostics for itself, as well as for its associated register groups and points.

This hierarchical structure means that "Sent Messages" and "Error Counters" are aggregated at each level. For instance, the "Sent Messages" property of a device represents the total number of requests generated by the device itself (such as online polls) in addition to those from each of its owned points and register groups.

The "Status" indicator for the Network, Device, or Point reflects the most critical issue encountered within that context. For example, if a device experiences errors with two points—one due to misconfiguration (Point Modbus Error) and the other related to performance (Point Performance Issue)—the device status will display "Point Modbus Error," referencing the misconfigured point. This prioritization highlights the most severe issue that requires attention.

For a comprehensive overview of system health and size, users can navigate to: /System/Modules/ModbusPlugIn/Diagnostics, which provides insights into the overall state of the system.

Status Values

The possible status values for the status field in Modbus diagnostics are:

Tabelle: Status Values for the Status Field in Modbus Diagnostics

Values

Text

Description

0

Ok

1

Unknown

2

Disabled

3

Inefficient Group

The register group may benefit from reorganization to enhance performance. For example, ensure that all registers within a close address range (e.g., <100) can be read contiguously. If contiguous reading is not feasible, consider splitting the register group so that each subset of registers can be accessed in a single Modbus request.

4

Point Performance Issue

The point cannot be read as quickly as required by the user or system. For instance, if the requested polling rate is 1000 ms but the point only updates every 2000 ms, performance may be impacted.

5

Point Network Error

The most recent attempt to read the Modbus point was unsuccessful due to a network error.

6

Misconfigured Group

A register group contains at least one point that cannot be accessed because of a Modbus error. For example, if there is an attempt to read register 101, but the device lacks this register, it will respond with an error indicating its absence.

7

Point Modbus Error

A point is incorrectly configured and cannot be read. For instance, if there is an attempt to read register 101 and the device does not support it, an error will be generated.

8

Invalid Device

A configuration setting on the device is invalid, preventing successful communication.

9

Offline

Offline

Hinweis
  • Errors are categorized according to their severity levels. For example, if a device has one object with a status level of 3 (Inefficient Group) and another object with a status level of 5 (Point Network Error), the device status will reflect the more severe status of 5 (Point Network Error). This approach assists users in identifying and addressing the most critical issues first.

Modbus Error Field

The Modbus error field displays the error code corresponding to the most recent communication failure that resulted in a Modbus error. A Modbus error indicates that a reply was received from the specified device containing an error code as defined in the Modbus standard. These codes are detailed in the Modbus standard documentation: (https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf) under the section titled "7 MODBUS Exception Responses." It is important to note that this field specifically presents Modbus exception codes rather than general errors.

Network Error Field

The network error field is populated when the most recent error is attributed to a network issue. This includes situations where no response is received from a device or when the received response cannot be accurately decoded.

Unlike the Status and Modbus Error fields, this field does not correspond to a defined data set. Descriptive error messages are generated within the code. Relevant messages are displayed from the operating system framework or Boost communication framework when available to assist with error diagnostics.

Generally, these errors arise when a device or gateway is unresponsive, or when a connection fails due to network conditions (e.g., an unplugged cable or an unreachable device IP address).

In general, if an error message is unclear, the EBO tracelog can provide more data. The error timestamp, which is also part of the diagnostics tab, should be used to find the proper log entries, if any.

Serial communication errors

Error message

Description

Serial Port Communication Error

An issue has occurred with communication on the serial port. This could be due to a port initialization failure, read error from the driver, or similar factors. Further details may be available in the log at the timestamp indicated in the "last error" field.

Operation Not Handled

A message was processed, but no response data was returned. This indicates an internal error; please refer to the log for additional details. Invalid ID Address – A request was received for a serial device with an invalid ID. Communication will not proceed until the device ID is corrected.

Message Too Short/Long

This error arises when the received serial response has an unexpected length. For example, if the header indicates 10 bytes of data, but only 8 or 12 bytes are received.

Request Stuck Too Long

The device did not respond within the allotted timeout period. This may indicate a performance issue or that the device is completely offline (e.g., due to a power failure).

TCP Communication errors

Error message

Description

TCP Device Currently Shutting Down. No Open Connection

This error occurs when the connection is in the process of shutting down, either during a shutdown/disable action or while restarting the connection due to timeouts.

Network Operation Timed Out

This error indicates that the device did not respond in the expected timeframe, which may be due to performance issues or an offline device.

Boost Errors

These are not literal errors but refer to specific issues from the Boost TCP implementation. An exhaustive list is not currently available, but the trace log may provide more insight at the error timestamp.

Connection Terminated

This error is shown when queued messages are abruptly terminated due to a critical communication error, such as the target device shutting down the TCP connection or the connection being terminated due to a timeout.

Failed to Find Existing or Create New Modbus Device for $ID

This error occurs when a TCP connection cannot be established or queued for the specified device with Modbus ID $ID.

Request Already in Queue

This error arises when an attempt is made to send a request that exactly matches one already in the device queue. This can occur with long timeouts or if two users are accessing the same Modbus point from different workstations. No Such Priority – This is an internal error that should be reported as a software bug.

General errors

Error message

Description

Device Address is Invalid or Device is Disabled

This error occurs if a user tries to read data from a device that is either disabled or has an invalid address.

Device is Disconnected from Internal Modbus Network

This indicates an internal error and should be reported as a software bug.

Attempt to Add Object to Register Group with Invalid Read Code

Modbus register groups only support read codes for reading Coils and Registers. Points with more complex read codes are not supported in register groups.

Register Group is Disconnected from Internal Modbus Device

This indicates an internal error and is considered a software bug.

Response Data Length or Format Error

This occurs when bad data is received from the Modbus device.

Wrong Data Length Scattered Read

This indicates a data format error or the reception of data specific to a scattered read.

To open Modbus diagnostics
  1. In WorkStation, in the System Tree , expand the System folder.

  2. Expand the Modules folder and click Modbus Plugin .

  3. Click Diagnostics .

Based on the results of your diagnostics, you may need to make adjustments to your Modbus devices.

  • Modbus Overview
  • Modbus Upgrade
  • Diagnostics
  • System Upgrade Overview
  • Updating Modbus Bindings between EcoStruxure Building Operation Servers