Line 113: |
Line 113: |
| After clicking 'Add' you will be redirected to the newly added server instance configuration page. | | After clicking 'Add' you will be redirected to the newly added server instance configuration page. |
| | | |
− | [[File:Networking_rutos_manual_modbus_modbus_serial_server_configuration_rs232_{{#ifeq:{{#expr: {{{rs232}}} or {{{usb}}}}} |1|1|0}}_v1.png|border|class=tlt-border]] | + | [[File:Networking_rutos_manual_modbus_modbus_serial_server_configuration_rs232_{{#ifeq:{{#expr: {{{rs232}}} or {{{usb}}}}} |1|1|0}}_v2.png|border|class=tlt-border]] |
| | | |
| <table class="nd-mantable"> | | <table class="nd-mantable"> |
Line 140: |
Line 140: |
| <td>integer [0..255]; default: <b>1</b></td> | | <td>integer [0..255]; default: <b>1</b></td> |
| <td>Specifies which serial port will be used for serial communication.</td> | | <td>Specifies which serial port will be used for serial communication.</td> |
| + | </tr> |
| + | <tr> |
| + | <td>Mobile Data type</td> |
| + | <td>Bytes {{!}} Kilobytes {{!}} Megabytes; default: <b>Bytes</b></td> |
| + | <td>Selects mobile data unit representation type.</td> |
| </tr> | | </tr> |
| <tr> | | <tr> |
Line 339: |
Line 344: |
| <tr> | | <tr> |
| <td>Data type</td> | | <td>Data type</td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool {{!}} PDU; default: <b>16bit INT, high byte first</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool {{!}} PDU; default: <b>16bit INT, high byte first</b></td> |
| <td>Defines how read data will be stored.</td> | | <td>Defines how read data will be stored.</td> |
| </tr> | | </tr> |
Line 413: |
Line 418: |
| <tr> | | <tr> |
| <td>Compared condition data type</td> | | <td>Compared condition data type</td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> |
| <td>Select data type that will be used for checking conditions.</td> | | <td>Select data type that will be used for checking conditions.</td> |
| </tr> | | </tr> |
Line 448: |
Line 453: |
| <tr> | | <tr> |
| <td>Action</td> | | <td>Action</td> |
− | <td>Ubus event {{!}} {{#ifeq:{{{mobile}}}|1|<span style="color: #0054a6;">SMS</span> {{!}}|}} <span style="color: purple;">MODBUS Write Request</span>{{#switch:{{{series}}}|TCR1|TRB2|TRB2M=|#default= {{!}} Trigger output}} | <span style="color: red;">MQTT message</span>; default: <b>MODBUS Write Request</b></td> | + | <td>Ubus event {{!}} {{#ifeq:{{{mobile}}}|1|<span style="color: #0054a6;">SMS</span> {{!}}|}} <span style="color: purple;">MODBUS Write Request</span>{{#switch:{{{series}}}|TCR1|OTD140|OTD160|OTD500|RUT14X=|#default= {{!}} <span style="color: green;">Trigger output</span>}} | <span style="color: red;">MQTT message</span>; default: <b>MODBUS Write Request</b></td> |
| <td>Action that will be taken if the condition is met. Possible actions: | | <td>Action that will be taken if the condition is met. Possible actions: |
| <ul>{{#ifeq: {{{mobile}}} | 1 | | | <ul>{{#ifeq: {{{mobile}}} | 1 | |
| <li><b>SMS</b> - sends and SMS message to a specified recipient(s).</li>|}} | | <li><b>SMS</b> - sends and SMS message to a specified recipient(s).</li>|}} |
| <li><b>Modbus Request</b> - sends a Modbus Write request to a specified server.</li> | | <li><b>Modbus Request</b> - sends a Modbus Write request to a specified server.</li> |
− | {{#switch:{{{series}}}|TCR1|TRB2|TRB2M=|#default=<li><b>Trigger output</b> - changes state of selected I/O output pin.</li>}} | + | {{#switch:{{{series}}}|TCR1|OTD140|OTD160|OTD500|RUT14X=|#default=<li><b>Trigger output</b> - changes state of selected I/O output pin.</li>}} |
| </ul> | | </ul> |
| </td> | | </td> |
Line 494: |
Line 499: |
| <tr> | | <tr> |
| <td><span style="color: purple;">MODBUS Write Request: Executed action data type</span></td> | | <td><span style="color: purple;">MODBUS Write Request: Executed action data type</span></td> |
− | <td>8bit INT | 8bit UINT | 16bit INT, high byte first | 16bit INT, low byte first | 16bit UINT, high byte first | 16bit UINT, low byte first | 32bit float (various Byte order) | 32bit INT (various Byte order) | 32bit UNIT (various Byte order) | ASCII | Hex | Bool; default: <b>Bool</b></td> | + | <td>8bit INT | 8bit UINT | 16bit INT, high byte first | 16bit INT, low byte first | 16bit UINT, high byte first | 16bit UINT, low byte first | 32bit float (various Byte order) | 32bit INT (various Byte order) | 32bit UNIT (various Byte order) 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII | Hex | Bool; default: <b>Bool</b></td> |
| <td>Select data type that will be used for executing action.</td> | | <td>Select data type that will be used for executing action.</td> |
| </tr> | | </tr> |
Line 506: |
Line 511: |
| <td>integer [0..65535]; default: <b>none</b></td> | | <td>integer [0..65535]; default: <b>none</b></td> |
| <td>Register/Coil values to be written (multiple values must be separated by space character).</td> | | <td>Register/Coil values to be written (multiple values must be separated by space character).</td> |
− | </tr>{{#switch:{{{series}}}|TCR1|TRB2|TRB2M=|#default= | + | </tr>{{#switch:{{{series}}}|TCR1|OTD140|OTD160|OTD500|RUT14X=|#default= |
| <tr> | | <tr> |
| <td><span style="color: green;">Trigger output: Output</span></td>{{#switch:{{{series}}} | | <td><span style="color: green;">Trigger output: Output</span></td>{{#switch:{{{series}}} |
− | | RUTX|RUT2 =<td>4PIN output; default: <b>4PIN output</b></td> | + | | RUTX|RUT2|RUT2M =<td>Output (4); default: <b>Output (4)</b></td> |
− | | TRB1|RUT3 =<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (3)</b></td> | + | | TRB1={{#ifeq:{{{name}}}|TRB141|<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4) {{!}} Relay (3,4,5) {{!}} Latching Relay (11,12,13); default: <b>Configurable Input/Output (3)</b></td>|<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (3)</b></td>}}|RUT30X|RUT301|RUT36X|RUT361|TRB5 =<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (3)</b></td> |
− | | RUT9 =<td>Open collector output {{!}} Relay output {{!}} 4PIN output; default: <b>Open collector output</b></td>}} | + | | TRB2|TRB2M =<td>Configurable Input/Output (2) {{!}} Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (2)</b></td> |
| + | | RUT9|RUT9M =<td>Output (4) {{!}} Isolated Output (3,4,8) {{!}} Relay (5,10); default: <b>Output (4)</b></td>}} |
| <td>Selects which output will be triggered.</td> | | <td>Selects which output will be triggered.</td> |
| </tr> | | </tr> |
Line 580: |
Line 586: |
| Notice the Global section config. It is used to outright turn the service off or on if any active configurations are present. | | Notice the Global section config. It is used to outright turn the service off or on if any active configurations are present. |
| | | |
− | [[File:File:Networking rutos manual modbus modbus serial client global button v1.png|border|class=tlt-border]] | + | [[File:Networking rutos manual modbus modbus serial client global button v1.png|border|class=tlt-border]] |
| | | |
| Clicking the Cog icon opens a modal window. The global configuration slider can be set and it's state saved. | | Clicking the Cog icon opens a modal window. The global configuration slider can be set and it's state saved. |
Line 762: |
Line 768: |
| <tr> | | <tr> |
| <td>Data type</td> | | <td>Data type</td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool {{!}} PDU; default: <b>16bit INT, high byte first</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool {{!}} PDU; default: <b>16bit INT, high byte first</b></td> |
| <td>Defines how read data will be stored.</td> | | <td>Defines how read data will be stored.</td> |
| </tr> | | </tr> |
Line 836: |
Line 842: |
| <tr> | | <tr> |
| <td>Compared condition data type</td> | | <td>Compared condition data type</td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> |
| <td>Select data type that will be used for checking conditions.</td> | | <td>Select data type that will be used for checking conditions.</td> |
| </tr> | | </tr> |
Line 871: |
Line 877: |
| <tr> | | <tr> |
| <td>Action</td> | | <td>Action</td> |
− | <td>{{#ifeq:{{{mobile}}}|1|SMS {{!}}|}} MODBUS Write Request{{#switch:{{{series}}}|TCR1|TRB2|TRB2M=|#default= {{!}} Trigger output}}; default: <b>MODBUS Write Request</b></td> | + | <td>{{#ifeq:{{{mobile}}}|1|SMS {{!}}|}} MODBUS Write Request{{#switch:{{{series}}}|TCR1|OTD140|OTD160|OTD500|RUT14X=|#default= {{!}} <span style="color: green;">Trigger output</span>}}; default: <b>MODBUS Write Request</b></td> |
| <td>Action that will be taken if the condition is met. Possible actions: | | <td>Action that will be taken if the condition is met. Possible actions: |
| <ul>{{#ifeq: {{{mobile}}} | 1 | | | <ul>{{#ifeq: {{{mobile}}} | 1 | |
| <li><b>SMS</b> - sends and SMS message to a specified recipient(s).</li>|}} | | <li><b>SMS</b> - sends and SMS message to a specified recipient(s).</li>|}} |
| <li><b>Modbus Request</b> - sends a Modbus Write request to a specified server.</li> | | <li><b>Modbus Request</b> - sends a Modbus Write request to a specified server.</li> |
− | {{#switch:{{{series}}}|TCR1|TRB2|TRB2M|#default=<li><b>Trigger output</b> - changes state of selected I/O output pin.</li>}} | + | {{#switch:{{{series}}}|TCR1|OTD140|OTD160|OTD500|RUT14X=|#default=<li><b>Trigger output</b> - changes state of selected I/O output pin.</li>}} |
| </ul> | | </ul> |
| </td> | | </td> |
Line 907: |
Line 913: |
| <tr> | | <tr> |
| <td><span style="color: purple;">MODBUS Write Request: Executed action data type</span></td> | | <td><span style="color: purple;">MODBUS Write Request: Executed action data type</span></td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UNIT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>Bool</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UNIT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>Bool</b></td> |
| <td>Select data type that will be used for executing action.</td> | | <td>Select data type that will be used for executing action.</td> |
| </tr> | | </tr> |
Line 919: |
Line 925: |
| <td>integer [0..65535]; default: <b>none</b></td> | | <td>integer [0..65535]; default: <b>none</b></td> |
| <td>Register/Coil values to be written (multiple values must be separated by space character).</td> | | <td>Register/Coil values to be written (multiple values must be separated by space character).</td> |
− | </tr>{{#switch:{{{series}}}|TCR1|TRB2|TRB2M=|#default= | + | </tr>{{#switch:{{{series}}}|TCR1|OTD140|OTD160|OTD500|RUT14X=|#default= |
| <tr> | | <tr> |
| <td><span style="color: green;">Trigger output: Output</span></td>{{#switch:{{{series}}} | | <td><span style="color: green;">Trigger output: Output</span></td>{{#switch:{{{series}}} |
− | | RUTX|RUT2 =<td>4PIN output; default: <b>4PIN output</b></td> | + | | RUTX|RUT2|RUT2M =<td>Output (4); default: <b>Output (4)</b></td> |
− | | TRB1|RUT3 =<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (3)</b></td> | + | | TRB1={{#ifeq:{{{name}}}|TRB141|<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4) {{!}} Relay (3,4,5) {{!}} Latching Relay (11,12,13); default: <b>Configurable Input/Output (3)</b></td>|<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (3)</b></td>}}|RUT30X|RUT301|RUT36X|RUT361|TRB5 =<td>Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (3)</b></td> |
− | | RUT9 =<td>Open collector output {{!}} Relay output {{!}} 4PIN output; default: <b>Open collector output</b></td>}} | + | | TRB2|TRB2M =<td>Configurable Input/Output (2) {{!}} Configurable Input/Output (3) {{!}} Configurable Input/Output (4); default: <b>Configurable Input/Output (2)</b></td> |
| + | | RUT9|RUT9M =<td>Output (4) {{!}} Isolated Output (3,4,8) {{!}} Relay (5,10); default: <b>Output (4)</b></td>}} |
| <td>Selects which output will be triggered.</td> | | <td>Selects which output will be triggered.</td> |
| </tr> | | </tr> |
Line 1,063: |
Line 1,070: |
| <tr> | | <tr> |
| <td>Data type</td> | | <td>Data type</td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> |
| <td>Defines how read data will be stored.</td> | | <td>Defines how read data will be stored.</td> |
| </tr> | | </tr> |
Line 1,137: |
Line 1,144: |
| <tr> | | <tr> |
| <td>Compared condition data type</td> | | <td>Compared condition data type</td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UINT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>16bit INT, high byte first</b></td> |
| <td>Select data type that will be used for checking conditions.</td> | | <td>Select data type that will be used for checking conditions.</td> |
| </tr> | | </tr> |
Line 1,207: |
Line 1,214: |
| <tr> | | <tr> |
| <td><span style="color: purple;">MODBUS Write Request: Executed action data type</span></td> | | <td><span style="color: purple;">MODBUS Write Request: Executed action data type</span></td> |
− | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UNIT (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>Bool</b></td> | + | <td>8bit INT {{!}} 8bit UINT {{!}} 16bit INT, high byte first {{!}} 16bit INT, low byte first {{!}} 16bit UINT, high byte first {{!}} 16bit UINT, low byte first {{!}} 32bit float (various Byte order) {{!}} 32bit INT (various Byte order) {{!}} 32bit UNIT (various Byte order) {{!}} 64bit INT (various Byte order) {{!}} 64bit UINT (various Byte order) {{!}} 64bit float (various Byte order) {{!}} ASCII {{!}} Hex {{!}} Bool; default: <b>Bool</b></td> |
| <td>Select data type that will be used for executing action.</td> | | <td>Select data type that will be used for executing action.</td> |
| </tr> | | </tr> |