Preparation
In this example, we will be setting up a Rubix IO16 as a modbus passthrough device, turning the meter into a wireless solution.
We've chosen to use an EM115 MOD single phase modbus meter for this example, but the same principle applies to any modbus passthrough situations.
Link to energy meter manual
here
Example 1:
Meter settings:
Baud Rate: 9600
Modbus Address: 1
Parity: None
Hardware setup - Rubix iO 16
The Modbus device's addressing is only required on the Rubix platform during modbus passthough mode. The Rubix iO-16's address can be disregarded, so the dip switches on the left bank can be set all down (but leave switch 8 up).
On the right bank of the Rubix iO-16, set the dip switch settings to match the meter's baud rate (9600) and parity (None).
Also, remember to set the communication mode to passthrough mode.
Left Bank Switch | Position | Function |
1 | Down | Modbus Addressing |
2 | Down | Modbus Addressing |
3 | Down | Modbus Addressing |
4 | Down | Modbus Addressing |
5 | Down | Modbus Addressing |
6 | Down | Modbus Addressing |
7 | Down | Modbus Addressing |
8 | Up | Always Up |
Right Bank Switch | Position | Function |
1 | Down | Comm Mode |
2 | Up | Comm Mode (passthrough) |
3 | Up | Baud Rate (9600) |
4 | Down | Baud Rate |
5 | Down | Baud Rate |
6 | Down | Parity |
7 | Down | Parity |
8 | Up | Always Up |
Creating a wireless Modbus Network
Use the settings below for create the Modbus network between the Rubix Compute and the Rubix iO16.
The Rubix Compute LoRa Raw Wireless communication uses baud rate 38400, parity none.
Network Name: (assign a network name)
Type: RTU
Delay between points (ms): 6000ms for IO modules in LoRa mode
timeout: 1
rtu parity: none
rtu speed: 38400
rtu stopbits: 1
rtu bytesize: 8
rtu port: /data/socat/serialBridge1
Tick enable
Add a Modbus Device
When adding the Modbus device, the modbus address on the Rubix Platform needs to match the address of the meter.
For example, if the meter's modbus address is 30, then under the 'edit device', the address needs to be set to 30.
Create a Modbus Point
We will add in the voltage and frequency modbus point following the modbus registers from the manual.
Both Modbus points can now be read after adding the points into the Modbus application.
Example 2:
Meter settings:
Baud Rate: 9600
Modbus Address: 30
Parity: Even
Hardware setup - Rubix iO 16
Left Bank Switch | Position | Function |
1 | Down | Modbus Addressing |
2 | Down | Modbus Addressing |
3 | Down | Modbus Addressing |
4 | Down | Modbus Addressing |
5 | Down | Modbus Addressing |
6 | Down | Modbus Addressing |
7 | Down | Modbus Addressing |
8 | Up | Always Up |
Right Bank Switch | Position | Function |
1 | Down | Comm Mode |
2 | Up | Comm Mode (passthrough) |
3 | Up | Baud Rate (9600) |
4 | Down | Baud Rate |
5 | Down | Baud Rate |
6 | Up | Even |
7 | Down | Parity |
8 | Up | Always Up |
Creating a Wireless Modbus Network
Add a Modbus Device (address 30)
Create a Modbus Point:
Add the modbus points as per the above example 1