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

From Teltonika Networks Wiki
m (RUTXR1 removed Input/Output.)
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
===Get Parameters===
 
===Get Parameters===
 
----
 
----
Modbus parameters are held within <b>registers</b>. 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).  
+
Modbus parameters are held within <b>registers</b>. 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:
{{#ifeq:{{{name}}}|RUTX12|<br><br>To get data from the second modem, you need to execute this command:
 
 
 
$  modbus write -D {{#ifeq:{{{series}}}|TRB1|192.168.2.1|192.168.1.1}} %MW328  12589 12590 12800
 
 
 
This command sets it to primary modem:
 
 
 
$ modbus write -D {{#ifeq:{{{series}}}|TRB1|192.168.2.1|192.168.1.1}} %MW328  13101 12544
 
 
 
}}
 
The register numbers and corresponding system values are described in the table below:
 
 
<br> <br>
 
<br> <br>
 
<table class="nd-othertables">
 
<table class="nd-othertables">
Line 36: 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 43: Line 34:
 
         <td>32 bit integer</td>
 
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
 +
}}
 
}}
 
}}
 
     <tr>
 
     <tr>
Line 68: Line 60:
 
     </tr>
 
     </tr>
 
{{#switch:{{{name}}}
 
{{#switch:{{{name}}}
|TRB141
+
|TRB141=
|TRB142
+
|TRB142=
 
|TRB145=
 
|TRB145=
|#default=
+
|
 
     <tr>
 
     <tr>
 
       <td>LAN MAC address</td>
 
       <td>LAN MAC address</td>
Line 88: Line 80:
 
     </tr>
 
     </tr>
 
{{#ifeq:{{{mobile}}}| 1 |
 
{{#ifeq:{{{mobile}}}| 1 |
  {{#ifeq:{{{dualsim}}}|1|
+
{{#ifeq:{{{dualsim}}}| 1|
 
     <tr>
 
     <tr>
 
       <td>Currently active SIM card slot</td>
 
       <td>Currently active SIM card slot</td>
Line 96: Line 88:
 
         <td>Text</td>
 
         <td>Text</td>
 
     </tr>
 
     </tr>
  |}}
+
}}
 
     <tr>
 
     <tr>
 
       <td>Network registration info</td>
 
       <td>Network registration info</td>
Line 112: Line 104:
 
     </tr>
 
     </tr>
 
}}
 
}}
{{#switch:{{{name}}}
 
|RUT955|RUT956=
 
    <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 134: Line 109:
 
         <td>140</td>
 
         <td>140</td>
 
       <td>2</td>
 
       <td>2</td>
         <td>8 bit unsigned integer</td>
+
         <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 
{{#ifeq:{{{analog}}}| 1|
 
{{#ifeq:{{{analog}}}| 1|
 
     <tr>
 
     <tr>
       <td>Analog input (PIN {{#switch:{{{series}}}|TRB2=11|RUT9|RUT9M=9|TRB1=7}}) value</td>
+
       <td>Analog input value</td>
 
       <td>141</td>
 
       <td>141</td>
 
         <td>142</td>   
 
         <td>142</td>   
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit unsigned integer</td>
+
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
 
}}
 
}}
Line 179: Line 154:
 
         <td>180</td>
 
         <td>180</td>
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit float</td>
+
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 186: Line 161:
 
         <td>182</td>
 
         <td>182</td>
 
       <td>2</td>
 
       <td>2</td>
         <td>32 bit unsigned integer</td>
+
         <td>32 bit integer</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
Line 196: Line 171:
 
     </tr>
 
     </tr>
 
}}
 
}}
{{#ifeq:{{{mobile}}}|1|
+
{{#ifeq:{{{mobile}}}| 1|
  {{#ifeq:{{{series}}}|TRB5||
 
 
     <tr>
 
     <tr>
 
       <td>Mobile data received today (SIM1)</td>
 
       <td>Mobile data received today (SIM1)</td>
Line 213: Line 187:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td>Mobile data received this week (SIM1)</td>
+
       <td>Mobile data received this week (SIM1)</td>
 
       <td>189</td>
 
       <td>189</td>
 
       <td>190</td>
 
       <td>190</td>
Line 220: Line 194:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td>Mobile data sent this week (SIM1)</td>
+
       <td>Mobile data sent this week (SIM1)</td>
 
       <td>191</td>
 
       <td>191</td>
 
       <td>192</td>
 
       <td>192</td>
Line 227: Line 201:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td>Mobile data received this month (SIM1)</td>
+
       <td>Mobile data received this month (SIM1)</td>
 
       <td>193</td>
 
       <td>193</td>
 
       <td>194</td>
 
       <td>194</td>
Line 234: Line 208:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td>Mobile data sent this month (SIM1)</td>
+
       <td>Mobile data sent this month (SIM1)</td>
 
       <td>195</td>
 
       <td>195</td>
 
       <td>196</td>
 
       <td>196</td>
Line 241: Line 215:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Mobile data received last 24h (SIM1)</td>
+
         <td>Mobile data received last 24h (SIM1)</td>
 
         <td>197</td>
 
         <td>197</td>
 
         <td>198</td>
 
         <td>198</td>
Line 248: Line 222:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Mobile data sent last 24h (SIM1)</td>
+
         <td>Mobile data sent last 24h (SIM1)</td>
 
         <td>199</td>
 
         <td>199</td>
 
         <td>200</td>
 
         <td>200</td>
Line 254: Line 228:
 
         <td>32 bit unsigned integer</td>
 
         <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
  }}
+
{{#ifeq:{{{dualsim}}}| 1|
|}}
 
{{#switch:{{{name}}}|RUT955|RUT956=
 
      <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:{{{mobile}}}|1|
 
  {{#ifeq:{{{dualsim}}}|1|
 
 
       <tr>
 
       <tr>
 
         <td>Active SIM card</td>
 
         <td>Active SIM card</td>
Line 279: Line 234:
 
         <td>206</td>
 
         <td>206</td>
 
         <td>1</td>
 
         <td>1</td>
         <td>16 bit unsigned integer</td>
+
         <td>32 bit unsigned integer</td>
 
       </tr>
 
       </tr>
  |}}
+
}}
  {{#ifeq:{{{series}}}|TRB5||
 
 
       <tr>
 
       <tr>
 
         <td>Mobile data received last week (SIM1)</td>
 
         <td>Mobile data received last week (SIM1)</td>
Line 311: Line 265:
 
         <td>32 bit unsigned integer</td>
 
         <td>32 bit unsigned integer</td>
 
       </tr>
 
       </tr>
  }}
+
{{#ifeq:{{{series}}}|TRB1| |
  {{#ifeq:{{{name}}}|RUTX12| |
 
    {{#switch:{{{series}}}
 
    |TCR1|TRB1|TRB5|RUT36X|RUT2|RUT2M=
 
    | #default =
 
 
       <tr>
 
       <tr>
 
           <td>Mobile data received today (SIM2)</td>
 
           <td>Mobile data received today (SIM2)</td>
Line 331: Line 281:
 
       </tr>
 
       </tr>
 
       <tr>
 
       <tr>
         <td>Mobile data received this week (SIM2)</td>
+
         <td>Mobile data received this week (SIM2)</td>
 
         <td>304</td>
 
         <td>304</td>
 
         <td>305</td>
 
         <td>305</td>
Line 338: Line 288:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Mobile data sent this week (SIM2)</td>
+
         <td>Mobile data sent this week (SIM2)</td>
 
         <td>306</td>
 
         <td>306</td>
 
         <td>307</td>
 
         <td>307</td>
Line 345: Line 295:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
         <td>Mobile data received this month (SIM2)</td>
+
         <td>Mobile data received this month (SIM2)</td>
 
         <td>308</td>
 
         <td>308</td>
 
         <td>309</td>
 
         <td>309</td>
Line 400: Line 350:
 
       <td>32 bit unsigned integer</td>
 
       <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
    }}
+
}}
  }}
 
 
}}
 
}}
 
{{#switch:{{{name}}}
 
{{#switch:{{{name}}}
|TCR100|RUTXR1=
+
|RUTXR1=
|TRB245|TRB255=
+
|RUT360=
 +
|TRB255=
 
     <tr>
 
     <tr>
 
       <td>PIN 3 status</td>
 
       <td>PIN 3 status</td>
Line 420: Line 370:
 
       <td>16 bit unsigned integer</td>
 
       <td>16 bit unsigned integer</td>
 
     </tr>
 
     </tr>
|TRB140|TRB141|TRB142|TRB143|TRB145|RUT300|RUT360|TRB500=
 
 
     <tr>
 
     <tr>
       <td>PIN 3 status (4 PIN connector)</td>
+
      <td>PIN 2 status</td>
 +
      <td>336</td>
 +
      <td>337</td>
 +
      <td>1</td>
 +
      <td>16 bit unsigned integer</td>
 +
    </tr>
 +
|TRB245=
 +
    <tr>
 +
       <td>PIN 3 status</td>
 
       <td>324</td>
 
       <td>324</td>
 
       <td>325</td>
 
       <td>325</td>
Line 429: Line 386:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td>PIN 4 status (4 PIN connector)</td>
+
       <td>PIN 4 status</td>
 
       <td>325</td>
 
       <td>325</td>
 
       <td>326</td>
 
       <td>326</td>
 
       <td>1</td>
 
       <td>1</td>
 
       <td>16 bit unsigned integer</td>
 
       <td>16 bit unsigned integer</td>
  </tr>
+
    </tr>
 +
    <tr>
 +
      <td>PIN 2 status</td>
 +
      <td>336</td>
 +
      <td>337</td>
 +
      <td>1</td>
 +
      <td>16 bit unsigned integer</td>
 +
    </tr>
 
|
 
|
 
     <tr>
 
     <tr>
       <td>Digital non-isolated input {{#ifeq:{{{name}}}|TRB141|(4 PIN connector)|}}</td>
+
       <td>Digital non-isolated input (4 PIN connector)</td>
 
       <td>324</td>
 
       <td>324</td>
 
       <td>325</td>
 
       <td>325</td>
 
       <td>1</td>
 
       <td>1</td>
       <td>16 bit unsigned integer</td>
+
       <td>32 bit unsigned integer</td>
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td>Digital open collector output {{#ifeq:{{{name}}}|TRB141|(4 PIN connector)|}}</td>
+
       <td>Digital open collector output (4 PIN connector)</td>
 
       <td>325</td>
 
       <td>325</td>
 
       <td>326</td>
 
       <td>326</td>
 
       <td>1</td>
 
       <td>1</td>
       <td>16 bit unsigned integer</td>
+
       <td>32 bit unsigned integer</td>
    </tr>
+
</tr>
 
}}
 
}}
 
{{#switch:{{{series}}}
 
{{#switch:{{{series}}}
|TCR1|RUTX|TRB2|RUT9|RUT9M|RUT2|RUT2M=
+
|RUTX=
 +
|TRB2XX=
 +
|RUT36X=
 
|
 
|
 
     <tr>
 
     <tr>
       <td> PIN 3 direction {{#ifeq:{{{name}}}|TRB141|(4 PIN connector)|}}</td>
+
       <td> PIN 3 direction {{#ifeq:{{{series}}}|TRB1|(4 PIN connector)}}</td>
 
       <td>326</td>
 
       <td>326</td>
 
       <td>327</td>
 
       <td>327</td>
Line 462: Line 428:
 
     </tr>
 
     </tr>
 
     <tr>
 
     <tr>
       <td> PIN 4 direction {{#ifeq:{{{name}}}|TRB141|(4 PIN connector)|}}</td>
+
       <td> PIN 4 direction {{#ifeq:{{{series}}}|TRB1|(4 PIN connector)}} </td>
 
       <td>327</td>
 
       <td>327</td>
 
       <td>328</td>
 
       <td>328</td>
Line 469: Line 435:
 
   </tr>
 
   </tr>
 
}}
 
}}
{{#ifeq:{{{mobile}}}| 1 |
+
{{#ifeq:{{{mobile}}}|1|
 
     <tr>
 
     <tr>
 
       <td> Modem ID </td>
 
       <td> Modem ID </td>
Line 477: Line 443:
 
       <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>
 
 
}}
 
}}
{{#switch:{{{name}}}|TRB141=
+
{{#ifeq:{{{name}}}|TRB141|
 
     <tr>
 
     <tr>
 
       <td> Relay </td>
 
       <td> Relay </td>
Line 541: Line 498:
 
       <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 555: Line 505:
 
       <td>346</td>
 
       <td>346</td>
 
       <td>347</td>
 
       <td>347</td>
      <td>2</td>
 
      <td>32 bit float</td>
 
  </tr>
 
|RUT955|RUT956 =
 
  <tr>
 
      <td> ACL activity </td>
 
      <td>345</td>
 
      <td>346</td>
 
 
       <td>1</td>
 
       <td>1</td>
       <td>16 bit unsigned integer</td>
+
       <td>32 bit integer</td>
  </tr>
 
    <tr>
 
      <td> ACL status </td>
 
      <td>346</td>
 
      <td>347</td>
 
      <td>2</td>
 
      <td>32 bit float</td>
 
 
   </tr>
 
   </tr>
 
}}
 
}}
Line 580: Line 515:
 
       <td>349</td>
 
       <td>349</td>
 
       <td>16</td>
 
       <td>16</td>
      <td>Text</td>
 
  </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>
 
    <tr>
 
      <td> LAN IP </td>
 
      <td>394</td>
 
      <td>395</td>
 
      <td>2</td>
 
      <td>8 bit unsigned integer</td>
 
  </tr>
 
{{#ifeq:{{{mobile}}}|1|
 
    <tr>
 
      <td> Add SMS </td>
 
      <td>397</td>
 
      <td>398</td>
 
      <td>90</td>
 
 
       <td>Text</td>
 
       <td>Text</td>
 
   </tr>
 
   </tr>
 
}}
 
}}
 
</table>
 
</table>

Revision as of 09:39, 21 July 2021

Get Parameters


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 32 bit unsigned integer
Digital non-isolated input (4 PIN connector) 324 325 1 32 bit unsigned integer
Digital open collector output (4 PIN connector) 325 326 1 32 bit unsigned integer
PIN 3 direction 326 327 1 16 bit unsigned integer
PIN 4 direction 327 328 1 16 bit unsigned integer