Line 22: |
Line 22: |
| | | |
| [[File:Networking_rut955_configuration_modbus_serial_topology_2_v1.png|border|class=tlt-border|700x700px]] | | [[File:Networking_rut955_configuration_modbus_serial_topology_2_v1.png|border|class=tlt-border|700x700px]] |
− | | + | {{Template:Networking install Modbus serial RutOS}} |
| ==Configuring Modbus serial slave device== | | ==Configuring Modbus serial slave device== |
| | | |
Line 44: |
Line 44: |
| Open router’s WebUI, navigate to '''Services > Modbus > Modbus Serial Master''' and apply the following configuration. | | Open router’s WebUI, navigate to '''Services > Modbus > Modbus Serial Master''' and apply the following configuration. |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_3_v1.png|border|class=tlt-border]] | + | [[File:Modbus_serial_rut955_1.png|border|class=tlt-border|1100x700px]] |
| | | |
| # Press '''Enable'''. | | # Press '''Enable'''. |
Line 53: |
Line 53: |
| Now create '''RS232 slave''' by writing a name, pressing '''Add''' button. It should appear like in the example and then press '''Edit'''. | | Now create '''RS232 slave''' by writing a name, pressing '''Add''' button. It should appear like in the example and then press '''Edit'''. |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_4_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial rut955 2.png|border|class=tlt-border|1100x700px]] |
| | | |
| Then apply the following configuration. | | Then apply the following configuration. |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_5_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial rut955 3.png|border|class=tlt-border|1100x700px]] |
| + | |
| + | [[File:Modbus serial rut955 4.png|border|class=tlt-border|1100x700px]] |
| | | |
| # Check '''Enable'''. | | # Check '''Enable'''. |
| + | # Type in desired '''Name'''. |
| # Type in '''Slave ID''' (any number from 1 to 255). | | # Type in '''Slave ID''' (any number from 1 to 255). |
− | # Add '''Period''' (Query period). | + | # Write a '''name''' for a new request. |
− | # Press '''Save'''. | + | # Add new request by clicking '''ADD'''. |
− | | + | # Select '''data type'''. |
− | Go back to the '''Slave configuration''' window and create '''Slave request''' by writing a name, pressing '''Add''' button. It should appear like in the example and then press '''Edit'''.
| + | # Select '''Function''' (Read holding registers (3)). |
− | | + | # Write '''First register''' (1) and Write '''Register count''' (10). |
− | [[File:Networking_rut955_configuration_modbus_serial_6_v1.png|border|class=tlt-border]]
| + | # Enable the request and you can test it through '''request configuration testing'''. |
− | | |
− | Then apply the following configuration.
| |
− | | |
− | [[File:Networking_rut955_configuration_modbus_serial_7_v1.png|border|class=tlt-border]]
| |
− | | |
− | # Check '''Enable'''. | |
− | # Select '''Function''' (Read Holding Registers). | |
− | # Write '''First register''' (1). | |
− | # Write '''Register count''' (10).
| |
| # Press '''Save'''. | | # Press '''Save'''. |
| | | |
Line 87: |
Line 81: |
| 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 98: |
Line 92: |
| ---- | | ---- |
| | | |
− | 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''' , create a '''"NEW COLLECTION NAME"''' and press '''ADD''' to add a new instance. |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_9_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial 1.png|border|class=tlt-border|1100x700px]] |
| | | |
− | # Select '''Protocol''' (In this example HTTP(S) will be used).
| + | [[File:Modbus serial 1-4.png|border|class=tlt-border|1100x700px]] |
− | # Enter '''IP''' and '''port''' of the PC with the Hercules software.
| |
− | # Enter '''Period''' (minutes, how often router should send data to server).
| |
− | # Click '''ADD'''.
| |
| | | |
− | Then you will be redirected to '''Advanced sender settings'''.
| + | [[File:Modbus serial 5.png|border|class=tlt-border|1100x700px]] |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_10_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial 6-8.png|border|class=tlt-border|1100x700px]] |
| | | |
− | # Enter '''Name''' (It can be anything you want). | + | #Select '''Type: Modbus''' |
− | # Click '''Save'''. | + | #Select '''Format Type: Custom''' |
| + | #Enter desired '''format string''' |
| + | #Click '''"NEXT: COLLECTION EDIT"''' |
| + | #In this configuration window, you can leave the settings as default and click '''"NEXT: SERVER CONFIGURATION"''' |
| + | #Select '''Type: HTTP''' |
| + | #Enter '''Server address''' |
| + | #Click '''"SAVE & APPLY"''' |
| | | |
| ===Receiving data=== | | ===Receiving data=== |
Line 119: |
Line 116: |
| 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== |
Line 133: |
Line 130: |
| In order to setup the following configuration SIM card is required. | | In order to setup the following configuration SIM card is required. |
| | | |
− | Go back to '''Services > Modbus > Modbus Serial Master''' and press edit the same Slave configuration or create a new one. There will be section called '''Slave alarms'''. Create a name, then press '''Add''' button. When it appears like in the example, press '''Edit'''. | + | Go back to '''Services > Modbus > Modbus Serial Master''' and press edit the same Slave configuration or create a new one. There will be section called '''Alarms Configuration''. Create a name, then press '''Add''' button. When it appears like in the example, press '''Edit'''. |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_14_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial rut955 12.png|border|class=tlt-border|1100x700px]] |
| | | |
| Then apply the following configuration: | | Then apply the following configuration: |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_15_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial rut955 13.png|border|class=tlt-border|1100x700px]] |
| | | |
| # '''Enable''' instance. | | # '''Enable''' instance. |
Line 145: |
Line 142: |
| # Write '''Register''' (1). | | # Write '''Register''' (1). |
| # Select '''Condition''' (More than). | | # Select '''Condition''' (More than). |
− | # Write '''Value''' (5). | + | # Write '''Value''' (10). |
| + | # Select '''Action frequency''' (First trigger) |
| # Select '''Action''' (SMS). | | # Select '''Action''' (SMS). |
| + | # Create '''Message''' (type anything you want to receive). |
| # Write '''Phone number''' (the number you want to receive the messages to). | | # Write '''Phone number''' (the number you want to receive the messages to). |
− | # Create '''Message''' (type anything you want to receive).
| |
| # Press '''Save'''. | | # Press '''Save'''. |
| | | |
| Now go back to '''Modbus slave simulator''' and edit this window: | | Now go back to '''Modbus slave simulator''' and edit this window: |
| | | |
− | [[File:Networking_rut955_configuration_modbus_serial_16_v1.png|border|class=tlt-border]] | + | [[File:Modbus serial rut955 14.png|border|class=tlt-border|1100x700px]] |
| + | |
| + | Change the value to anything below 10, you should not receive messages. Then change the value to anything above 10, you should start receiving messages. |
| | | |
− | Change the value to anything below 5, you should not receive messages. Then change the value to anything above 5, you should start receiving messages.
| + | [[File:Modbus serial rut955 15.png|border|class=tlt-border|400x400px]] |