This app is designed for IXON SecureEdge Pro, cellular/GPS version (models IX6005, IX6015)
It shows how GPS coordinates can be retrieved using router APIs and then exposed with modbus protocol.
Data can then be read locally (from PLC or PC) or sent remotely to IXON Cloud or custom MQTT brokers for displaying.
Since modbus protocol does not natively support floating point data, the coordinates are converted in two formats
- intger, with a 100 factor for better precision
- 32bit floating point using 2 consecutive registers
- Install a Node-RED app on you IXON SecureEdge Pro device or add a flow to an existing one - [installation guide]
- Make sure the node-red-contrib-modbus package is installed
- Open the web interface
- Import the flow.json file or paste its content
The modbus server is listening on standard port 502.
| Register | Type | Value |
|---|---|---|
| 0 | integer | latitude * 100 |
| 1 | integer | longitude * 100 |
| 2-3 | float32 | latitude |
| 4-5 | float32 | longitude |
