Configuring Modbus RTU over TCP

Configuring Modbus RTU over TCP

With your gateway device running the Edge Lite, you can remotely push modbus based configurations to connected gateway devices to communicate with its device/sensor supporting Modbus RTU over TCP protocol directly from the Zoho IoT application.

This guide will walk you through configuring a sensor that supports Modbus RTU over TCP in the Zoho IoT application, allowing the Edge Agent to seamlessly communicate with it.
 
Prerequisite
  1. The gateway device must be running Edge Lite.
  2. The device registered in the Zoho IoT application must have Edge Agent as the Device Application.
  3. The gateway must be connected to the Zoho IoT application.
  4. The sensors and peripheral connected to the gateway must communicate using Modbus RTU over TCP protocol.
To configure Modbus RTU over TCP protocol,
  1. Access the End Application and navigate to the Device Information page of the required Gateway device.


  1. Select Actions > Edge Agent Configuration.



  2. Click Configure.



  3. If a configuration is already setup, click Actions > Update Edge Agent Configuration Settings.



  4. Set the polling timer and Gateway metrics as required, then click Next. For this illustration, a polling timer setting of 30 seconds is given.

    Polling timer: The interval at which the gateway requests data from connected device or sensor.



  5. Click Map Peripheral if this is your first configuration or click Add Peripheral if you already have other configurations.





  6. Select Ethernet as the connectivity and choose Modbus RTU Over TCP as the protocol, then click Next.



  7. Select the Device Product of the connected peripheral. For this illustration the CONZERV EM6400 is selected.


NotesNote: Only imported device products that support Modbus RTU/Modbus TCP and have at least one valid Modbus mapping configured will be available for selection.
  1. Provide the required details for the peripheral device.
    Example:
    Name            : EM001
    Slave ID        : 1
    IP Address    : 192.168.1.100
    Port               : 502
    Edge Key      : em_1001

    Notes
    Learn more about each field.



  2. Click Add.
  3. The configuration will be added. These configurations and the modbus registry mapping of the device product apply only to the slave device with Slave ID 1. If you have more than one slave device, click Add Peripheral and repeat the steps above and create separate configurations for each one accordingly.
  4. Click Deploy to send the configuration to the connected gateway.
The configuration will now be sent to the gateway device running the Zoho IoT application. The payload sent from the gateway to the application will include data from the connected peripheral device.