Changes

no edit summary
Line 7: Line 7:     
=Configure Modbus TCP slave device=
 
=Configure Modbus TCP slave device=
In this example, we would be configuring our slave device to have a 192.168.1.2 internal IP address. This can be done by changing the IP address parameter on Network->WAN page:
+
In this example, we would be configuring our slave device to have a 192.168.1.2 internal IP address. This can be done by changing the IP address parameter on Network WAN page:
    
[[File:ExampleModSlave1Edit.png|border|class=tlt-border|center|Slave Device WAN configuration]]
 
[[File:ExampleModSlave1Edit.png|border|class=tlt-border|center|Slave Device WAN configuration]]
Line 13: Line 13:  
[[File:ExampleModSlave2Edit.png|border|class=tlt-border|center|Slave Device WAN config]]
 
[[File:ExampleModSlave2Edit.png|border|class=tlt-border|center|Slave Device WAN config]]
   −
Now we need to enable Modbus service for this slave device as we will open a specific port for letting through TCP communications (it is also possible to 'Allow remote access' if we wish to access this router from external WAN using its public IP). This is done on Services->Modbus page:
+
Now we need to enable Modbus service for this slave device as we will open a specific port for letting through TCP communications (it is also possible to 'Allow remote access' if we wish to access this router from external WAN using its public IP). This is done on Services Modbus page:
    
[[File:ExampleModSlave3Edit.png|border|class=tlt-border|center|Slave Device Modbus Config|alt=]]
 
[[File:ExampleModSlave3Edit.png|border|class=tlt-border|center|Slave Device Modbus Config|alt=]]
Line 65: Line 65:     
==Adding a new slave device==
 
==Adding a new slave device==
On the master device (in this example master device has 192.168.1.1 internal IP address) open Services->Modbus->Modbus TCP Master. To add a new slave, first, click the add button.
+
On the master device (in this example master device has 192.168.1.1 internal IP address) open Services Modbus Modbus TCP Master. To add a new slave, first, click the add button.
    
[[File:ExampleModSlave4Edit.png|border|class=tlt-border|center|Master device Modbus Slave devices menu.]]
 
[[File:ExampleModSlave4Edit.png|border|class=tlt-border|center|Master device Modbus Slave devices menu.]]
Line 125: Line 125:  
[[File:ExampleModSlave7Edit.png|border|class=tlt-border|center|Master Device Modbus Slave menu]]
 
[[File:ExampleModSlave7Edit.png|border|class=tlt-border|center|Master Device Modbus Slave menu]]
 
==Testing==
 
==Testing==
For testing, if the functionality is working we can configure a request. A Modbus request is a way of obtaining data from Modbus slaves. The master sends a request to a slave specifying the function code to be performed. The slave then sends the requested data back to the Modbus master. You can create a maximum of 64 request configurations for each slave device.First, click the edit button:  
+
For testing, if the functionality is working we can configure a request. A Modbus request is a way of obtaining data from Modbus slaves. The master sends a request to a slave specifying the function code to be performed. The slave then sends the requested data back to the Modbus master. You can create a maximum of 64 request configurations for each slave device. First, click the edit button:  
    
[[File:ExampleModSlave7Edit.png|border|class=tlt-border|center|Master Device Modbus Slave menu]]
 
[[File:ExampleModSlave7Edit.png|border|class=tlt-border|center|Master Device Modbus Slave menu]]
Line 205: Line 205:  
</table>
 
</table>
   −
Under the “Request Configuration” section there will be another section called “Request Configuration Testing” this is where you can test that the parameters that you set work properly. Just select the request that you want to test and click the test button and you should get and output.
+
Under the “Request Configuration” section there will be another section called “Request Configuration Testing” this is where you can test that the parameters that you set work properly. Just select the request that you want to test and click the test button and you should get an output.
    
[[File:ExampleModSlave12Edit.png|border|class=tlt-border|center|Testing request.]]
 
[[File:ExampleModSlave12Edit.png|border|class=tlt-border|center|Testing request.]]

Navigation menu