Ensure that the network cable of RTU is connected to the router or directly connected computer (the computer must first set the IP of the same network segment as RTU), and the default IP address of RTU is192.168.1.2. Enter the IP address, user name and password in the browser as admin. After confirmation, you can enter the RTU local webpage.
How to use modbus function in RTU data acquisition terminal?
Configure MODBUS connection parameters
Description:
1. Click RTU to set service parameter options.
2. Click Edit to edit.
3. Set the IP address of the server (the external IP address of this machine is:110.80.17.74) or the domain name address.
4. Port number (port mapping is required if transmitting through a router)
5. Data center protocol: MODBUS
6. Enable the server.
7. Submit the settings.
Set RTU ID number, MODBUS ID and SIM card number as required. These parameters are related to the registration package and are used to identify different devices in the center.
How to use modbus function in RTU data acquisition terminal?
Enable the server port as follows:
1. Open the server and set the port number to 27000. The port number here should be the same as the port set on RTU, and there should be a mapped port on the router.
2. Start the server and wait for the connection. For the first time, RTU will send a registration packet to request to connect to the server.
3. Example of registration package: 66 66 3133 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 00 c0a801c300.
How to use modbus function in RTU data acquisition terminal?
Test whether modbus debugging is connected correctly, as shown in the following figure:
Tick hexadecimal display, and you can see the registration package data: 66 66 66 3133 38 38 38 38 38 38 38 38 38 38 38 38 000 c0a801c300.
If similar information is uploaded, modbus connection is successful.
How to use modbus function in RTU data acquisition terminal?
Description of the registration package
First registration package:
Format:
Proof of identity
telephone number
IP _ add
End-of-Text
4 bytes 1 1 byte 1 byte 4 bytes 1 byte.
Description:
Id: 8-digit hexadecimal id number.
Phone _ NUMBER: 1 1 ASCII code of mobile phone number.
IP_ADD: dynamic IP address (hexadecimal)
Etx: 0x00 indicates the end of data.
For example: 0x78 56 34123133 30 36 38 38 38 38 00 c0a80142 00.
The analysis is as follows:
78 56 34 12 indicates that the ID number is 12345678.
3133 30 36 36 38 38 38 38 means the mobile phone number is: 13066668888.
C0 a8 0 1 42 indicates that the IP address is192.168.1.66.
Collect closing quantity, which is used to collect real data:
1. In the configuration page of RTU, switch setting should be enabled.
First, select the switch/counter mode as the switch mode, and click the switch/counter to enter the configuration item.
Then, select the switch/counter mode as "switch mode". Because the counter 1-6 and the switch inputs 3-8 are multiplexed, the default value is "switch mode" and no configuration is required. When the configuration is complete, click Apply to submit.
2. Enable switch configuration
How to use modbus function in RTU data acquisition terminal?
Release MODBUS data acquisition switch input.
At this point, you can send MODBUS data acquisition switch input on the network debugging assistant, and RTU will respond to the data. The operation is as follows:
-It shows that the RTU equipment is connected, so remember to tick.
-Check 16 to send.
-Issue the MODBUS command.
-Click Send.
-The corresponding response frame.
-After RTU is connected to the server, the server will receive the registration package, the server can send MODBUS data acquisition switch input, and RTU will respond to the corresponding data.
How to use modbus function in RTU data acquisition terminal?