Modbus TCP dashboard for iPhone and iPad
Updated
Routix Dash is a Modbus TCP client and dashboard app for iPhone and iPad. It reads registers and coils from a PLC, energy meter, inverter or gateway, shows them on gauges and charts you design, and writes setpoints and coils with a tap. No PC, server or account is needed.
This guide builds a small control panel: a temperature on a gauge, a pump you can switch, and a setpoint you can change.
What you can do with Modbus
- Any Modbus TCP device. PLCs, energy meters, solar inverters, heat pumps, I/O modules, and Modbus TCP gateways with RS-485 devices behind them.
- Named points instead of raw registers. You list the values you want, such as
temperatureorpump. Each read gives one value with a field per point, for example{"temperature": 21.5, "pump": true}. - Real numbers, not register pairs. 16, 32 and 64-bit whole numbers, signed or unsigned, 32 and 64-bit floats, text, and single bits, with scale, offset and any word order.
- Write with a tap. A toggle switches a coil, a slider changes a holding register.
- Several devices. One connection per device or gateway; several devices behind one gateway each get their own Unit ID.
Before you begin
You need:
- the device's IP address and port (usually
502), on the same network as your iPhone or iPad; - the register list from the device manual: the table, address and data type of each value;
- the Unit ID. Most devices answer on
1. Behind a gateway it is the address of the device behind it.
The first time the app connects to a device on your network, iOS asks whether Routix Dash may find devices on your local network. Allow it.
This guide uses these example points. Replace them with the ones from your manual.
| Point | Table | Address | Data type |
|---|---|---|---|
temperature |
Input register | 0 |
Float32 |
setpoint |
Holding register | 10 |
UInt16 |
pump |
Coil | 0 |
Bool |
1. Connect to the device
Open the menu → Modbus connections → Add Modbus connection. Enter a Name (Boiler PLC), the Host (for example 192.168.1.50), the Port and the Unit ID.
Tap Test. The app reads holding register 0. A value, or an answer that says the device has no such register, both mean the link works. Then tap the save tick.
If your manual numbers registers as 30001 or 40001, set Address base under Advanced to 1-based (as in the device manual). Then type the number without the first digit: 40011 becomes 11.
2. Read the points
Open the menu → Data sources → Add data source:
- Set Name to
Boiler. - Set Data source type to Modbus TCP and pick
Boiler PLCas the Modbus connection. - Under Points, tap Add point for each row of the table above: Name, Table, Address and Data type.
- If a register holds tenths (235 means 23.5), set the point's Scale to
0.1.
Tap Read now. The app reads every point once and shows each value with its raw registers. When the numbers look right, tap the save tick. The points are read every second; change Poll interval (ms) for a slower device.
3. Show the temperature on a gauge
On a data section, tap Add card manually and pick Design your own card. Set Boiler as the root data source.
Add a Dial gauge and set its Default value to {{ value?.temperature }}. Set Warning from and Alarm from to the levels that matter to you: the gauge changes color when the temperature gets there.
To see the trend, add a Chart with the same Default value: every read adds a point.
4. Switch the pump
Add a Toggle to the card and set its Default value to {{ value?.pump ? 1 : 0 }}. It now shows whether the coil is on.
Under Events → On tap, a new Toggle already has Apply value, which flips 1 and 0. Tap Add... below it → Data actions → Modbus send:
- Modbus connection —
Boiler PLC - Points — one point: Name
pump, Table Coil, Address0, Data type Bool - Value — leave it empty, so the toggle writes
1or0
Save. Tapping the toggle switches the coil, and the toggle follows the coil when it is switched at the device.
5. Change the setpoint
Add a Slider and set Minimum and Maximum to the range the device accepts. Set its Default value to {{ value?.setpoint }}.
Under Events → On changed, add Modbus send with one point: Name setpoint, Table Holding register, Address 10, Data type UInt16, and an empty Value. When you let go of the slider, the new number is written. A decimal is rounded for whole-number types, and a value the data type cannot hold is refused before anything is sent.
To write several points with one tap, for example from a Button, add each of them under Points in the same Modbus send and set Value to a JSON object with the point names as keys: {"setpoint": 22, "pump": true}.
If it does not work
Open Modbus connections → Boiler PLC and read the Connection log. The error of the last read also shows on the source row under Data sources.
- Absurd numbers such as
3.4e+38or1.2e-41, while 16-bit values look right: the word order is wrong. Change Word order under Advanced on the connection, or on that point only. CDAB is common on PLCs. - Values from the next register, or an error on the last one: the Address base is off by one.
Illegal data address (02): the device answered, but has no such register. The error names the table and the address range. Check the Table, Address and Data type of that point (a Float32 takes two registers), and the Unit ID.- No answer or a timeout: check Host, Port and Unit ID, that your phone is on the same network, and that Local Network is on for Routix Dash in the iOS Settings app.
Gateway target device failed to respond (0B)means the gateway answered but the device behind it did not. - The device allows one client only. Many PLCs do. Routix Dash uses one link per connection for every read and write, so keep one connection per device and close other Modbus tools.
- The connection shows disconnected between reads. Many devices close a quiet link after a few seconds. That is normal: the next read connects again.
Tips
- Status at a glance. Add an Alarm banner with a Simple expression transformer such as
value?.temperature > 80 ? "Too hot" : "". It shows only while the text is not empty. - Several devices behind one gateway. Use one connection for the gateway and one data source per device, each with its own Unit ID.
- Slow devices and serial gateways. Raise Timeout (ms), and set Min gap between requests (ms) to 20–100 for gateways that drop requests sent back to back.
- Away from home. Routix Dash connects straight from your device, so it reaches the PLC only on the same network or through a VPN. Do not open port 502 to the internet: Modbus has no password.
- Readings already on MQTT. If a gateway or Node-RED publishes your Modbus values to a broker, see MQTT dashboard for iPhone and iPad.
Read more
- Get started: Modbus TCP
- Data sources (incoming): points, data types, word order and errors
- Data destinations (outgoing): reusable writes
- Tap actions