Configuring Modbus TCP

Configuring Modbus TCP

Zoho IoT applications allow you to remotely send the Modbus registry mapping of the slave devices, to the gateway.

Prerequisite: 

  • The gateway device or computer device must be running Edge Lite.
  • The device added for the gateway/computer in the Zoho IoT application must have Edge Agent as the device application.
  • A device based on the device product of the connected sensor, with the required Modbus registry mapping, must be added to the application.
  • The gateway or computer must communicate with the connected peripheral using the Modbus TCP protocol.
  • The gateway or computer must be live and connected to the application over the internet.

Steps to send Modbus Configuration from the application

NotesNote: If the gateway running the Zoho IoT agent is not connected to the application, deployment will fail and configurations will not be saved.
For this illustration, we will consider a TRB245 as the gateway (master) device and a CONZERV6400 as the connected peripheral (slave) device.
  1. Access the End Application.



  2. Go to Devices > Devices in the left navigation pane.



  3. Click on the Gateway device to which the configuration must be sent. For this illustration, a device named My TRB245 is selected.



  4. In the selected device's information page, go to Actions > Scroll Down > Edge Agent Configuration.




    NotesNote: The Edge Agent Configuration option will be available only if you selected Edge Agent as the device application when adding the device.

  5. Click Configure.



  6. Click Next.



  7. Click Map Peripheral.


  1. In the Peripheral Addition form, select Ethernet as the connectivity between the gateway and the peripheral device.



  2. Select Modbus TCP as the communication Protocol.



  3. Click Next.



  4. Select the device product representing the connected peripheral. For this illustration, CONZERV6400 is selected so the connected peripheral will have the corresponding modbus registry mapping.



    Notes
    Note: The required device product will be available only after you imported or added a device product while creating the device instance for the sensor.
  5. Provide the details of the connected peripheral.
    Here is an example:
    Name : Energy Meter 1
    Slave Id : 1
    IP Address : 192.168.1.43
    Port : 8008
    Edge Key : em_001
    Timeout : 500
    Notes
    Learn more about each filed.
  6. Click Add. 
  7. 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.

  8. Click Deploy to send the configuration to the connected gateway.

Mapping a new peripheral after deployment

Once a configuration has been deployed, the Edge Agent configuration form will display the success or failure status of the deployment. To map a new peripheral, click Actions > Update Edge configuration settings and repeat the steps above to deploy it.