Rubix iO-16: Modbus Passthrough Setup Example

Rubix iO-16: Modbus Passthrough Setup Example

Preparation


Introduction

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

Software setup - Rubix Platform

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 SwitchPositionFunction
1DownModbus Addressing
2DownModbus Addressing
3DownModbus Addressing
4DownModbus Addressing
5DownModbus Addressing
6DownModbus Addressing
7DownModbus Addressing
8UpAlways Up

Right Bank SwitchPositionFunction
1DownComm Mode
2UpComm Mode (passthrough)
3UpBaud Rate (9600)
4DownBaud Rate
5DownBaud Rate
6UpEven
7DownParity
8UpAlways Up

Software setup - Rubix Platform

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 

    • Related Articles

    • Rubix iO: Modbus RS485 Wiring

      Nube-iO Rubix IO Modules are a pure Modbus device; All communications with the IO Modules are via Modbus.  This article will detail the correct wiring for the Modbus RS485 Network.  To communicate via Modbus the Rubix IO Module must also have its ...
    • Rubix iO: Configuring Modbus Communications Parameters

      In order to communicate via Modbus the IO Modules must be configured correctly.   The Modbus ID/Address, Baud Rate, and Parity must be configured correctly to communicate over the Modbus RS485 Network.  Preparation Rubix IO: Modbus RS485 Wiring ...
    • Rubix iO: Installation and User Manual

      Please download the document attached below.
    • Rubix iO: Datasheet

      Please download the document attached below.
    • Rubix Platform: Mapping Modbus & LoRa points to BACnet Points

      This article describes the process of automatically mapping either LoRa or Modbus points to BACnet points. A LoRa THL droplet and an Rubix iO-16 (UI1 and DO1 added only) has been used as an example of a LoRa and Modbus device respectively.  ...