The Xentara Modbus Driver v1.2
User Manual
RTU Busses
See also
I/O Components in the Xentara user manual

RTU busses are a type of Xentara I/O components. Each RTU bus represent a physical or virtual serial port with one or more attached Modbus servers.

An RTU bus will typically be have a structure similar to this:

Sometimes, the individual devices will have separate polls so that different polling intervals can be used for different devices:

Reopening Ephemerial Serial Devices

Some serial devices can become available and unavailable during the operation of Xentara. A Modbus device that is connected using USB, for example, will become unavailable when unplugged, and available again when pluggen back in. If such a device is unplugged and plugged back in, the serial port must be reopened before communication can resume. The Xentara Modbus driver does not automatically attempt to reopen the connection, because this may have undesirable effects for some types of devices.

If you are communicating with devices on an RTU bus that may need to be reopened, you must schedule the reopening attempts explicitly. Modbus RTU busses have a task named reconnect that can be inserted into a Xentara execution pipeline in order to schedule the reopening attempts. If you do not schedule this task, then the RTU bus will not be reopened if it ever fails. Note that built-in serial ports, as well as serial ports on serial expansion cards and the like, can never become unavailable unexpectedly, so you do not need to schedule a reconnect task for such busses. Only schedule this task for serial lines that can be connected and disconnected on the fly, like USB to serial bridges.

Accessing RTU Busses

See also
Accessing Xentara Elements in the Xentara user manual

Modbus RTU busses have the following members:

Attributes
keyThe bus’s primary key.
nameThe bus’s name. The name is the last component of the primary key.
UUIDThe unique UUID of the bus.
typeThe bus’s element type. For Modbus RTU busses, this is always “Modbus RTU bus”.
categoryThe bus’s category. For Modbus RTU busses, this is always “device”.
deviceThe serial port device.
baudRateThe baud rate, in bits per second.
Tasks
reconnectAttempts to reopen the serial port if it is closed.