Atrium IIoT Gateway › Modbus Server
Atrium App

Modbus Server User Guide

Modbus Server lets a PLC, SCADA system or HMI read every NCD wireless sensor on the gateway as ordinary Modbus registers, over Ethernet (Modbus TCP), over the gateway’s RS-485 port (Modbus RTU), or both. Each sensor gets a fixed block of registers with its measurements as decoded engineering values, its status and when it last reported.

Audience
Gateway operators and controls engineers
Requires
Atrium 2.0.0 or newer
License
Not required

01Overview

Modbus Server turns the gateway into a Modbus server, so equipment that already speaks Modbus can use NCD wireless sensors without any custom software.

Most PLCs, SCADA systems, HMIs and data loggers can read Modbus, and many of them can read nothing else. Without this app, getting sensor data into them meant building a Node-RED flow and decoding each sensor’s raw bytes in the PLC. Modbus Server does that work on the gateway: as each sensor reports, its values are written into registers as floating-point numbers in their engineering units, ready to use.

The server only answers requests; it never sends anything on its own. Your PLC or SCADA system is the Modbus client (master) and polls the gateway as often as it likes. The values change when the sensors report, typically every few minutes.

Modbus TCP and RTU
Serve the same registers over Ethernet, over the gateway’s RS-485 port (COM2), or both at once. The app sets up COM2 for you.
One block per sensor
Every sensor has a fixed 100-register block, read in one request. A sensor keeps its block, so your PLC’s addresses never move.
Ready-to-use values
Measurements as 32-bit floats, plus status, battery, signal, last report time and a sequence number that changes on every report.
Live register map
See exactly what a client reads at every address, with live values, and export the whole map as a CSV file for your integrator.
Modbus Server Overview
Modbus Server Overview

02Requirements

What has to be in place on the gateway and on the Modbus side.

ItemRequirement
Atrium platform2.0.0 or newer. The AI assistant reads (see Integration) need 2.6.0.
GatewayAtrium EG5100 or EG5120.
SensorsAny NCD wireless sensor whitelisted on the gateway. Every whitelisted sensor can be put on the Modbus map.
Modbus TCP clientA PLC, SCADA system, HMI or software that can act as a Modbus TCP client and reach the gateway’s network. It must read holding registers (function 03) or input registers (function 04).
Modbus RTU masterA device that can act as a Modbus RTU master on RS-485, wired to the gateway’s COM2 terminals. COM1 is reserved for the gateway’s sensor radio.
LicenseThe app is free and needs no license.

03Installing

Install the app from App Center or a package file (.tar.gz) on the gateway’s Apps page.

  1. 1
    Open the Apps page
    Log in to the Atrium dashboard and click Apps in the top navigation.
  2. 2
    Upload the package
    Use the Install App Button on the Apps page to select the Modbus Server App package file (for example modbus-server-app-0.1.0.tar.gz). Modbus Server App is listed in the App Center, you can install it from there instead. click Browse App Center and Select Modbus Server App.
  3. 3
    Wait for the gateway to reload
    Installing an app restarts the gateway’s services. This takes a few seconds; the page reconnects on its own. Sensor data and settings are kept.
  4. 4
    Open the app
    Modbus Server App appears as a card on the Apps page. Click it to open the app on its Connection screen.
Modbus Server Installation
Modbus Server App Installation > Browse App Center
Modbus Server Installation 2
Modbus Server App Installation > Browse App Center > App

Installing a newer package the same way upgrades the app. Users, trusted client certificates, the server certificate and settings are kept, so clients reconnect without being trusted again. Uninstall on the card closes the Modbus TCP port; the app’s data stays on the gateway and is picked up again if you reinstall.

04First-Time Setup

The shortest path from a fresh install to your PLC or SCADA reading sensor values.

1. Turn the server on

  1. 1
    Open Settings
    Click Settings in the app’s sidebar.
  2. 2
    Switch the Modbus server on
    Turn on the switch in the Modbus server box at the top.
  3. 3
    Choose the interface
    Modbus TCP is enabled by default. Enable Modbus RTU too if your master is on RS-485, or disable Modbus TCP if you only use RS-485. Adjust the settings in each box if your client needs something other than the defaults (see Settings).
  4. 4
    Save
    Click Save at the top right. With Modbus RTU enabled, Save also sets up the gateway’s COM2 port, which takes about 10 seconds. The page shows Saved and applied.
Modbus Server Setting up
Modbus Server Setting up

2. Check the sensor slots

Open Sensors. Every whitelisted sensor is given a slot automatically, in the order the gateway first saw them. The slot decides where the sensor’s registers are: slot 1 starts at register 100, slot 2 at 200, and so on. Change a slot now, before you set up your PLC, if you want sensors in a particular order; see Sensor list and slots.

Modbus Server Setting up
Modbus Server Setting up

3a. Connect over Modbus TCP

The Modbus TCP card on the Overview lists what to enter in your client.

Client settingValue
IP address / hostThe gateway’s IP address on that network, or its name (for example ncd-7f53.local), as listed under Connect to.
PortThe Port shown on the card. The default is 502, the Modbus standard. If the gateway does not allow the app to use 502, the app uses 5020 instead and the Overview says so.
Unit ID (slave ID)1. The app also answers unit ID 0 and 255, which some clients send.
Register typeHolding registers (function 03) or input registers (function 04): both hold the same data.
AddressingThe addresses in this guide and in the app are 0-based protocol addresses. If your software uses 1-based references (400001 and up), add 400001 for holding registers or 300001 for input registers. The app shows both.

3b. Connect over Modbus RTU

Wire your RS-485 master to the gateway’s COM2 terminals (see Modbus RTU wiring), then set the master to match the Modbus RTU card on the Overview.

Master settingDefault
Baud rate19200
Data bits, parity, stop bits8, even, 1 (shown as 19200 8E1)
Slave address1
Response timeoutNot set by the app. 1 second is a safe value at 19200 baud.

On the Settings page, the Modbus RTU box should read COM2 ready: Save has set up COM2 for you.

4. Check the first read

Read 20 holding registers starting at address 0, the gateway block. You should see:

AddressExpected
01 (register map version)
1100 (registers per sensor)
3The number of sensors on the map
5A counter that goes up by one every second
16–171.0 when read as a 32-bit float

If 16–17 does not read 1.0, change your client’s word order (word swap) until it does; every measurement uses the same order. Then read a sensor’s block: open Sensors and click Registers on the sensor to see its addresses and the values your client should get.

05Connection Diagrams

How the gateway connects to Modbus equipment, over Ethernet and over RS-485.

Modbus TCP

The gateway and the Modbus client must be on networks that can reach each other: the same switch or subnet, or a route between them. Several clients can connect at the same time, up to the gateway’s connection limit.

NCD Modbus Server App Overview
Modbus TCP connection

Modbus RTU (RS-485)

Modbus RTU runs on the gateway’s COM2 port, as an RS-485 two-wire bus with a common (ground) connection. The gateway is a slave on the bus; your PLC or RTU master polls it. Other slaves can share the same bus as long as each has its own address.

Gateway COM2Connect to the master’s
A (data +)A / D+ / TX+
B (data −)B / D− / TX−
GNDSignal common / 0 V
  • Use twisted-pair cable for A and B.
  • On longer runs, fit a 120 Ω termination resistor across A and B at each end of the bus.
  • Manufacturers disagree on which line is A and which is B. If the master gets no answer and the app’s Diagnostics show CRC / noise counting up, swap A and B.
  • Do not use COM1: it carries the gateway’s sensor radio, and the app will not open it.
NCD OPC-UA Server App Overview
Modbus RTU wiring to COM2
NCD OPC-UA Server App Overview
The gateway on a shared RS-485 bus

06Overview

The app’s home screen: whether each interface is running and what a client needs to connect. It refreshes every 5 seconds.

The stats row shows Sensors on the map, how many of them are Online, sensors Not on the map, the Requests and Exceptions answered since the server started, and the Word order in use.

CardShows
Modbus TCPListening, Not listening or Off; the host names and addresses to connect to (each with Copy), the port, the unit ID, how many clients are connected out of the maximum, and the allowed clients.
Modbus RTUPort open, Opening… (in the first seconds after the gateway starts), Port closed or Off; the serial port (COM2), the line (baud, data bits, parity, stop bits), the slave address, requests served and bus errors.

Messages above the stats tell you when something needs attention:

  • The server is switched off.
  • Port 502 needs administrator privileges on this gateway, so the server is listening on 5020 instead. Point clients at the port it names.
  • A Modbus TCP or Modbus RTU error, such as a port already in use.
  • COM2 isn’t set up for Modbus RTU, with the reason. The app sets COM2 up again by itself within a few minutes; Retry in Settings does it at once.

The sidebar’s foot repeats the state of each interface (for example TCP on port 5020, RTU on ttymxc1) and the app version on every page.

07Sensors

Which sensors are on the Modbus map, where their registers are, and the register map itself.

Export for integrators

Download CSV saves the whole register map as a spreadsheet file: for every register of every sensor on the map, its unit ID, slot, sensor name and MAC, protocol address, holding and input references, size, type, unit and description. Hand it to whoever sets up the PLC or SCADA tags. If your browser blocks the download, the CSV text appears below the button with Copy CSV.

Sensor list and slots

Every whitelisted sensor on the gateway, those on the map first, in slot order.

ColumnShows
SlotThe sensor’s 100-register block. A dash means it is not on the map.
SensorIts name in Atrium and its MAC address.
TypeThe NCD sensor type and model. Sensors that can also send raw waveforms are marked Overall values only · waveform not on Modbus (see below).
StatusOnline or Offline.
Last reportWhen the sensor last reported.
RegistersIts address range, for example 200–299. Hover for the holding and input references.
ValuesHow many measurements are in its block.
ButtonDoes
RegistersOpens the sensor’s register map in a window (see below).
MoveTurns the slot into a box: enter another free slot and click Save slot. Your client must then read the new addresses; the old block reads empty.
RemoveAsks for confirmation, then takes the sensor off the map. Its block reads empty (status 0) and it is not given a slot again automatically.
Add to mapGives a sensor that is not on the map the lowest free slot.
Assign allGives every sensor not on the map the next free slots.
Gateway registersOpens the register map of the gateway block (addresses 0–99).

New whitelisted sensors get the lowest free slot automatically, unless that is turned off in Settings.

Modbus Server Sensors Overview
Modbus Server > Sensors

Registers window

Registers opens one block’s register map. The header gives the sensor, its type and MAC, the word order, and how a client addresses it: the TCP unit ID, the RTU slave address, and its new-data coil and online discrete input. A short How to read this map explains the columns.

ColumnShows
AddressThe 0-based protocol address (a range for two-register values).
Holding / InputThe 1-based references: 400001 + address and 300001 + address.
NameThe field or measurement name. Measurement names are the same as in Atrium’s own telemetry. writable marks the one register a client may write.
Typeuint16, int16, uint32 or float32, with the word order for 32-bit values.
UnitThe unit where the measurement name makes it certain (mm/s, g, Hz, %, …). Temperature has none here, because the gateway does not record which unit a sensor reports in.
Value nowWhat a client reads at that address right now, refreshed every 5 seconds.
DescriptionWhat the field means.

Close it with Close, Esc, or a click outside the window.

Modbus Server Sensors Registers
Modbus Server > Sensors > Registers

08Settings

Everything about the server, in boxes. Nothing changes until you click Save at the top right; Discard puts back the saved values. A successful save reads Saved and applied. and takes effect within a few seconds.

Modbus Server Settings
Modbus Server > Settings

Modbus server

The switch at the top turns the whole server on or off. It is off on a new install. Turning it off disables and locks Modbus TCP and Modbus RTU: nothing is served, and the two boxes’ switches cannot be turned on. Turning it back on brings back the interfaces that were enabled before, with the same settings. Switching off leaves COM2 as it is.

Modbus TCP

Enable or disable Modbus TCP with the switch in the box’s header.

SettingDefaultNotes
Port5021 to 65535. Ports the gateway uses itself (22, 80, 443, 3001, 3002) are refused.
Fallback port5020Used automatically when the gateway won’t let the app open a port below 1024. 1024 or higher.
Listen onAll interfacesOr one of the gateway’s IP addresses. Pick the plant-network address to keep Modbus off other networks, such as cellular.
Unit ID11 to 247. Not used with a unit ID per sensor.
Answer unit IDsThis unit ID, 0 and 255Or Any unit ID. A request to another unit ID gets exception 0A.
Maximum connections81 to 32 (at most 8 on an EG5100). When a new client connects and the limit is reached, the connection that has been quiet longest is closed, so a PLC that restarted can always reconnect.
Idle timeout (s)120Closes a connection that sends nothing for this long. 0 = never, otherwise at least 10.
Allowed clientsempty (any client)IPv4 addresses or ranges, comma-separated, for example 192.168.1.20, 10.0.5.0/24. Other clients are disconnected as soon as they connect.

Modbus RTU

Enable or disable Modbus RTU with the switch in the box’s header. The serial port is fixed to COM2 in RS-485 mode.

SettingDefaultNotes
Slave address11 to 247, unique on the bus. Not used with a unit ID per sensor.
Baud rate192001200, 2400, 4800, 9600, 19200, 38400, 57600 or 115200.
ParityEvenEven, odd or none. Data bits are always 8.
Stop bits11 or 2. The Modbus standard asks for 2 when parity is none, but match what your master uses.
Response delay (ms)00 to 1000. An extra wait before each answer, for masters or converters that are slow to switch from sending to listening.

COM2 setup

COM2 also has its own settings in RobustOS, the Robustel operating system underneath Atrium. You don’t need to touch them: when Modbus RTU is enabled, clicking Save sets COM2 up for the app (about 10 seconds when something changes):

  • Type: RS485.
  • Baud rate, data bits, stop bits, parity: the same as the app’s Modbus RTU settings.
  • RobustOS’s own serial service: off, so that only this app uses the port.

The line under the Modbus RTU settings shows the result: COM2 ready COM2 is set up for Modbus RTU (RS-485, 19200 8E1).

While Modbus RTU is on, the app also checks COM2 shortly after the gateway starts and then every 5 minutes. If someone changed it in the Robustel interface, or a reset put it back, the app sets it up again by itself. Only if that fails does the line show what is wrong, with a Retry button.

Modbus Server Settings RTU
Modbus Server > Settings > Modbus RTU

Using COM2 for something else

To use COM2 for another purpose, for example as an RS-232 port or with RobustOS’s own serial service, give it back to RobustOS:

  1. 1
    Disable Modbus RTU in the app
    In Settings, turn off the Modbus RTU switch and click Save. The app closes COM2 and stops checking it. It does not change COM2’s RobustOS settings back.
  2. 2
    Open the gateway’s Robustel interface
    Go to Interface > Serial Port and edit COM2 (index 2). Do not change COM1: it is reserved for the gateway’s sensor radio.
  3. 3
    Set COM2 the way you need it
    For example Type RS232, the baud rate, data bits, stop bits and parity of your device, and Enable on if you want RobustOS’s own serial service (Transparent, Modbus RTU gateway) to use the port. Save and apply the change.

Register map

SettingDefaultNotes
AddressingSingle unitSingle unit: one unit ID, slot N at register N × 100. Unit ID per sensor: the unit ID is the slot number and every sensor’s block starts at register 0. See Addressing.
32-bit word orderABCDABCD (high word first), CDAB (word swap), BADC (byte swap) or DCBA (little-endian). ABCD is the Modbus convention; some software, often Kepware and Schneider, expects CDAB.
Sensor slots100How many slots are served, 1 to 650 (at most 247 with a unit ID per sensor). Can’t be lowered below a slot in use.
Offline after (missed reports)32 to 20. A sensor is offline once this many of its report intervals pass without a report.
Offline sensors’ valuesHold the last valuesOr Read NaN. Either way the sensor’s status shows it offline.
Auto-assignonGives new whitelisted sensors the next free slot.

New-data flag

Two ways for a PLC to know a sensor has reported since it last looked:

  • Disabled (recommended, the default): compare the sensor’s sequence register (offset 9 in its block) with the value read last time; it goes up by one on every report. Nothing is written to the gateway, and any number of clients can do this.
  • Enabled: each report also sets a flag, coil N for slot N and register offset 10 in its block, which stays set until a client writes 0 to it. This is the only write the server then accepts. With several clients, one client clearing the flag hides it from the others.

09Diagnostics

What the server has received and answered, for commissioning and troubleshooting. Counters start at zero when the gateway’s services start; Clear counters and logs zeros them by hand.

CounterMeans
Modbus TCP
Requests, Exceptions, WritesRequests answered, how many of them got an exception, and accepted new-data acknowledgements.
Connections, Refused, Closed at limitClients that connected, were turned away by Allowed clients, or were closed to make room for a new one.
Protocol errorsMessages that were not valid Modbus TCP.
Modbus RTU
Requests, ExceptionsRequests addressed to the gateway, and those answered with an exception.
Bus framesEvery valid message on the bus, for any slave.
CRC / noiseData that was not a valid message: usually a wrong baud rate or parity, or A and B swapped.
BroadcastsMessages to address 0. The gateway carries out broadcast writes and never answers them.
Echoes dropped, OverrunsThe gateway’s own replies heard back from the line (harmless), and data that arrived faster than it was read.

Below the counters:

  • The requests per function code and per exception.
  • Connected TCP clients: address, when connected, last request, requests and exceptions.
  • Recent requests: the last 100 requests, newest first, with time, TCP or RTU, client, unit, function, address, quantity and the result (OK or the exception).
  • Connection events: the last 50 connects, disconnects, refusals and closes, with the reason.
Modbus Server Settings RTU
Modbus Server > Diagnostics

10Register Map

The layout every client reads. Addresses are 0-based protocol addresses; add 400001 (holding) or 300001 (input) for 1-based references. Holding and input registers hold the same data.

Addressing

The map is made of 100-register blocks. Block 0 is the gateway; each sensor on the map has the block of its slot. A whole block can be read in one request.

Single unit (default)Unit ID per sensor
Gateway blockUnit 1, registers 0–99TCP unit 0 or 255, registers 0–99 (not reachable over RTU)
Sensor in slot NUnit 1, registers N×100 to N×100+99Unit N, registers 0–99
RTU slave addressThe Slave address settingEach sensor answers on its slot number, so it takes one address on the bus per sensor
Use it whenOne device in the PLC reads all sensorsYour SCADA uses one device per sensor with a shared template

Registers between the values inside the map read 0, so reading across gaps is fine. Only a read past the end of the map gets an exception.

Gateway block

AddressTypeField
0uint16Register map version (1)
1uint16Registers per sensor block (100)
2uint16Highest slot served
3uint16Sensors on the map
4uint16Sensors on the map that are online
5uint16Heartbeat: goes up by one every second while the server runs
6–7uint32Gateway clock, Unix seconds (UTC)
8–9uint32Seconds since the server started
10uint16Word order in use: 0 ABCD, 1 CDAB, 2 BADC, 3 DCBA
11uint16Bits: 0 new-data flag on, 1 Modbus TCP on, 2 Modbus RTU on, 3 offline values read NaN
12–14uint16App version (major, minor, patch)
16–17float32Test value: always 1.0
18–19uint32Test value: always 305419896 (hex 12345678)

Sensor block

Offsets from the start of the sensor’s block.

OffsetTypeField
0uint16Status bits: 0 assigned, 1 online, 2 has data, 3 stale (offline; values are the last received), 4 new data, 5 more than 40 values
1uint16NCD sensor type
2–54 × uint16Radio MAC address
6–7uint32Time of the last report, Unix seconds (UTC)
8uint16Seconds since the last report (65535 = never, or longer)
9uint16Sequence: goes up by one on every report
10uint16New-data flag (writable when the new-data flag is enabled)
11uint16Battery, %
12int16Signal strength, as the radio reports it
13uint16Battery, millivolts
14uint16The sensor’s own transmission counter
15uint16Gateway heartbeat (as in the gateway block)
16uint16How many measurements are in this block
17uint16Sensor firmware version
20–99float32Up to 40 measurements, two registers each

Each sensor type has its own list of measurements, the same for every sensor of that type. The order is fixed the first time the app sees that type and never changes: a measurement the type starts reporting later is added at the end, and nothing already mapped moves. The Registers window and the CSV show the names and addresses for your sensors.

When the gateway starts, each block is filled from the sensor’s last report, so a sensor that reports hourly is not blank for an hour.

Coils and discrete inputs

Single unitUnit ID per sensor
Discrete input (function 02)Input N = slot N onlineInput 0 of unit N
Coil (functions 01, 05, 15)Coil N = slot N new-data flag; write OFF to clear itCoil 0 of unit N

Encoding and word order

  • Measurements are IEEE-754 32-bit floats in two registers. NaN means no value: the sensor has not reported that measurement, or it is offline with Read NaN set.
  • 32-bit values (floats and times) follow the 32-bit word order setting. Each register is always sent high byte first.
  • A value that is not known reads 65535 (uint16) or −32768 (int16).

Function codes and exceptions

FunctionCodeNotes
Read coils01Up to 2000
Read discrete inputs02Up to 2000
Read holding registers03Up to 125
Read input registers04Up to 125
Write single coil / register05 / 06Only the new-data flag, only when enabled, only to clear it
Write multiple coils / registers15 / 16As above
Diagnostics08RTU only: echo, clear counters, and the standard bus counters
Read device identification43 / 14Vendor NCD, product code ATRIUM-MODBUS, version, product name, gateway model and name
ExceptionSent when
01 Illegal functionAn unsupported function, or a write while the new-data flag is disabled (the server is read-only).
02 Illegal data addressThe request runs past the end of the map, or writes a read-only register.
03 Illegal data valueToo many registers or coils requested, a malformed request, or a write of anything other than 0 / OFF.
0A Gateway path unavailableModbus TCP only: a unit ID the server does not answer, or, with a unit ID per sensor, a unit with no sensor.

Over RTU, a request for another slave address or with a bad checksum gets no answer at all, as the standard requires.

11Integration

Modbus Server shares sensor data with Modbus clients. It reads sensor data, sensor names and gateway details from the gateway and changes none of them.

Events and actions

The app publishes no events and provides no actions, so it adds nothing to the gateway’s Automations page.

AI assistants and API tokens

An AI assistant connected to the gateway’s MCP server can read two views from the app, to answer questions such as why can’t my PLC connect? or which register holds the pump’s velocity? Neither can change anything.

ReadReturns
Modbus server connection settings (server_config)Whether Modbus TCP and RTU are on, the host names and port to connect to (with the fallback note if the port changed), unit ID rules, the serial line and slave address, word order, whether writes are accepted, allowed clients, and the clients connected at the server’s last snapshot.
Where each sensor’s values live in the Modbus register map (register_map)For each sensor on the map: MAC, name, slot, unit ID, block address and the address of every measurement, plus the block header layout. Sensors that also send waveforms are marked. Up to 50 sensors; pass a MAC for one.

The same reads are available to scripts with a gateway API token that has the apps:data scope:

HTTPReads
GET /api/apps/modbus/mcp/server
GET /api/apps/modbus/mcp/register-map?device_id=

12Troubleshooting

Start with the Overview’s messages and Diagnostics: Recent requests shows whether a request reached the gateway and what it was answered with.

Modbus TCP

SymptomCauseFix
The client can’t connect on port 502The gateway did not allow the app to use port 502, so it listens on the fallback port.Use the port shown on the Overview (5020 by default).
The client can’t connect at all, and Diagnostics shows nothingThe server or Modbus TCP is off, the client is on a network that can’t reach the gateway, or Listen on is set to another address.Check the Modbus TCP card says Listening, and connect to one of the addresses it lists.
The client connects and is dropped at onceIts address is not in Allowed clients.Add it. Diagnostics counts it under Refused.
A client is disconnected when another connectsThe connection limit was reached.Raise Maximum connections, or have clients reuse one connection.
Port N is already in use on the gatewayAnother program, possibly RobustOS’s own Modbus gateway, holds that port.Choose another port, or turn the other service off.
Exception 0AThe client uses a unit ID the server doesn’t answer.Set the client’s unit ID to the app’s, or set Answer unit IDs to Any unit ID. With a unit ID per sensor, use the sensor’s slot number.

Modbus RTU

SymptomCauseFix
No answer; Diagnostics shows nothing on RTUNo data is reaching COM2: wiring, the wrong port, or Modbus RTU is off.Check the wiring is on COM2, and the Modbus RTU card says Port open.
No answer; CRC / noise counts upThe baud rate or parity differ from the master’s, or A and B are swapped.Match the line settings, then swap A and B.
No answer; Bus frames count up but not RequestsThe master polls another slave address.Set the master to the app’s slave address (or the slot number with a unit ID per sensor).
Some requests time outThe master moves on too quickly, or COM2 was changed in the Robustel interface a few minutes ago.Raise the master’s response timeout, or set a Response delay. A changed COM2 is set up again automatically within 5 minutes; Retry in Settings does it at once.
COM2 isn’t set up for Modbus RTUCOM2’s RobustOS settings no longer suit the app, and setting it up again hasn’t happened yet or failed.Click Retry under the Modbus RTU settings.
Couldn’t read COM2 / COM2 can only be configured on an EG5100 / EG5120 gatewayThe app could not read COM2’s RobustOS settings.Set COM2 by hand in the Robustel interface (Interface > Serial Port > COM2): Type RS485, Enable off, and the app’s line settings. Contact NCD support if it persists.
carries the gateway’s sensor radioCOM1 was chosen; it carries the sensor radio.Use COM2.

Values

SymptomCauseFix
Floats read as huge or tiny numbersThe client’s word order differs from the app’s.Change the client’s word order until gateway registers 16–17 read 1.0, or change 32-bit word order in the app.
Every value is off by one registerThe client counts addresses from 1.Use the Holding or Input reference column, or turn on the client’s zero-based addressing option.
A value reads NaNThe sensor has not reported that measurement, or it is offline and Offline sensors’ values is Read NaN.Check the sensor’s status bits and age.
Values don’t changeThe sensor reports every few minutes; values only change when it reports.Check its sequence and age registers. If the gateway heartbeat (register 5) is not changing either, the server has stopped: check the Overview.
A sensor’s block reads all 0The sensor is not on the map, or was moved to another slot.Check its slot on Sensors.
A vibration or current sensor’s waveform is missingWaveforms are not served over Modbus.Use the overall values on Modbus, and view waveforms in Atrium.
Exception 01 on a writeThe server is read-only while the new-data flag is disabled.Enable the new-data flag if your PLC needs to clear it.

13Reference

How the app decides what it serves, and its limits.

How values are served

  • Requests are answered from values kept in memory, so an answer never waits on a sensor. A block is updated all at once when its sensor reports, so a client never reads half of an update.
  • A sensor is online while its last report is within Offline after report intervals (at least one minute each), using the sensor’s report interval from Atrium.
  • Raw waveform reports are ignored; only the overall values are mapped.
  • Changes made in Settings reach the server within a few seconds, without restarting the gateway. Changing the port or the line closes and reopens that interface.
  • After the gateway starts, the app waits about 10 seconds before opening COM2, so the sensor radio is always set up first.

Limits

ItemValue
Sensor slots650 (247 with a unit ID per sensor)
Measurements per sensor40; more are listed as not mapped
Registers per read125 (a whole sensor block is 100)
Modbus TCP connections32 on an EG5120, 8 on an EG5100
Recent requests / connection events kept100 / 50
Page refresh5 seconds
Applying COM2 settingsAbout 10 seconds