Template:Networking manual Modbus serial RutOS: Difference between revisions
Template:Networking manual Modbus serial RutOS (view source)
Revision as of 15:24, 11 October 2022
, 11 October 2022→Modbus data to server
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: | [[File:Modbus serial rut955 5.png|border|class=tlt-border]] | ||
# Select '''TCP Server''' tab. | # Select '''TCP Server''' tab. | ||
# Enter '''Port''' (In this example default | # 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 > | 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: | [[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. | ||
# Click '''Save'''. | |||
# Click ''' | |||
[[File:Modbus serial rut955 8.png|border|class=tlt-border|1100x700px]] | |||
[[File: | |||
===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: | [[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: | [[File:Modbus serial rut955 10.png|border|class=tlt-border|700x700px]] | ||
Received data should change. | Received data should change. | ||
[[File: | [[File:Modbus serial rut955 11.png|border|class=tlt-border]] | ||
==Slave alarms== | ==Slave alarms== |