...
- Two RediGate 100 or 400 series device with internet connectivity
- Completion of the Getting Started Guide and RediGate to AWS IoT for your respective RediGate device (RediGate 100 Series or RediGate 400 Series)
- AWS account with the AWS IoT service enabled (https://aws.amazon.com/iot/)
...
Example 1: Testing P2P Communication
- After loading configurations to both RediGates, test that you are seeing MQTT subscriptions.
From the Main Menu, select 3 (Diagnostic Services), and 17 (MQTT Status). Set up your Modbus host to poll the "P2P-Concentrator" RediGate using the IP address configured in your device, on the interface that you opened in the Firewall (above).
Info title Modbus Versions NOTE: There are different implementations of TCP/IP Modbus protocol among vendors. You need to be aware of these differences in order to properly set up a Modbus polling network.
For instance:
- Open Modbus/TCP typically uses port 502. It's Modbus format is slightly different from standard Binary Modbus.
- Binary Modbus over TCP/IP doesn't have a defined port. This example configuration uses port 3040.
- Either port 502 or 3040 may be used in this RediGate example—the same data is available on both ports.
- The data used in this example includes 44001-44006 (six 16-bit integers) and 46001-46002 (one 32-bit float, little-endian).- Poll the "P2P-Concentrator RediGate using a Modbus TCP client. You should see the data being generated by the "P2P-Field1" RediGate.
...
Tip | ||
---|---|---|
| ||
Congratulations! You can successfully send data between two point-to-point RediGates. Check out our "Field Device Quick Starts" found at http://redigate.elecsyscorp.com/examples for examples showing how to connect the RediGate to 60+ industrial protocols. |
|