Description
Modbus protocol is a data communication protocol widely used in industrial environment. Modbus supports communication to and from multiple devices via serial port or Ethernet.
Milesight router can act as a Modbus RTU/TCP master(client) to request Modbus Slave unit device(server) data. And the router also supports forwarding the data to remote server and send alarms.
Content
Requirement
-Milesight UR Series Router
-1 computer
-TCPCOM(sscom or Netassisst)
-Modbus Slave tool
-Serial port to USB converter
Configuration
Modbus RTU Master (client)
Step1: Connect PC to serial port of Milesight router. Open the Modbus Slave which simulate as a Modbus Slave device unit.
Step2: Navigate to Setup->Slave Definition, configure accordingly the Slave definition;
Step3: Double click the blank on the table and set the value in Modbus Slave;
Step4: Navigate to Connection->connect, then set the connection as Serial Port and select the corresponding COM port, finally choose the RTU mode;
Step5: Login the web page of the router, enter into Serial Port->Serial, set the serial port mode as Modbus Master.
Step6: Navigate to the Modbus Master->Channel, click + in Channel Setting to add the channel, select the link as Serial and set the Modbus parameter according to Modbus Slave Definition setting. If you need to transmit Modbus device data to remote server, click + in TCP forwarding to add the server.
Step7: Navigate to the Modbus Master->Modbus Master, enable the Modbus master setting, and set the read interval.
Click Read to test the result read from the Modbus Slave.
Step8: Run the SSCOM.exe on the PC and choose the TCP server to monitor the data, router will transmit the raw data from Modbus slave device.
Step 9: Milesight router supports to Alarm function, you can set the condition if collect data is greater/ less than a certain value or it is within the range, it will trigger the router to send SMS or Email.
Modbus TCP Master (client)
Step1: Connect PC to Milesight router via LAN port. Open the Modbus Slave which simulate as a Modbus Slave device unit.
Step2: Navigate to Setup->Slave Definition, configure accordingly the Slave definition;
Step3: Double click the blank on the table and set the value in Modbus Slave;
Step4: Navigate to Connection->connect, please set the connection as Modbus TCP and fill in the port
Step5: Login the web page of the router, enter into Serial Port->Serial, set the serial port mode as Modbus Master.
Step6: Navigate to the Modbus Master->Channel, click + in Channel Setting to add the channel, select the link as TCP and set the Modbus parameter according to Modbus Slave Definition setting, fill in Modbus TCP salve IP address and port. If you need to transmit Modbus device data to remote server, click + in TCP forwarding to add the server.
Step7: Navigate to the Modbus Master->Modbus Master, enable the Modbus master setting, and set the read interval.
Click Read to test the result read from the Modbus Slave.
Step8: Run the SSCOM.exe on the PC and choose the TCP server to monitor the data, router will transmit the raw data from Modbus slave device.
Step 9: Milesight router supports to Alarm function, you can set the condition if collect data is greater/ less than a certain value or it is within the range, then it will trigger the router to send SMS or Email.