Breadcrumbs

Modbus for Wireless Gateway

NOTE: Modbus register maps are pre-loaded on Gateways with firmware versions 1.12.0 or higher.  These register maps have static / pre-assigned register numbers. It is suggested that any Gateway (GW04) be upgraded to firmware version 1.12.0 or higher rather than importing register maps.

Legacy register maps may be download from the below links:

EG4 Modbus Overview

The Wireless Gateway Modbus interface makes all monitoring data received from Packet Power's wireless monitoring network accessible via standard Modbus TCP/IP protocol via the Ethernet port of the Gateway.  The Gateway is capable of providing a Modbus data output and simultaneously serving data to EMX portal. This allows users to take advantage of the EMX portals features while also serving data to the third party monitoring system.  

The Wireless Gateway appears as a standard Modbus device listening on port 502 at the IP address of the Gateway. Individual monitoring nodes have distinct Modbus slave IDs. If more than 254 nodes are present, multiple nodes may report at the same slave ID under different register ranges (see Register Mapping section below). The Modbus protocol requires a single Master connection for all connected nodes.

https://atlassian-lucidchart-com.s3.amazonaws.com/Confluence%3A3867726665/04da191f-82cf-429b-ac15-577df5300d13/page-0.png?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMX%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIEZfTM7Zv32wvPExQ31lbsgqJOV3KKVdNjamrir87y37AiA6r3KhcTEdu8VShCMlsG4iJ7Xj8csGk0hjOJuG6rQvNCr%2BAwiO%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDkzNTYwNjkyNjE4MiIMaL4NdrBmaTN1et5oKtIDjhnZoMKP5QalkAOmOyo7SlYIOzPOEtCa9blcweXHKBh5ocSmkunrnoRzhf0JSOxhFdRcM3ATguQhx%2F2224qY0svdtu2zPZ32C9Xbrh5J2w4WFQ1tpTHpEcbNW5lPhtOWfUSw8kdZjiawtX6wnp6pdfM%2FC3jP0g%2B%2BQq4dSsdhmNVNCg%2FZYCeNyEweKQaVututwfgLnhXitEFy0%2F3pDUHKiQM6azm622BqARvwhvLRouKGxtFwv4HdSU55s7HG%2BCNJF8tO28Pj3YD9tLQeENVlc6DsZCy5MIymBAWsaPvNxRLpwlafV9PjLg0xz2mBYg%2BS8cjU5j5LK3s9gxYG3gh2CS%2BuPlBhxVZ%2Fgtblgy7%2FQqC5j0Dg4y4BOvtYW6SQvH5aFoEJ%2FnI9jZSLmN%2Bg%2BGuyFuU2eIa4qPQJTLs6uExyddmWQkTgmrxsCmlJE4R1G86FTE9Y9A3PDexPsB2TBu2XYZ7adVyiYsBFuY%2BROaTemtYqMgk83O0o7L8Bp%2FJxGHJXeHZfkq4FUg6DYJ98TcYuziJPwr4kaTd3I0D9Fm3FXrI7npEvOPINIEKZxNBM4lX1AsDNtT3ktc6KYvKL4Y2xn7Z2et4BAp5BSWCIOeYZXif9%2BDCLkK3IBjqmAcmMY350aBtIIUgLCyj0l3bdFxCgQVWEM3ueRol%2BvCzZVWWvD0dvXKdgR1iptx5SdAjk792XTtNnsS46curMcEULAAXzMNNANd7PGA4P1wmXmywzXOGQOS2LjrmunkDsC0Ym3BQ9DrReCpGvJch1rUdVvMd5J89kpkfAJwuKvpBSUvA36HIColyFRtVY0GZ3UPT%2BzMQ%2FAxKkzubiFjZqNMG5SSMdwBU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251105T151046Z&X-Amz-SignedHeaders=host&X-Amz-Credential=ASIA5TVUEXNTI2AMQBY5%2F20251105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Expires=300&X-Amz-Signature=c986462b49e837c9aaa0aace38f3fbf1d72c2cd998693e1790cec273be0deec5

Peering Gateways and Using a Master Gateway

Packet Power Gateways can be deployed in a master / peer relationship. In this approach, the master gateway gathers data from all of its peers. This makes it easier for monitoring applications to access data as the monitoring application only needs to communicate with the master gateway. Note that all peered Gateways must have support for Modbus protocol conversion. Refer to the peering section of the Data Sources guide for instructions on peering Gateways.

Note that in a network consisting of a mix of EG2, EG3 and EG4 Gateways, an EG4 must be designated as the master.  

https://atlassian-lucidchart-com.s3.amazonaws.com/Confluence%3A3867726665/0f8dd0b5-aaec-490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BtqsQ%2BLZsWWN9p50Eg9W4A2c7QoqiISTs8kKMRb1APP2z3m6Axo%2F7fV6au8vtL9RjvFNva9baBOzuNDekpmKtYVo3wXRupZ%2BE24GYm5WTlCN2OpN3xyuvkorkGNpZEOR2qrIYqY8%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251105T151046Z&X-Amz-SignedHeaders=host&X-Amz-Credential=ASIA5TVUEXNTMDVTJ42K%2F20251105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Expires=300&X-Amz-Signature=ad06929fe2d4e05c23dcbf96ffcba47bff7377eb647ffa26d2c2b498f05ec40d

Enabling Modbus Output

To enable Modbus output, access the Gateway Console:

  1. Make sure your Gateway is configured with an IP address and accessible on your network.

  2. The Gateway must be connected to a switch /router on an accessible network. It may not be accessible directly through a PC Ethernet to Gateway connection in all cases.

  3. Enter the IP address of the Gateway on any browser to access the Gateway Console.

For Gateway network configuration instructions follow this link.

https://atlassian-lucidchart-com.s3.amazonaws.com/Confluence%3A3867726665/8046d9e4-1126-49da-bd71-542234010e36/page-0.png?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEMX%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJGMEQCIEZfTM7Zv32wvPExQ31lbsgqJOV3KKVdNjamrir87y37AiA6r3KhcTEdu8VShCMlsG4iJ7Xj8csGk0hjOJuG6rQvNCr%2BAwiO%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDkzNTYwNjkyNjE4MiIMaL4NdrBmaTN1et5oKtIDjhnZoMKP5QalkAOmOyo7SlYIOzPOEtCa9blcweXHKBh5ocSmkunrnoRzhf0JSOxhFdRcM3ATguQhx%2F2224qY0svdtu2zPZ32C9Xbrh5J2w4WFQ1tpTHpEcbNW5lPhtOWfUSw8kdZjiawtX6wnp6pdfM%2FC3jP0g%2B%2BQq4dSsdhmNVNCg%2FZYCeNyEweKQaVututwfgLnhXitEFy0%2F3pDUHKiQM6azm622BqARvwhvLRouKGxtFwv4HdSU55s7HG%2BCNJF8tO28Pj3YD9tLQeENVlc6DsZCy5MIymBAWsaPvNxRLpwlafV9PjLg0xz2mBYg%2BS8cjU5j5LK3s9gxYG3gh2CS%2BuPlBhxVZ%2Fgtblgy7%2FQqC5j0Dg4y4BOvtYW6SQvH5aFoEJ%2FnI9jZSLmN%2Bg%2BGuyFuU2eIa4qPQJTLs6uExyddmWQkTgmrxsCmlJE4R1G86FTE9Y9A3PDexPsB2TBu2XYZ7adVyiYsBFuY%2BROaTemtYqMgk83O0o7L8Bp%2FJxGHJXeHZfkq4FUg6DYJ98TcYuziJPwr4kaTd3I0D9Fm3FXrI7npEvOPINIEKZxNBM4lX1AsDNtT3ktc6KYvKL4Y2xn7Z2et4BAp5BSWCIOeYZXif9%2BDCLkK3IBjqmAcmMY350aBtIIUgLCyj0l3bdFxCgQVWEM3ueRol%2BvCzZVWWvD0dvXKdgR1iptx5SdAjk792XTtNnsS46curMcEULAAXzMNNANd7PGA4P1wmXmywzXOGQOS2LjrmunkDsC0Ym3BQ9DrReCpGvJch1rUdVvMd5J89kpkfAJwuKvpBSUvA36HIColyFRtVY0GZ3UPT%2BzMQ%2FAxKkzubiFjZqNMG5SSMdwBU%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20251105T151046Z&X-Amz-SignedHeaders=host&X-Amz-Credential=ASIA5TVUEXNTI2AMQBY5%2F20251105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Expires=300&X-Amz-Signature=01d85b98a561a8abb8b646ca636fed9e0d1e0e5d2b4ae0075b4f276816185ce6


Once the Console appears, it will present a System status screen. Validate:

  • The system is communicating properly with the monitoring nodes as indicated by a green “System Ok” status light

Screenshot 2024-08-07 at 11.33.51 AM.png
  • Modbus is listed as a licensed feature. If not ,see the licensing section on how to add a license .

Screenshot 2024-08-08 at 11.28.51 AM.png

Enabling and Configuring the Modbus Driver

  • To enable the Modbus driver, navigate to Data DestinationsModbus.

  • Make sure that the “Enabled” check box is checked

  • Enter the port number to be used. This is typically port 502

Screenshot 2024-08-08 at 11.30.27 AM.png
  • Click “Save” to enable the selections.  

Once enabled, there will be a green light next to the Modbus tab.

Viewing and Verifying Monitoring Data using the Gateway Console

To view data for monitoring nodes associated with the Gateway and confirm operation of specific nodes select  the “Monitoring Data” tab on the Gateway Console.

Screenshot 2024-08-08 at 11.32.11 AM.png

This will display all connected nodes which are organized by type (power and environmental) in the sub-menu

To search for a specific node enter the GUID (16 digit node ID) in the nav bar search or “Node” column.

Screenshot 2024-08-08 at 11.33.13 AM.png

To access specific readings for each node click on the “readings” icon to expose the real time readings.

Screenshot 2024-08-08 at 10.07.28 AM.png

An explanation of the readings data can be found here.

Accessing Register Maps Maps

Depending on your Gateway, register maps may be pre-loaded on Gateways with firmware versions 1.12.0 or higher and will appear under the Modbus Register Maps table.

Screenshot 2024-08-08 at 11.35.42 AM.png

Your register maps can be imported if they are not pre-populated.

Importing and Exporting Register Maps

  • To import a register map, navigate to Data DestinationModbusRegister Maps.

  • Click on the import or export options under the actions drop down.


Screenshot 2024-08-08 at 11.36.09 AM.png


For imports, specify the register file to be imported; the map will appear in the “Modbus Register Maps” table.

This process can be used to export register maps for back-up and transfer to other Gateways.

⬇️

Viewing Register Maps

Once a register map is loaded or populated it can be accessed in “Register Maps” under Data DestinationsModbusRegister Maps.

Screenshot 2024-08-08 at 11.37.42 AM.png

Each register has a status column to indicate the validity of the register; if the register is reading properly it will have a green check mark.

Register maps are explained in detail in the Register Maps section which explains Register features including Addressing Options, Offsets, Expressions and Mapping.

Manually Assigning Registers and Register Maps

Individual registers and register maps can be added or removed as needed.

Creating Register Maps

To create a new register map:

  • Navigate to Data DestinationsModbusRegister Maps.

  • Select the add option under the Actions drop down.

Screenshot 2024-08-08 at 11.39.57 AM.png
  • provide a Map Name and Description for the register map

Screenshot 2024-08-08 at 11.39.51 AM.png
  • Click “Add” to save the selection.

Creating Registers

To access and add registers:

  • Select the “Register Maps” menu and highlight the specified register map

  • Click on the “pencil” icon under the Register Maps table; this will expose the registers.

Screenshot 2024-08-08 at 11.42.40 AM.png

Adding Registers to Register Maps

To add individual registers to a register map select Add option from the Actions drop down.

Screenshot 2024-08-08 at 11.38.48 AM.png

Enter the Register, Expression and Mapping.

Screenshot 2024-08-08 at 11.38.55 AM.png

For more details on these items see the Register Mapping section.

Modbus Device IDs

Node Maps serve to assign “device IDs” and register maps to specific monitoring nodes. Modbus is limited to 255 unique device IDs (0-254) per master.

To allow more than 255 devices to serve under one master i.e. Gateways, different nodes can share a device ID but utilize register offset mapping.

Register Offset Node mapping

The Packet Power system supports large numbers of devices reporting through a single gateway.  Up to 2000 nodes are supported in the Modbus Enterprise version.

Accessing and Verifying Modbus Readings Using the Gateway Console

To access and verify Modbus readings:

  • Select the “Readings” tab under Data DestinationsModbusRegister Maps Readings.

  • A table containing all Modbus readings will be displayed allowing for easy verification. 

Screenshot 2024-08-08 at 11.44.35 AM.png

Exporting Modbus Readings

Readings can also be exported by selecting the export options under the Actions Drop down in Monitoring DataAll Node Readings.. The files are exported in .CSV or JSON format and can be viewed in a standard spread sheet.

Screenshot 2024-08-08 at 11.47.18 AM.png


Note that readings should match the readings shown in the Monitoring Data tab.