Changes

no edit summary
Line 37: Line 37:  
'''Modbus RTU setup:'''
 
'''Modbus RTU setup:'''
   −
* On PC1, run the '''QModMaster''' application.
+
* On PC1, run the '''ModRSsim2''' application.
* Select Modbus Mode: RTU.
+
* In the '''Prot:''' section select '''Modbus RS-232'''.
   −
[[File:ModeRTU.png|border|class=tlt-border]]
+
[[File:Rs232modeplc.png|border|class=tlt-border]]
   −
* Navigate to '''Commands -> Connect'''.
+
* In the menu in the top right corner, select '''Setup communication Serial or TCP/IP port'''.
   −
[[File:ConnectbuttonRTU.png|border|class=tlt-border]]
+
[[File:Setupbuttonrs232.png|border|class=tlt-border]]
   −
* To change the COM port on which the device is connected, navigate to '''Options -> Modbus RTU'''. Set the '''Baud''' rate to be the same as in the RUT955 serial settings.
+
* Enter the '''COM''' port on which the device is connected. Set the '''Baud''' rate to be the same as in the RUT955 serial settings.
   −
[[File:Baudandport.png|border|class=tlt-border]]
+
[[File:RSsim COM port.png|border|class=tlt-border]]
    
After completing these steps, the Modbus RTU configuration is finished.
 
After completing these steps, the Modbus RTU configuration is finished.
 
----
 
----
   −
* On the PC2, run the ModRSsim2 application.
+
* On the PC2, run the '''QModMaster''' application.
* In the '''Prot:''' section select '''Modbus TCP/IP'''.
+
* Select Modbus Mode: '''TCP'''.
   −
[[File:Tcpsettings1.png|border|class=tlt-border]]
+
[[File:Modetcpmaster.png|border|class=tlt-border]]
   −
* In the menu in the top right corner, select '''Setup communication Serial or TCP/IP port'''.
+
* Navigate to '''Options -> Modbus TCP settings''' to configure TCP connection. Input Slave IP and TCP Port.
   −
[[File:Tcpicon1.png|border|class=tlt-border]]
+
[[File:Mastertcpsettings.png|border|class=tlt-border]]
   −
* Enter the same port number as in the RUT955 Modbus gateway setup (default port is 502).
+
* To establish connection navigate to '''Commands -> Connect'''.
   −
[[File:Portnumbertcp1.png|border|class=tlt-border]]
+
[[File:ConnectbuttonRTU.png|border|class=tlt-border]]
    
With that, the Modbus TCP configuration is finished.
 
With that, the Modbus TCP configuration is finished.
Line 70: Line 70:  
==Testing the configuration==
 
==Testing the configuration==
   −
To test the configuration, we could try to change some values in the Modbus PLC simulator and then try to read them via Modbus Master application.
+
To test the configuration, we could try to change some values in the Modbus PLC simulator and then try to read them via Modbus Master application. You might need to disable Firewall in both PC1 and PC2, or modify Firewall rules to allow both applications through the Firewall.
 +
 
 +
First of all, let's change Holding registers data in Modbus PLC:
 +
 
 +
[[File:Datainplc.png|border|class=tlt-border]]
 +
 
 +
Then using Function code '''Read Holding Registers''', try to read the data from the PLC simulator. To read data, navigate to '''Commands -> Read / Write'''.
 +
 
 +
[[File:Tcpmasterdata.png|border|class=tlt-border]]
 +
 
 +
If the data is displayed correctly, congratulations, the configuration works! If not, I advise to follow these steps once again.

Navigation menu