Jump to content

Template:Networking rut manual modbus: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 148: Line 148:
         <td>Function</td>
         <td>Function</td>
         <td>1 | 2 | 3 | 4 | 5 | 6 | 15 | 16; Default: <b>3</b></td>
         <td>1 | 2 | 3 | 4 | 5 | 6 | 15 | 16; Default: <b>3</b></td>
         <td>Functions:<br>
         <td>A function code specifies the type of register being addressed by a Modbus request. The codes represent these functions:<br>
             <ul>
             <ul>
                 <li><b>1</b> - Read Coil Status</li>
                 <li><b>1</b> - read Coil Status</li>
                 <li><b>2</b> - Read Input Status</li>
                 <li><b>2</b> - read Input Status</li>
                 <li><b>3</b> - Read Holding Registers</li>
                 <li><b>3</b> - read Holding Registers</li>
                 <li><b>4</b> - Read Input Registers</li>
                 <li><b>4</b> - read Input Registers</li>
                 <li><b>5</b> - Force Single Coil</li>
                 <li><b>5</b> - force Single Coil</li>
                 <li><b>6</b> - Preset Single Register</li>
                 <li><b>6</b> - preset Single Register</li>
                 <li><b>15</b> - Force Multiple Coils</li>
                 <li><b>15</b> - force Multiple Coils</li>
                 <li><b>16</b> - Force Multiple Registers</li>
                 <li><b>16</b> - force Multiple Registers</li>
             </ul>
             </ul>
         </td>
         </td>
Line 195: Line 195:
===Alarm configuration===
===Alarm configuration===
----
----
<b>Alarms</b> are way of  
<b>Alarms</b> are way of setting up automated actions when some Modbus values meet user specified conditions. The figure below is an example of the <b>Alarm configuration</b> page and the table below provides information on fields that it contains:


[[File:{{{file_alarms}}}]]
[[File:{{{file_alarms}}}]]
Line 213: Line 213:
         <td>Function code</td>
         <td>Function code</td>
         <td>Read Coil Status (1) | Read Input Status (2) | Read Holding Registers (3) | Read Input Registers (4); Default: <b>Read Coil Status (1)</b></td>
         <td>Read Coil Status (1) | Read Input Status (2) | Read Holding Registers (3) | Read Input Registers (4); Default: <b>Read Coil Status (1)</b></td>
         <td></td>
         <td>Modbus function used in Modbus request</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Register</td>
         <td>Register</td>
         <td>integer [0..65535]; Default: <b>none</b></td>
         <td>integer [0..65535]; Default: <b>none</b></td>
         <td></td>
         <td>Number of the modbus coil/input/holding register/input register that will be read</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Condition</td>
         <td>Condition</td>
         <td>More than | Less than | Equal to | Not Equal to; Default: <b>Equal to</b></td>
         <td>More than | Less than | Equal to | Not Equal to; Default: <b>Equal to</b></td>
         <td></td>
         <td>When a value is obtained it will be compared against the value specified in the following field. The comparisson will be made in acordance with the condition specified in this field</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Value</td>
         <td>Value</td>
         <td>various; Default: <b>none</b></td>
         <td>various; Default: <b>none</b></td>
         <td></td>
         <td>The value against which the read data will be compared</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td>Action</td>
         <td>Action</td>
         <td>SMS | Trigger output | Modbus Request; Default: <b>SMS</b></td>
         <td>SMS | Trigger output | Modbus Request; Default: <b>SMS</b></td>
         <td></td>
         <td>Action that will be taken if the condition is met. Possible actions:
            <ul>
                <li><b>SMS</b> - sends and SMS message to a specified recipient(s)</li>
                <li><b>Trigger output</b> - changes the state of a specified output(s)</li>
                <li><b>Modbus Request</b> - sends a Modbus request to a specified slave</li>
            </ul>
        </td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 243: Line 249:
         <td><span style="color: #0054a6;">SMS: Phone number</span></td>
         <td><span style="color: #0054a6;">SMS: Phone number</span></td>
         <td>phone number; Default: <b>none</b></td>
         <td>phone number; Default: <b>none</b></td>
         <td>recipient's phone number</td>
         <td>Recipient's phone number</td>
     </tr>
     </tr>
     <tr>
     <tr>
         <td><span style="color: red;">Trigger output: Output</span></td>
         <td><span style="color: red;">Trigger output: Output</span></td>
         <td>Open collector output | Relay output | Both; Default: <b>Open collector output</b></td>
         <td>Open collector output | Relay output | Both; Default: <b>Open collector output</b></td>
         <td>Which output will be triggered</td>
         <td>Which output(s) will be triggered</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 258: Line 264:
         <td><span style="color: purple;">Modbus Request: IP address</span></td>
         <td><span style="color: purple;">Modbus Request: IP address</span></td>
         <td>ip | host; Default: <b>none</b></td>
         <td>ip | host; Default: <b>none</b></td>
         <td>Modbus slave's address</td>
         <td>Modbus slave's IP address</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 278: Line 284:
         <td><span style="color: purple;">Modbus Request: Modbus function</span></td>
         <td><span style="color: purple;">Modbus Request: Modbus function</span></td>
         <td>Read Coil Status (1) | Read Input Status (2) | Read Holding Registers (3) | Read Input Registers (4) | Force Single Coil (5) | Preset Single Register (6) | Force Multiple Coils (15) | Force Multiple Registers (16); Default: <b>Force Single Coil (5)</b></td>
         <td>Read Coil Status (1) | Read Input Status (2) | Read Holding Registers (3) | Read Input Registers (4) | Force Single Coil (5) | Preset Single Register (6) | Force Multiple Coils (15) | Force Multiple Registers (16); Default: <b>Force Single Coil (5)</b></td>
         <td></td>
         <td>A function code specifies the type of register being addressed by a Modbus request</td>
     </tr>
     </tr>
     <tr>
     <tr>
Line 288: Line 294:
         <td><span style="color: purple;">Modbus Request: Number of registers</span></td>
         <td><span style="color: purple;">Modbus Request: Number of registers</span></td>
         <td>integer [0..65535]; Default: <b>none</b></td>
         <td>integer [0..65535]; Default: <b>none</b></td>
         <td></td>
         <td>The number of registers that will be read from the first register</td>
     </tr>
     </tr>
</table>
</table>