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.
02Requirements
What has to be in place on the gateway and on the Modbus side.
| Item | Requirement |
|---|---|
| Atrium platform | 2.0.0 or newer. The AI assistant reads (see Integration) need 2.6.0. |
| Gateway | Atrium EG5100 or EG5120. |
| Sensors | Any NCD wireless sensor whitelisted on the gateway. Every whitelisted sensor can be put on the Modbus map. |
| Modbus TCP client | A 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 master | A 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. |
| License | The 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
Open the Apps pageLog in to the Atrium dashboard and click Apps in the top navigation.
-
2
Upload the packageUse 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
Wait for the gateway to reloadInstalling 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
Open the appModbus Server App appears as a card on the Apps page. Click it to open the app on its Connection screen.
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
Open SettingsClick Settings in the app’s sidebar.
-
2
Switch the Modbus server onTurn on the switch in the Modbus server box at the top.
-
3
Choose the interfaceModbus 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
SaveClick 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.
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.
3a. Connect over Modbus TCP
The Modbus TCP card on the Overview lists what to enter in your client.
| Client setting | Value |
|---|---|
| IP address / host | The gateway’s IP address on that network, or its name (for example ncd-7f53.local), as listed under Connect to. |
| Port | The 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 type | Holding registers (function 03) or input registers (function 04): both hold the same data. |
| Addressing | The 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 setting | Default |
|---|---|
| Baud rate | 19200 |
| Data bits, parity, stop bits | 8, even, 1 (shown as 19200 8E1) |
| Slave address | 1 |
| Response timeout | Not 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:
| Address | Expected |
|---|---|
| 0 | 1 (register map version) |
| 1 | 100 (registers per sensor) |
| 3 | The number of sensors on the map |
| 5 | A counter that goes up by one every second |
| 16–17 | 1.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.
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 COM2 | Connect to the master’s |
|---|---|
| A (data +) | A / D+ / TX+ |
| B (data −) | B / D− / TX− |
| GND | Signal 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.
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.
| Card | Shows |
|---|---|
| Modbus TCP | Listening, 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 RTU | Port 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.
| Column | Shows |
|---|---|
| Slot | The sensor’s 100-register block. A dash means it is not on the map. |
| Sensor | Its name in Atrium and its MAC address. |
| Type | The NCD sensor type and model. Sensors that can also send raw waveforms are marked Overall values only · waveform not on Modbus (see below). |
| Status | Online or Offline. |
| Last report | When the sensor last reported. |
| Registers | Its address range, for example 200–299. Hover for the holding and input references. |
| Values | How many measurements are in its block. |
| Button | Does |
|---|---|
| Registers | Opens the sensor’s register map in a window (see below). |
| Move | Turns 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. |
| Remove | Asks 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 map | Gives a sensor that is not on the map the lowest free slot. |
| Assign all | Gives every sensor not on the map the next free slots. |
| Gateway registers | Opens 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.
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.
| Column | Shows |
|---|---|
| Address | The 0-based protocol address (a range for two-register values). |
| Holding / Input | The 1-based references: 400001 + address and 300001 + address. |
| Name | The field or measurement name. Measurement names are the same as in Atrium’s own telemetry. writable marks the one register a client may write. |
| Type | uint16, int16, uint32 or float32, with the word order for 32-bit values. |
| Unit | The 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 now | What a client reads at that address right now, refreshed every 5 seconds. |
| Description | What the field means. |
Close it with Close, Esc, or a click outside the window.
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
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.
| Setting | Default | Notes |
|---|---|---|
| Port | 502 | 1 to 65535. Ports the gateway uses itself (22, 80, 443, 3001, 3002) are refused. |
| Fallback port | 5020 | Used automatically when the gateway won’t let the app open a port below 1024. 1024 or higher. |
| Listen on | All interfaces | Or one of the gateway’s IP addresses. Pick the plant-network address to keep Modbus off other networks, such as cellular. |
| Unit ID | 1 | 1 to 247. Not used with a unit ID per sensor. |
| Answer unit IDs | This unit ID, 0 and 255 | Or Any unit ID. A request to another unit ID gets exception 0A. |
| Maximum connections | 8 | 1 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) | 120 | Closes a connection that sends nothing for this long. 0 = never, otherwise at least 10. |
| Allowed clients | empty (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.
| Setting | Default | Notes |
|---|---|---|
| Slave address | 1 | 1 to 247, unique on the bus. Not used with a unit ID per sensor. |
| Baud rate | 19200 | 1200, 2400, 4800, 9600, 19200, 38400, 57600 or 115200. |
| Parity | Even | Even, odd or none. Data bits are always 8. |
| Stop bits | 1 | 1 or 2. The Modbus standard asks for 2 when parity is none, but match what your master uses. |
| Response delay (ms) | 0 | 0 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.
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
Disable Modbus RTU in the appIn 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
Open the gateway’s Robustel interfaceGo to Interface > Serial Port and edit COM2 (index 2). Do not change COM1: it is reserved for the gateway’s sensor radio.
-
3
Set COM2 the way you need itFor 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
| Setting | Default | Notes |
|---|---|---|
| Addressing | Single unit | Single 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 order | ABCD | ABCD (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 slots | 100 | How 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) | 3 | 2 to 20. A sensor is offline once this many of its report intervals pass without a report. |
| Offline sensors’ values | Hold the last values | Or Read NaN. Either way the sensor’s status shows it offline. |
| Auto-assign | on | Gives 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.
| Counter | Means |
|---|---|
| Modbus TCP | |
| Requests, Exceptions, Writes | Requests answered, how many of them got an exception, and accepted new-data acknowledgements. |
| Connections, Refused, Closed at limit | Clients that connected, were turned away by Allowed clients, or were closed to make room for a new one. |
| Protocol errors | Messages that were not valid Modbus TCP. |
| Modbus RTU | |
| Requests, Exceptions | Requests addressed to the gateway, and those answered with an exception. |
| Bus frames | Every valid message on the bus, for any slave. |
| CRC / noise | Data that was not a valid message: usually a wrong baud rate or parity, or A and B swapped. |
| Broadcasts | Messages to address 0. The gateway carries out broadcast writes and never answers them. |
| Echoes dropped, Overruns | The 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.
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 block | Unit 1, registers 0–99 | TCP unit 0 or 255, registers 0–99 (not reachable over RTU) |
| Sensor in slot N | Unit 1, registers N×100 to N×100+99 | Unit N, registers 0–99 |
| RTU slave address | The Slave address setting | Each sensor answers on its slot number, so it takes one address on the bus per sensor |
| Use it when | One device in the PLC reads all sensors | Your 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
| Address | Type | Field |
|---|---|---|
| 0 | uint16 | Register map version (1) |
| 1 | uint16 | Registers per sensor block (100) |
| 2 | uint16 | Highest slot served |
| 3 | uint16 | Sensors on the map |
| 4 | uint16 | Sensors on the map that are online |
| 5 | uint16 | Heartbeat: goes up by one every second while the server runs |
| 6–7 | uint32 | Gateway clock, Unix seconds (UTC) |
| 8–9 | uint32 | Seconds since the server started |
| 10 | uint16 | Word order in use: 0 ABCD, 1 CDAB, 2 BADC, 3 DCBA |
| 11 | uint16 | Bits: 0 new-data flag on, 1 Modbus TCP on, 2 Modbus RTU on, 3 offline values read NaN |
| 12–14 | uint16 | App version (major, minor, patch) |
| 16–17 | float32 | Test value: always 1.0 |
| 18–19 | uint32 | Test value: always 305419896 (hex 12345678) |
Sensor block
Offsets from the start of the sensor’s block.
| Offset | Type | Field |
|---|---|---|
| 0 | uint16 | Status bits: 0 assigned, 1 online, 2 has data, 3 stale (offline; values are the last received), 4 new data, 5 more than 40 values |
| 1 | uint16 | NCD sensor type |
| 2–5 | 4 × uint16 | Radio MAC address |
| 6–7 | uint32 | Time of the last report, Unix seconds (UTC) |
| 8 | uint16 | Seconds since the last report (65535 = never, or longer) |
| 9 | uint16 | Sequence: goes up by one on every report |
| 10 | uint16 | New-data flag (writable when the new-data flag is enabled) |
| 11 | uint16 | Battery, % |
| 12 | int16 | Signal strength, as the radio reports it |
| 13 | uint16 | Battery, millivolts |
| 14 | uint16 | The sensor’s own transmission counter |
| 15 | uint16 | Gateway heartbeat (as in the gateway block) |
| 16 | uint16 | How many measurements are in this block |
| 17 | uint16 | Sensor firmware version |
| 20–99 | float32 | Up 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 unit | Unit ID per sensor | |
|---|---|---|
| Discrete input (function 02) | Input N = slot N online | Input 0 of unit N |
| Coil (functions 01, 05, 15) | Coil N = slot N new-data flag; write OFF to clear it | Coil 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
| Function | Code | Notes |
|---|---|---|
| Read coils | 01 | Up to 2000 |
| Read discrete inputs | 02 | Up to 2000 |
| Read holding registers | 03 | Up to 125 |
| Read input registers | 04 | Up to 125 |
| Write single coil / register | 05 / 06 | Only the new-data flag, only when enabled, only to clear it |
| Write multiple coils / registers | 15 / 16 | As above |
| Diagnostics | 08 | RTU only: echo, clear counters, and the standard bus counters |
| Read device identification | 43 / 14 | Vendor NCD, product code ATRIUM-MODBUS, version, product name, gateway model and name |
| Exception | Sent when |
|---|---|
| 01 Illegal function | An unsupported function, or a write while the new-data flag is disabled (the server is read-only). |
| 02 Illegal data address | The request runs past the end of the map, or writes a read-only register. |
| 03 Illegal data value | Too many registers or coils requested, a malformed request, or a write of anything other than 0 / OFF. |
| 0A Gateway path unavailable | Modbus 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.
| Read | Returns |
|---|---|
| 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:
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
| Symptom | Cause | Fix |
|---|---|---|
| The client can’t connect on port 502 | The 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 nothing | The 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 once | Its address is not in Allowed clients. | Add it. Diagnostics counts it under Refused. |
| A client is disconnected when another connects | The connection limit was reached. | Raise Maximum connections, or have clients reuse one connection. |
| Port N is already in use on the gateway | Another program, possibly RobustOS’s own Modbus gateway, holds that port. | Choose another port, or turn the other service off. |
| Exception 0A | The 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
| Symptom | Cause | Fix |
|---|---|---|
| No answer; Diagnostics shows nothing on RTU | No 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 up | The 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 Requests | The 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 out | The 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 RTU | COM2’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 gateway | The 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 radio | COM1 was chosen; it carries the sensor radio. | Use COM2. |
Values
| Symptom | Cause | Fix |
|---|---|---|
| Floats read as huge or tiny numbers | The 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 register | The 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 NaN | The 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 change | The 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 0 | The 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 missing | Waveforms are not served over Modbus. | Use the overall values on Modbus, and view waveforms in Atrium. |
| Exception 01 on a write | The 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
| Item | Value |
|---|---|
| Sensor slots | 650 (247 with a unit ID per sensor) |
| Measurements per sensor | 40; more are listed as not mapped |
| Registers per read | 125 (a whole sensor block is 100) |
| Modbus TCP connections | 32 on an EG5120, 8 on an EG5100 |
| Recent requests / connection events kept | 100 / 50 |
| Page refresh | 5 seconds |
| Applying COM2 settings | About 10 seconds |