Driver Details

Community

Modbus Universal

By: Joe Liggero
Updated: Oct. 16, 2026
Download Driver Purchase License
Rating: 0.0 (0 ratings)
Log in to rate this driver

Two-way RTI control and monitoring for Modbus TCP devices and RS-485 gateways. The driver polls registers and coils, decodes them into RTI system variables, and writes registers and coils on command. Addressing base, data types and word order, scale and offset, and the device's Unit ID are plain settings. Device presets fill in the register map for Eastron SDM120 and SDM630 meters, SolarEdge or Fronius (int+SF) inverters with SunSpec scale factors handled, Victron GX systems and the Waveshare 8-channel relay board, plus thermostat and 16-relay templates to start from.

Version 2.0 is a major update: RTU over TCP for gateways in transparent mode, a Unit ID per point so several RS-485 devices behind one gateway share an instance, and readings marked current or not, so a failed read blanks the value instead of showing an old number as live. A device that stops answering is listed by its Unit ID while the others keep reading. A write pressed while the connection is down is delivered when it returns within 30 seconds, or reported as a Write Error with the point and the reason. New data types (64-bit, float16, text, a bit or byte of a register), value maps, not-available codes, and timing settings for slow devices and gateways.

Highlights:
- Holding registers, input registers, coils and discrete inputs over Modbus TCP or RTU over TCP
- Presets: Eastron SDM120/SDM630, SolarEdge or Fronius (int+SF), Victron GX, Waveshare 8-channel relay, thermostat and 16-relay templates
- Per-point Unit ID for several devices behind one gateway
- Current flag per point, Read Error and Write Error events, LastError names the point and the reason
- Up to 64 points per instance; tested on a real RTI XP-6 with automatic reconnect and backoff
- Full System Log reporting for fast troubleshooting

Requirements: RS-485 (serial) Modbus devices need an RS-485 to Ethernet gateway. Some devices accept only one Modbus connection at a time.

Sample project: a ready-made Integration Designer project with Status, Points and Relays pages for RTiPanel iPad, iPhone and the RTI Virtual Panel is included in the trial download at customcontroldrivers.com/drivers/modbus-universal. Open it to see the driver in use, or copy the pages into your own project.

Modbus Universal v2.0 - Setup Guide

Custom Control Drivers LLC - read and control Modbus TCP devices from RTI: energy meters, solar inverters, battery systems, relay boards, HVAC gateways, PLCs and more.

What it does

Acts as a Modbus TCP master. It polls a device's registers and coils, decodes them into RTI System Variables you bind to pages, and writes registers and coils on command. Address numbering, data types and byte order are plain settings, and built-in PRESETS cover several popular devices.

The fast path

1. Set the Device IP Address, Port (default 502) and Unit / Slave ID.

2. If your device is in the Device Preset list, pick it, then skip to Binding to pages.

3. No preset? Map points by hand under Custom Points.

4. Leave License Key blank for the 2-hour trial; paste your key to license the processor.

Connection settings

Device IP Address - the device or gateway on your LAN. Use a DHCP reservation so it never changes.

Port - Modbus TCP port, default 502. Some devices use another port: check the device's Modbus settings page.

Unit / Slave ID - 0-255. Many direct Ethernet devices answer on 1, some only on 0 or 255. Behind an RS-485 gateway it is the address set on each RS-485 device; a single instance can reach several of them with the per-point Unit ID (see Custom Points).

Poll Interval (ms) - pause between full poll cycles (default 2000).

Addressing Base - how you type Custom Point addresses (see Addressing). Presets are unaffected.

Debug Level - leave Off for normal use. Faults are always written to the processor System Log.

Advanced Connection (only if the device or gateway needs it)

Framing - Modbus TCP for devices and gateways set to Modbus TCP mode. RTU over TCP for an RS-485 gateway set to transparent (raw) mode. If a gateway connects but nothing ever answers, check which mode it is in and match it here. In RTU over TCP, Unit ID 0 is the RS-485 broadcast address and is not used.

Response Timeout (ms) - how long to wait for each reply (default 5000). Raise it for slow devices; a gateway may itself wait several seconds for its RS-485 device.

Gap Between Requests (ms) - pause after each reply (default 60). Raise it to 500 or more if values drop out or the device returns errors when polled quickly.

Startup Delay After Connect (ms) - wait after every connect before the first request (default 0). Use it for devices that drop a request sent right after connecting.

Timeouts Before Reconnect - the connection is restarted after this many replies in a row are missing (default 3). Any reply resets the count. When points use more than one Unit ID, the missing replies must come from more than one unit: a single device that stops answering is listed in UnitsNotAnswering and tried every 30 seconds, while the other devices keep reading.

Reconnect Every Poll Cycle - closes the connection after each cycle and reopens it for the next. For single-connection devices that stop answering on a long-held connection. The poll interval is at least 3 seconds in this mode.

The driver never reconnects sooner than 3 seconds after a connection closes. After a processor restart, a device that allows only one connection can refuse new connections for a while; the driver keeps retrying and shows "retrying" rather than a settings error.

Custom Points - mapping registers by hand

Each Custom Point maps one value to a numbered Point slot (Point01 to Point64). Set Number of Custom Points to reveal that many rows, then fill each:

Name - a friendly label, shown in Point##_Name.

Data Model - Coil (read/write bit, FC01/05), Discrete Input (read-only bit, FC02), Input Register (read-only, FC04) or Holding Register (read/write, FC03). Off skips the row.

Points fill the Point slots in order: preset points first, then each Custom Point row that is not Off. Turning a row Off, or changing the preset, moves every later point to a different slot, so do it on the last rows, or re-check the page bindings afterwards.

Address - the register or coil number, read using the Addressing Base.

Format - the data type and word/byte order (see Data types).

Scale and Offset - value = raw x Scale + Offset (Scale 0.1 for a value reported x10).

Bit / Byte / Length - only for these formats: the bit number (0-15, 0 = lowest) for Bit of a register; the byte (0 = low, 1 = high) for int8 / uint8; the number of registers for Text.

Not Available Values - raw values the device uses for no data, comma separated (for example 32767,32766 or 0xFFFF). A reading equal to one of them is shown as not current instead of as a number.

Value Map - names for coded values, for example 0=Cool,1=Heat,2=Auto. The name appears in Point##_Text, and Set Point accepts the name.

Unit ID - leave blank to use the instance Unit / Slave ID; set it to reach another device behind the same gateway.

Write Function - Single (FC6 / FC5) or Multiple (FC16 / FC15). Some devices accept only Multiple; if a device rejects Single, the driver switches that point to Multiple by itself.

Write Address - leave blank to write to the Address. Set it when the device takes commands at a different address than it reports the state.

Addressing (the off-by-one)

Protocol address (0-based) - what the wire uses and what most developer tools show. Type the raw address.

Register number (1-based) - what many manuals print, often with a table prefix: 4xxxx holding, 3xxxx input, 1xxxx discrete, 0xxxx coil. Drop the prefix digit and pick this base. Examples: 40001 = Holding Register, Address 1. 40108 = Holding Register, Address 108. 30001 = Input Register, Address 1.

Some manuals list plain protocol addresses that only look like prefixed numbers. If every value is shifted by one register, switch the Addressing Base; if values are nonsense, check whether the manual's number is already a protocol address.

Data types

16-bit: uint16, int16, float16. 32-bit: uint32, int32, float32 in four word/byte orders: ABCD normal, CDAB word-swapped (common on meters), BADC byte-swapped, DCBA both. 64-bit: uint64, int64, float64, normal or word-swapped (read-only).

Text - ASCII, 2 characters per register (read-only). Bit of a register and int8 / uint8 (a byte of a register) - writes change only that bit or byte and keep the rest of the register.

If a 32-bit value looks wildly wrong, try CDAB first. Many meters report scaled integers (2305 meaning 230.5): use a 16-bit format with Scale 0.1.

Device Presets

A preset fills in names, addresses, data types, scale and units for a known device. Custom Points are added after the preset points.

Waveshare 8CH Relay - 8 read/write coils. The board's network side must be set to Modbus TCP, or use RTU over TCP framing for its transparent mode.

Eastron SDM120 / SDM630 - energy meters (voltage, current, power, power factor, frequency, energy). These are RS-485 meters: connect through a gateway whose serial settings match the meter.

SolarEdge or Fronius (int+SF) Inverter - AC current, power, frequency, energy, DC power, heatsink temperature, with SunSpec scale factors and "not implemented" values handled. For a Fronius, its Modbus data model must be set to int+SF, not float.

Victron GX - battery state of charge, voltage, current and power, PV, consumption, grid power, input source and the two GX relays. Uses unit 100. Modbus TCP must be enabled on the GX (Settings > Services). The GX reports a missing value as 0, so a 0 can mean no data.

Templates: Thermostat / 16 Relays - starting points with example addresses; edit them to your device's manual.

Don't see your device? Email us its published register map.

Binding to pages

Read feedback - Point##_Value (the value), Point##_Text (the Value Map name, or the value), Point##_Name / Point##_Unit for labels, Point##_State (on when the value is non-zero).

Current - Point##_Current is Yes while the point's last read succeeded. When a read fails (no reply, an error, a not-available value, a lost connection), the value is blanked instead of showing an old reading as live, and it comes back with the next good read. PointsNotCurrent counts them; UnitsNotAnswering lists unit IDs that have stopped answering.

Writing - Set Point for any writable register or coil (a number, or a Value Map name), Set Coil and Toggle Coil for relays and bits. Toggle needs the present state, so it is refused while the point is not current.

Raw / Advanced - Write Holding Register (raw) and Write Coil (raw) write an address directly.

System - Reconnect, Poll Now, Refresh All. ConnectionState turns on when the device answers, not when the network connection opens, so a device that accepts the connection but never answers shows as disconnected. StatusText shows the link in words.

Events - Connected, Disconnected, Points Loaded, State Changed (a shown value changed; it fires once per read reply, and points at consecutive addresses are read together, so it does not fire once per point), Read Error (points became not current), Write Error (a write was refused, not answered or not delivered).

A write pressed while the connection is down is sent when it returns within 30 seconds; otherwise it is reported as a Write Error rather than sent late. A write the device does not answer is sent once more, then reported. LastError names the point and the reason, and keeps it until the problem clears (the next write that succeeds, the next good read of that point, or the device answering again).

Troubleshooting

Never shows Connected; StatusText says "TCP connected ... no Modbus reply" - the device or gateway accepts the network connection but does not answer. Check the Unit ID (try 1, 0 or 255 for a direct device), the Framing (a gateway in transparent mode needs RTU over TCP), and the gateway's serial settings.

LastError says a unit answered the wrong number of bytes - the device rejects that read's size: check the point's Data Model and Format against the manual.

Every value is shifted or wrong - switch the Addressing Base, then check the Format and word order.

One point is blank and LastError says it cannot be read - the device rejects that address. Check the address and Data Model against the manual.

Values drop out now and then - raise Gap Between Requests and the Response Timeout.

A value shows as 3276.7, 65535 or similar - that is likely the device's "no data" code: add it to Not Available Values.

Writes are rejected - set Write Function to Multiple; check Write Address if the device takes commands at another address.

Connection refused or keeps dropping - many devices allow a single Modbus client. Make sure no other system is connected to the same device, and try Reconnect Every Poll Cycle.

Limits

Each instance handles up to 64 points on one device or gateway. Add one instance per device or gateway. Some devices accept only one Modbus connection at a time, so check before pointing two instances at the same device.

On an XP-6, a large map whose values change constantly (around 64 points) uses about 5-7% of the processor at the default 2-second poll. Raising Poll Interval to 4000-5000 ms cuts that roughly in half.

License

Leave License Key blank for the 2-hour trial; paste your key to license this processor. One license covers every Modbus Universal instance on the same processor.

Support

support@customcontroldrivers.com - customcontroldrivers.com

120-minute free trial per RTI processor, with the driver fully functional, so you can confirm it works with your device before you buy. $199 one-time per processor, no subscription; one license covers every Modbus Universal instance on the processor. Purchase at customcontroldrivers.com/drivers/modbus-universal and paste the key into the License Key field in Driver Properties. The license is bound to the processor's MAC address.

Please log in to leave a comment.
Loading comments...