Changes

8 bytes removed ,  16:27, 16 March 2023
no edit summary
Line 76: Line 76:  
In this example the RUT device will act as MODBUS TCP Master and MODBUS TCP Slave, so the device will make requests (Master) and answer to himself (Slave). The received reply, will be sent over MQTT.  You can also send data from another MODBUS Slave devices connected to the router.
 
In this example the RUT device will act as MODBUS TCP Master and MODBUS TCP Slave, so the device will make requests (Master) and answer to himself (Slave). The received reply, will be sent over MQTT.  You can also send data from another MODBUS Slave devices connected to the router.
   −
====Enabling MODBUS TCP Slave====
+
===Enabling MODBUS TCP Slave===
 
Enabling the MODBUS Slave option on the router allows it to answer any requests coming from a MODBUS Master. To do that, go to the router configuration page→Services→MODBUS→MODBUS TCP Slave. Then clock the "Enable" slider and save.
 
Enabling the MODBUS Slave option on the router allows it to answer any requests coming from a MODBUS Master. To do that, go to the router configuration page→Services→MODBUS→MODBUS TCP Slave. Then clock the "Enable" slider and save.
    
[[File:Networking_rutos_configuration_examples_openremote_010.png|border|class=tlt-border]]
 
[[File:Networking_rutos_configuration_examples_openremote_010.png|border|class=tlt-border]]
   −
=== Enabling MODBUS TCP Master ===
+
===Enabling MODBUS TCP Master===
 
Enabling the MODBUS Master option on the router allows it to make specific requests to any slave in the MODBUS network. To do that, go to the router configuration page→Services→MODBUS→MODBUS TCP Master. Click on the "Add" button, and do the following configuration on the page:
 
Enabling the MODBUS Master option on the router allows it to make specific requests to any slave in the MODBUS network. To do that, go to the router configuration page→Services→MODBUS→MODBUS TCP Master. Click on the "Add" button, and do the following configuration on the page:
   Line 112: Line 112:  
Save and apply settings.
 
Save and apply settings.
   −
=== Configuring Data to Server ===
+
===Configuring Data to Server===
 
Go to the router configuration page→Services→[https://wiki.teltonika-networks.com/view/Data_to_Server Data to server]. Click on the "Add" button, and the configuration is basically the same as described on the "Publishing Bluetooth/Wifi scanner/Modbus data" section of this article, just change the data source to "MODBUS data" and format the data as you wish. You should have something similar to this.
 
Go to the router configuration page→Services→[https://wiki.teltonika-networks.com/view/Data_to_Server Data to server]. Click on the "Add" button, and the configuration is basically the same as described on the "Publishing Bluetooth/Wifi scanner/Modbus data" section of this article, just change the data source to "MODBUS data" and format the data as you wish. You should have something similar to this.
    
[[File:Networking rutos configuration examples AWS 017.png|border|class=tlt-border]]
 
[[File:Networking rutos configuration examples AWS 017.png|border|class=tlt-border]]
   −
=== Checking if it works ===
+
===Checking if it works===
 
Then, you can use the AWS MQTT test client to check if your setup works, if everything was setup correctly, you should see something like this.
 
Then, you can use the AWS MQTT test client to check if your setup works, if everything was setup correctly, you should see something like this.
    
[[File:Networking rutos configuration examples AWS 018.png|border|class=tlt-border]]
 
[[File:Networking rutos configuration examples AWS 018.png|border|class=tlt-border]]