Note: RS485 serial port of USR-TCP232-410 can be connected to 32 devices utmost, and the number in bus protocol of the 485 is 200-plus. However, the actual connection should be determined by the loading of the device.
1.Background explanation
2. Hardware requirement
(1)
(2)
A computer
(3)
A reticle
3. Software requirement
(1) USR-TCP232-410 serial to ethernet converter setting software can be downloaded from http://www.usr.cn/Download/90.html
(2) Software Modbuspoll
4.
(1)
5.Parameter settings
(1)Port 0 of 410 is 232 serial, and port 1 is 485 serial. Only 485 ports are used in this communication method.
(2)Network parameter
a. Default IP address is static IP. In order to avoid conflict with devices in LAN, it needs to be modified to DHCP/ be acquired dynamically. If you want to keep static IP, then 410 should be set in the same network segment as router with no conflict in IP.
b. If 410 is directly connect to computer internet access, then it cannot be modified to DHCP/ be acquired dynamically. It needs to modify the IP address of 410 to the same network segment as he computer. As the default address of 410 is 192.168.0.7, the OP of computer should also be set as 192.168.0.XXX.
(1)
(2)
DHCP gets IP address from the placement of router
Default setting is static, and the IP needs to be modified to DHCP/ be acquired dynamically to avoid conflict.
6.The way to connect
(1)
(2)
(1)
(2)
(3)
No. |
Function |
MCGS |
Case of Address |
1 |
01 Read Coils |
0 output register |
00001 |
2 |
02 Read Discrete Inputs |
1 input relay |
10001 |
3 |
03 Read Holding Registers |
4 output register |
40001 |
4 |
04 Read Input Registers |
3 input register |
30001 |
(1)
(2)
(3)
(4)
(5)
Number of the device address
(6)
Read the data of temperature and humidty
Command frame
Response frame
When the data of humidity returned is 0×01C8 or 456, it means the relevant humidity is 45.6 % now, and the data of temperature returned is 0×00ED or 237, which means the relevant humidity is 23.7℃ now
Click OK after complete setting and then you can read the list of register defined and the temperature and humidity data read from the temperature and humidity device 1.
Open Mosbuspoll, and click Filenew to create new file or click icon below File to create a new page. Set the temperature and humidity module 2 in the same way as that of module 1
Address of the device
Click OK after complete setting and then you can read the list of register defined and the temperature and humidity data read from the temperature and humidity device 2.