How to Use a Modbus TCP Gateway

Edge supports Modbus TCP for scenarios where installing a Modbus cable to energy meters isn't feasible but Ethernet is available. The recommended gateway is the Planet MG-110, which connects to Modbus RTU energy meters and interfaces with Edge via Modbus TCP.

Step 1: Install the MG-110

  1. Position the Planet MG-110 near the RTU energy meter
  2. Power using the included 12VDC adapter
  3. Connect via Ethernet on the same network as Edge
  4. Use the included DB9 terminal block adapter for meter connection
  5. Connect output 4 (d-) as Modbus A and output 3 (d+) as Modbus B with 120Ω termination resistor
MG-110 wiring diagram

Step 2: Configure the MG-110

  1. Ensure your computer shares the 192.168.0.0 subnet (MG-110 defaults to static IP 192.168.0.100)

  2. Access the configuration page by entering 192.168.0.100 in a browser

  3. Login with credentials: admin/admin

  4. Navigate to Modbus gateway > Serial > port 1 and configure:

    • Mode: RTU slave
    • Interface: rs485-2wire
    • Baud Rate: match your energy meter
  5. Optionally adjust Network parameters (DHCP/Static IP) in the Network tab

  6. For Planet MG-110 specifically, modify:

    • Modbus gateway > Modbus config > id mapping: Enable Auto Device Routing
    • Modbus gateway > Modbus config > Parameters: Enable TCP Exception
  7. Click Apply, then Save and Restart (approximately one minute)

MG-110 configuration interface

Step 3: Connect Edge to the Modbus Gateway

  1. Login to Edge via EdgeManager and add a new energy meter
  2. Open the meter's settings and set Protocol to "ModbusTcp"
  3. Enter the gateway's IP address in the URL field (e.g., 192.168.0.100, 192.168.1.200, or lwip.lan)
  4. Configure the model and address to match your energy meter
  5. Check logs and notifications for connection status
Edge ModbusTcp protocol settings

Related Articles