This video demonstrates the data acquisition tutorial for Distributed IO M31 paired with E90/E95 SL series DTUs.
This demonstration uses the Distributed IO M31-XAXA0404G and E90-DTU(400SL30). This tutorial is also applicable to other models of first-generation distributed IO and E90 SL series radios, with differences only in IO type, IO quantity, frequency, transmit power, and the method of entering configuration mode. Additionally, E95 SL series radios can also refer to this tutorial. The only difference between E95 SL series and E90 SL series radios is the configuration method; the software used and the connection method to the distributed IO are completely identical.
Materials Preparation:
E90-DTU(400SL30) * 2
M31-XAXA0404G * 1
4-20mA sensor * 1
12V DC power supply * 3
433MHz antenna * 2
USB to RS485 converter * 2
RF_Setting(E22-E9X(SL)) software
Modbus Poll software
Distributed IO configuration host computer software
The RF_Setting(E22-E9X(SL)) software can be obtained from the E90-DTU(400SL22) related downloads page on the Ebyte official website. The Modbus Poll software needs to be obtained by the user via Baidu search.
Radio Configuration:
Connect two E90-DTU(400SL30) units to the USB-to-RS485 converters respectively. Note that the RS485 connection must follow the rule of A to A, B to B. Connect the E90-DTU(400SL30) units to the power supply. Connect the USB-to-RS485 converters to the computer's USB ports. The connection is complete.
Set the M0 M1 DIP switches on the side of the E90-DTU(400SL30) radio to the configuration mode as shown in the figure. The E90 SL series (non-isolated serial port version) radios have 4 modes. In this tutorial, we only use the normal mode (transmission mode) and configuration mode. For the use of other modes, please refer to the DTU manual.
If using an E95 radio, use the MODE button to switch the radio to configuration mode. The M0 M1 indicator lights should be set as shown: M0 off, M1 on, indicating the radio is in configuration mode.
On the computer, open the RF_Setting(E22-E9X(SL)) software, select the corresponding COM port, open the serial port, and click "Read Parameters" to read the DTU's default parameters.
Using default parameters or modifying the module address and channel is acceptable. Note: When using transparent transmission mode, parameters such as module address, frequency channel, network ID, key, packet length, and air data rate for both DTUs must be consistent. This tutorial only modifies the module address parameter to 1.
Click "Write" successfully. The host computer displays "Write Successful". Perform the same operation on the other module, configuring the module address to 1, and keep other parameters at default.
Set the M0 M1 DIP switches to the state as shown in the figure, all to ON.
At this point, the radio configuration is complete.
Distributed IO Configuration:
Power on the M31-XAXA0404G. Remove the USB-to-RS485 converter from one E90-DTU(400SL30) and connect it to the RS485 serial port of the M31-XAXA0404G. Note the wiring is still A to A, B to B. Connect the USB to the computer. Open the distributed IO configuration host computer software. Click the top left corner to select the interface as Serial Port (M31 distributed IO supports Ethernet and RS485 dual-interface communication for parameter configuration. This tutorial uses serial port. If users need to use Ethernet for configuration, please select the interface as Ethernet). Click here to configure the COM port number, baud rate, and other parameters, then click "Search" to find the device.
Click on the found device. You can view the Modbus address of the distributed IO here. Click "Configure" to set the parameters of the distributed IO. This tutorial only uses the serial port; other parameters can remain at default.
Connect the RS485 of the distributed IO to the RS485 of the E90 radio. Note the connection method: A to A, B to B. Connect the 2-wire sensor to the AI1 channel of the distributed IO.
Acquisition Test:
On the computer, open the Modbus Poll software. Click "Connection", select "Serial Port", and choose the COM port corresponding to the E90 radio. Note the baud rate is 9600, 8N1.
Click "Setup", then "Read/Write Definition". Set Slave ID to 1 (consistent with the distributed IO's Modbus address). Select Function Code 04 (PLC Input Register area). Fill in the Register Address as 0. Fill in the Number of Registers to read as 1 (only reading AI1). Click OK. If you want to read AI2, write the Register Address as 1 and the Number of Registers as 1. To read AI1 and AI2 simultaneously, write the Register Address as 0 and the Number of Registers as 2.
You can see that Modbus Poll has read the AI1 data collected by the distributed IO.
This demonstration uses the Distributed IO M31-XAXA0404G and E90-DTU(400SL30). This tutorial is also applicable to other models of first-generation distributed IO and E90 SL series radios, with differences only in IO type, IO quantity, frequency, transmit power, and the method of entering configuration mode. Additionally, E95 SL series radios can also refer to this tutorial. The only difference between E95 SL series and E90 SL series radios is the configuration method; the software used and the connection method to the distributed IO are completely identical.
Materials Preparation:
E90-DTU(400SL30) * 2
M31-XAXA0404G * 1
4-20mA sensor * 1
12V DC power supply * 3
433MHz antenna * 2
USB to RS485 converter * 2
RF_Setting(E22-E9X(SL)) software
Modbus Poll software
Distributed IO configuration host computer software
The RF_Setting(E22-E9X(SL)) software can be obtained from the E90-DTU(400SL22) related downloads page on the Ebyte official website. The Modbus Poll software needs to be obtained by the user via Baidu search.
Radio Configuration:
Connect two E90-DTU(400SL30) units to the USB-to-RS485 converters respectively. Note that the RS485 connection must follow the rule of A to A, B to B. Connect the E90-DTU(400SL30) units to the power supply. Connect the USB-to-RS485 converters to the computer's USB ports. The connection is complete.
Set the M0 M1 DIP switches on the side of the E90-DTU(400SL30) radio to the configuration mode as shown in the figure. The E90 SL series (non-isolated serial port version) radios have 4 modes. In this tutorial, we only use the normal mode (transmission mode) and configuration mode. For the use of other modes, please refer to the DTU manual.
If using an E95 radio, use the MODE button to switch the radio to configuration mode. The M0 M1 indicator lights should be set as shown: M0 off, M1 on, indicating the radio is in configuration mode.
On the computer, open the RF_Setting(E22-E9X(SL)) software, select the corresponding COM port, open the serial port, and click "Read Parameters" to read the DTU's default parameters.
Using default parameters or modifying the module address and channel is acceptable. Note: When using transparent transmission mode, parameters such as module address, frequency channel, network ID, key, packet length, and air data rate for both DTUs must be consistent. This tutorial only modifies the module address parameter to 1.
Click "Write" successfully. The host computer displays "Write Successful". Perform the same operation on the other module, configuring the module address to 1, and keep other parameters at default.
Set the M0 M1 DIP switches to the state as shown in the figure, all to ON.
At this point, the radio configuration is complete.
Distributed IO Configuration:
Power on the M31-XAXA0404G. Remove the USB-to-RS485 converter from one E90-DTU(400SL30) and connect it to the RS485 serial port of the M31-XAXA0404G. Note the wiring is still A to A, B to B. Connect the USB to the computer. Open the distributed IO configuration host computer software. Click the top left corner to select the interface as Serial Port (M31 distributed IO supports Ethernet and RS485 dual-interface communication for parameter configuration. This tutorial uses serial port. If users need to use Ethernet for configuration, please select the interface as Ethernet). Click here to configure the COM port number, baud rate, and other parameters, then click "Search" to find the device.
Click on the found device. You can view the Modbus address of the distributed IO here. Click "Configure" to set the parameters of the distributed IO. This tutorial only uses the serial port; other parameters can remain at default.
Connect the RS485 of the distributed IO to the RS485 of the E90 radio. Note the connection method: A to A, B to B. Connect the 2-wire sensor to the AI1 channel of the distributed IO.
Acquisition Test:
On the computer, open the Modbus Poll software. Click "Connection", select "Serial Port", and choose the COM port corresponding to the E90 radio. Note the baud rate is 9600, 8N1.
Click "Setup", then "Read/Write Definition". Set Slave ID to 1 (consistent with the distributed IO's Modbus address). Select Function Code 04 (PLC Input Register area). Fill in the Register Address as 0. Fill in the Number of Registers to read as 1 (only reading AI1). Click OK. If you want to read AI2, write the Register Address as 1 and the Number of Registers as 1. To read AI1 and AI2 simultaneously, write the Register Address as 0 and the Number of Registers as 2.
You can see that Modbus Poll has read the AI1 data collected by the distributed IO.