Jump to content

Template:Networking manual Modbus serial RutOS: Difference between revisions

No edit summary
Line 83: Line 83:
There are many ways how you can create a server to which Modbus will send data to. In this example we are going to be using Windows 10 computer and Hercules app, which you can download  [https://www.hw-group.com/product-version/hercules here], to create a test server. Download, install the app and apply the configuration below:
There are many ways how you can create a server to which Modbus will send data to. In this example we are going to be using Windows 10 computer and Hercules app, which you can download  [https://www.hw-group.com/product-version/hercules here], to create a test server. Download, install the app and apply the configuration below:


[[File:Networking_rut955_configuration_modbus_serial_8_v1.png|border|class=tlt-border]]
[[File:Modbus serial rut955 5.png|border|class=tlt-border]]


# Select '''TCP Server''' tab.
# Select '''TCP Server''' tab.
# Enter '''Port''' (In this example default 1883 is used).
# Enter '''Port''' (In this example default 80 is used).
# Click '''Listen'''
# Click '''Listen'''


Line 94: Line 94:
----
----


In order to setup your router to send Modbus data to server you will need to navigate to '''Services > Modbus > Modbus Data to Server'''.
In order to setup your router to send Modbus data to server you will need to navigate to '''Services > Data to Server''' and press '''ADD''' to add a new instance.


[[File:Networking_rut955_configuration_modbus_serial_9_v1.png|border|class=tlt-border]]
[[File:Modbus serial rut955 6.png|border|class=tlt-border|1100x700px]]


[[File:Modbus serial rut955 7.png|border|class=tlt-border|1100x700px]]
# Enable instance.
# Write name.
# Select data source (Modbus).
# Select '''Protocol''' (In this example HTTP(S) will be used).
# Select '''Protocol''' (In this example HTTP(S) will be used).
# Enter desired JSON format.
# Enter '''IP''' and '''port''' of the PC with the Hercules software.
# Enter '''IP''' and '''port''' of the PC with the Hercules software.
# Enter '''Period''' (minutes, how often router should send data to server).
# Click '''Save'''.
# Click '''ADD'''.


Then you will be redirected to '''Advanced sender settings'''.
[[File:Modbus serial rut955 8.png|border|class=tlt-border|1100x700px]]
 
[[File:Networking_rut955_configuration_modbus_serial_10_v1.png|border|class=tlt-border]]
 
# Enter '''Name''' (It can be anything you want).
# Click '''Save'''.


===Receiving data===
===Receiving data===
Line 115: Line 115:
Open Hercules again, press '''Listen''' and you should start receiving Modbus Data messages.
Open Hercules again, press '''Listen''' and you should start receiving Modbus Data messages.


[[File:Networking_rut955_configuration_modbus_serial_11_v1.png|border|class=tlt-border]]
[[File:Modbus serial rut955 9.png|border|class=tlt-border|700x700px]]


Try to change some data in the Modbus Slave simulator.
Try to change some data in the Modbus Slave simulator.


[[File:Networking_rut955_configuration_modbus_serial_12_v1.png|border|class=tlt-border]]
[[File:Modbus serial rut955 10.png|border|class=tlt-border|700x700px]]


Received data should change.
Received data should change.


[[File:Networking_rut955_configuration_modbus_serial_13_v1.png|border|class=tlt-border]]
[[File:Modbus serial rut955 11.png|border|class=tlt-border]]


==Slave alarms==
==Slave alarms==