Modbus RTU Slave (Serial) to RediGate Master

Introduction

In this tutorial, we will be demonstrating connectivity to an Automation Direct CLICK PLC (C0-02DR-D) using serial Modbus RTU communications. We will use a RediGate 110e to demonstrate this connectivity, but this tutorial can be applied to any RediGate device with serial Modbus connectivity. 


Pre-Requisites

  1. A RediGate 100 or 400 series device with a serial port
  2. Completion of the Getting Started Guide for your respective RediGate device (RediGate 100 or RediGate 400)
  3. A serial connection to a Modbus device

Instructions

  1. Using ACE, Open the default config you used in the "Getting Started Guide"
  2. Download and open Elecsys-Modbus-Demo.xml from the http://redigate.elecsyscorp.com site within the same ACE window

    1. You will need to extract the .xml file from the .zip file you downloaded from the website. By default, ACE stores configuration files in the Documents\Elecsys\ACE\CFG folder, but you can store the configuration in any file location accessible by the ACE program.

    2. You cannot copy/paste nodes unless both configurations are open within the same instance of ACE. You can use the "Tile" buttons to have the windows automatically size themselves within the ACE program:


  3. Copy and paste the following objects from the Elecsys-Modbus-Demo config into the configuration you created in the "Getting Started" guide:

    1. Master Channel0
    2. Custom_Reports0
  4. Edit your COM2 object to match the serial settings appropriate for your Modbus device
  5. Edit your FieldUnitModbus1 object to poll the appropriate registers for your Modbus device

  6. Edit your RtdbMod object so that it contains the correct number of database holding registers for the Modbus polls
  7. Edit your MasterChannel0 → Scan Table to set the scan rate for the polls configured in the poll table. For more information on how scan tables are configured, see Scan Table Configuration.
  8. Edit your Custom_Reports0 object so that it shows some of the Modbus tags you will be polling
  9. OPTIONAL: Edit the TagNames object so that the RTDB registers are labeled with the correct tag names
  10. Save and upload the configuration to the RediGate
  11. Using Putty, SSH into the device and view the Custom Reports
    1. User menu option 3 Diagnostic Services, 535 View Custom Report

 

If your RediGate is configured correctly, you should see values from the Modbus registers you setup in your polling table in step 5.