Difference between revisions of "Template:Networking rutos manual modbus modbus tcp get parameters table"

 
(13 intermediate revisions by one other user not shown)
Line 26: Line 26:
 
         <td>32 bit integer</td>
 
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
{{#ifeq:{{{series}}}|TRB1||
 
 
     <tr>
 
     <tr>
 
       <td>System temperature (in 0.1 °C)</td>
 
       <td>System temperature (in 0.1 °C)</td>
Line 34: Line 33:
 
         <td>32 bit integer</td>
 
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
}}
 
 
}}
 
}}
 
     <tr>
 
     <tr>
Line 104: Line 102:
 
     </tr>
 
     </tr>
 
}}
 
}}
 +
{{#ifeq:{{{name}}}|RUT955|
 +
    <tr>
 +
      <td>Digital input (DIN1) state</td>
 +
      <td>135</td>
 +
        <td>136</td>
 +
      <td>2</td>
 +
        <td>32 bit integer</td>
 +
    </tr>
 +
    <tr>
 +
      <td>Digital galvanically isolated input (DIN2) state</td>
 +
      <td>137</td>
 +
        <td>138</td>
 +
      <td>2</td>
 +
        <td>32 bit integer</td>
 +
    </tr>|}}
 
     <tr>
 
     <tr>
 
       <td>Current WAN IP address</td>
 
       <td>Current WAN IP address</td>
Line 109: Line 122:
 
         <td>140</td>
 
         <td>140</td>
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit unsigned integer</td>
+
         <td>8 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 
{{#ifeq:{{{analog}}}| 1|
 
{{#ifeq:{{{analog}}}| 1|
 
     <tr>
 
     <tr>
       <td>Analog input value</td>
+
       <td>Analog input (PIN {{#switch:{{{series}}}|TRB2=11|RUT9=9|TRB1=7}}) value</td>
 
       <td>141</td>
 
       <td>141</td>
 
         <td>142</td>   
 
         <td>142</td>   
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit integer</td>
+
         <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 
}}
 
}}
Line 154: Line 167:
 
         <td>180</td>
 
         <td>180</td>
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit integer</td>
+
         <td>32 bit float</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 161: Line 174:
 
         <td>182</td>
 
         <td>182</td>
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit integer</td>
+
         <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 228: Line 241:
 
         <td>32 bit unsigned integer</td>
 
         <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 +
{{#ifeq:{{{name}}}|RUT955|
 +
      <tr>
 +
        <td>Galvanically isolated open collector output status</td>
 +
        <td>201</td>
 +
        <td>202</td>
 +
        <td>1</td>
 +
        <td>16 bit unsigned integer</td>
 +
      </tr>
 +
      <tr>
 +
        <td>Relay output status</td>
 +
        <td>202</td>
 +
        <td>203</td>
 +
        <td>1</td>
 +
        <td>16 bit unsigned integer</td>
 +
      </tr>|}}
 
{{#ifeq:{{{dualsim}}}| 1|
 
{{#ifeq:{{{dualsim}}}| 1|
 
       <tr>
 
       <tr>
Line 234: Line 262:
 
         <td>206</td>
 
         <td>206</td>
 
         <td>1</td>
 
         <td>1</td>
         <td>32 bit unsigned integer</td>
+
         <td>16 bit unsigned integer</td>
 
       </tr>
 
       </tr>
 
}}
 
}}
Line 265: Line 293:
 
         <td>32 bit unsigned integer</td>
 
         <td>32 bit unsigned integer</td>
 
       </tr>
 
       </tr>
{{#ifeq:{{{series}}}|TRB1| |
+
{{#ifeq:{{{name}}}|RUTX12| |
 +
{{#switch:{{{series}}}
 +
| TRB1|RUT36X|RUT2=
 +
| #default =
 
       <tr>
 
       <tr>
 
           <td>Mobile data received today (SIM2)</td>
 
           <td>Mobile data received today (SIM2)</td>
Line 350: Line 381:
 
       <td>32 bit unsigned integer</td>
 
       <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 +
}}
 
}}
 
}}
 
}}
 
}}
 
{{#switch:{{{name}}}
 
{{#switch:{{{name}}}
|RUTXR1=
+
|TCR100=
|RUT360=
+
|TRB245|TRB255=
|RUT300=
 
|TRB255=
 
    <tr>
 
      <td>PIN 3 status</td>
 
      <td>324</td>
 
      <td>325</td>
 
      <td>1</td>
 
      <td>16 bit unsigned integer</td>
 
    </tr>
 
    <tr>
 
      <td>PIN 4 status</td>
 
      <td>325</td>
 
      <td>326</td>
 
      <td>1</td>
 
      <td>16 bit unsigned integer</td>
 
    </tr>
 
    <tr>
 
      <td>PIN 2 status</td>
 
      <td>336</td>
 
      <td>337</td>
 
      <td>1</td>
 
      <td>16 bit unsigned integer</td>
 
    </tr>
 
|TRB245=
 
 
     <tr>
 
     <tr>
 
       <td>PIN 3 status</td>
 
       <td>PIN 3 status</td>
Line 393: Line 401:
 
       <td>16 bit unsigned integer</td>
 
       <td>16 bit unsigned integer</td>
 
     </tr>
 
     </tr>
    <tr>
+
|TRB140|TRB141|TRB142|TRB145|RUT300|RUT360=
      <td>PIN 2 status</td>
 
      <td>336</td>
 
      <td>337</td>
 
      <td>1</td>
 
      <td>16 bit unsigned integer</td>
 
    </tr>
 
|TRB140|TRB141|TRB142|TRB145=
 
 
     <tr>
 
     <tr>
 
       <td>PIN 3 status (4 PIN connector)</td>
 
       <td>PIN 3 status (4 PIN connector)</td>
Line 421: Line 422:
 
       <td>325</td>
 
       <td>325</td>
 
       <td>1</td>
 
       <td>1</td>
       <td>32 bit unsigned integer</td>
+
       <td>16 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 428: Line 429:
 
       <td>326</td>
 
       <td>326</td>
 
       <td>1</td>
 
       <td>1</td>
       <td>32 bit unsigned integer</td>
+
       <td>16 bit unsigned integer</td>
 
</tr>
 
</tr>
 
}}
 
}}
 
{{#switch:{{{series}}}
 
{{#switch:{{{series}}}
|RUTX=
+
|TCR1=
|TRB2XX=
+
|RUTX|TRB2|RUT9|RUT2|RUT2M=
|RUT9=
 
 
|
 
|
 
     <tr>
 
     <tr>
Line 451: Line 451:
 
   </tr>
 
   </tr>
 
}}
 
}}
{{#ifeq:{{{mobile}}}|1|
 
 
     <tr>
 
     <tr>
 
       <td> Modem ID </td>
 
       <td> Modem ID </td>
Line 459: Line 458:
 
       <td>Text</td>
 
       <td>Text</td>
 
   </tr>
 
   </tr>
 +
{{#ifeq:{{{series}}}|TRB2|
 +
    <tr>
 +
      <td>PIN 2 status</td>
 +
      <td>336</td>
 +
      <td>337</td>
 +
      <td>1</td>
 +
      <td>16 bit unsigned integer</td>
 +
    </tr>
 
}}
 
}}
 
{{#ifeq:{{{name}}}|TRB141|
 
{{#ifeq:{{{name}}}|TRB141|
Line 514: Line 521:
 
       <td>344</td>
 
       <td>344</td>
 
       <td>345</td>
 
       <td>345</td>
 +
      <td>1</td>
 +
      <td>16 bit unsigned integer</td>
 +
  </tr>
 +
    <tr>
 +
      <td> ACL activity </td>
 +
      <td>345</td>
 +
      <td>346</td>
 
       <td>1</td>
 
       <td>1</td>
 
       <td>16 bit unsigned integer</td>
 
       <td>16 bit unsigned integer</td>
Line 521: Line 535:
 
       <td>346</td>
 
       <td>346</td>
 
       <td>347</td>
 
       <td>347</td>
       <td>1</td>
+
       <td>2</td>
       <td>32 bit integer</td>
+
       <td>32 bit float</td>
 
   </tr>
 
   </tr>
 
}}
 
}}
Line 534: Line 548:
 
   </tr>
 
   </tr>
 
}}
 
}}
 +
    <tr>
 +
      <td> Unix timestamp </td>
 +
      <td>364</td>
 +
      <td>365</td>
 +
      <td>2</td>
 +
      <td>32 bit unsigned integer</td>
 +
  </tr>
 +
    <tr>
 +
      <td> Local ISO time </td>
 +
      <td>366</td>
 +
      <td>367</td>
 +
      <td>12</td>
 +
      <td>Text</td>
 +
  </tr>
 +
    <tr>
 +
      <td> UTC time </td>
 +
      <td>378</td>
 +
      <td>389</td>
 +
      <td>12</td>
 +
      <td>Text</td>
 +
  </tr>
 
</table>
 
</table>

Latest revision as of 12:41, 13 April 2022

Get ParametersEdit


Modbus parameters are held within registers. Each register contains 2 bytes of information. For simplification, the number of registers for storing numbers is 2 (4 bytes), while the number of registers for storing text information is 16 (32 bytes). The register numbers and corresponding system values are described in the table below:

required value register address register number number of registers representation
System uptime 1 2 2 32 bit unsigned integer
System hostname 7 8 16 Text
Router serial number 39 40 16 Text
LAN MAC address 55 56 16 Text
Router name 71 72 16 Text
Current WAN IP address 139 140 2 8 bit unsigned integer
Digital non-isolated input (4 PIN connector) 324 325 1 16 bit unsigned integer
Digital open collector output (4 PIN connector) 325 326 1 16 bit unsigned integer
PIN 3 direction 326 327 1 16 bit unsigned integer
PIN 4 direction 327 328 1 16 bit unsigned integer
Modem ID 328 329 8 Text
Unix timestamp 364 365 2 32 bit unsigned integer
Local ISO time 366 367 12 Text
UTC time 378 389 12 Text