Jump to content

Template:Networking rutos manual modbus modbus tcp set parameters table: Difference between revisions

No edit summary
 
(20 intermediate revisions by 3 users not shown)
Line 5: Line 5:
<table class="nd-othertables">
<table class="nd-othertables">
     <tr>
     <tr>
         <th width="350">value to set</th>
         <th width="300">value to set</th>
       <th width="180">register address</th>
       <th width="140">register address</th>
      <th width="140">register number</th>
       <th width="150">register value</th>
       <th width="150">register value</th>
       <th width="466">description</th>
       <th width="466">description</th>
     </tr>
     </tr>
        <tr>
      <td>Hostname</td>
      <td>7</td>
      <td>8</td>
      <td>Hostname (in decimal form)</td>
        <td>Changes hostname</td>
    </tr>
    <tr>
      <td>Device name</td>
      <td>71</td>
      <td>72</td>
      <td>Device name (in decimal form)</td>
        <td>Changes device name</td>
    </tr>
{{#switch:{{{name}}}
|RUT955|RUT956=
      <tr>
        <td>Galvanically isolated open collector output status</td>
        <td>201</td>
      <td>202</td>
        <td>1 {{!}} 0</td>
        <td>Toggles DOUT1 ON or OFF</td>
      </tr>
      <tr>
        <td>Relay output status</td>
        <td>202</td>
      <td>203</td>
        <td>1 {{!}} 0</td>
        <td>Toggles DOUT2 ON or OFF</td>
      </tr>
}}
{{#ifeq:{{{wifi}}}|1|
{{#ifeq:{{{wifi}}}|1|
     <tr>
     <tr>
       <td>Switch WiFi ON/OFF</td>
       <td>Switch WiFi ON/OFF</td>
       <td>203</td>
       <td>203</td>
      <td>204</td>
       <td>1 {{!}} 0</td>
       <td>1 {{!}} 0</td>
         <td>Turns WiFi ON or OFF</td>
         <td>Turns WiFi ON or OFF</td>
     </tr>
     </tr>
}}
|}}
{{#ifeq:{{{mobile}}}|1|
{{#ifeq:{{{mobile}}}|1|
     <tr>
     <tr>
      <td>Switch mobile data connection (ON/OFF<span class="asterisk">*</span>)</td>
      <td>Switch mobile data connection (ON/OFF<span class="asterisk">*</span>)</td>
      <td>204</td>
      <td>204</td>
      <td>1 {{!}} 0</td>
      <td>205</td>
        <td>Turns mobile data connection ON or OFF</td>
      <td>1 {{!}} 0</td>
      <td>Turns mobile data connection ON or OFF</td>
     </tr>
     </tr>
{{#ifeq:{{{dualsim}}}|1|
  {{#ifeq:{{{dualsim}}}|1|
     <tr>
     <tr>
      <td>Switch SIM card</td>
      <td>Switch SIM card</td>
      <td>205</td>
      <td>205</td>
      <td>1 {{!}} 2 {{!}} 0</td>
      <td>206</td>
        <td>Changes the active SIM card slot
      <td>1 {{!}} 2 {{!}} 0</td>
            <ul>
      <td>Changes the active SIM card slot
                <li>1 - switch to SIM1</li>
          <ul>
                <li>2 - switch to SIM2</li>
            <li>1 - switch to SIM1</li>
        <li>0 - switch from the the SIM card opposite of the one currently in use (SIM1 → SIM2 or SIM2 → SIM1</li>
            <li>2 - switch to SIM2</li>
            </ul>
        <li>0 - switch from the the SIM card opposite of the one currently in use (SIM1 → SIM2 or SIM2 → SIM1)</li>
    </td>
          </ul>
      </td>
     </tr>
     </tr>
  |}}
|}}
|}}
}}
     <tr>
     <tr>
    <td>Reboot</td>
      <td>Reboot</td>
         <td>206</td>
         <td>206</td>
      <td>207</td>
         <td>1</td>
         <td>1</td>
         <td>Reboots the router</td>
         <td>Reboots the router</td>
Line 50: Line 86:
     <td>Change APN</td>
     <td>Change APN</td>
         <td>207</td>
         <td>207</td>
      <td>208</td>
         <td>APN code</td>
         <td>APN code</td>
         <td>Changes APN. <br> The number of input registers may vary depending on the length of the APN, but the very first byte of the set APN command denotes the number of the SIM card for which to set the APN. This byte should be set to:
         <td>Changes APN. <br> The number of input registers may vary depending on the length of the APN, but the very first byte of the set APN command denotes the number of the SIM card for which to set the APN. This byte should be set to:
Line 55: Line 92:
                 <li>1 - to set APN for SIM1</li>
                 <li>1 - to set APN for SIM1</li>
                 <li>2 - to set APN for SIM2</li>
                 <li>2 - to set APN for SIM2</li>
    </ul>
            </ul>
         </td>
         </td>
     </tr>
     </tr>
}}
|}}
{{#ifeq:{{{series}}}|TRB2|
  <tr>
      <td> Switch PIN 3 state </td>
      <td>324</td>
      <td>325</td>
      <td>1{{!}}0</td>
      <td>Toggles PIN 3 ON or OFF</td>
  </tr>
|}}
{{#switch:{{{series}}}
{{#switch:{{{series}}}
|RUTX= {{#ifeq:{{{name}}}| RUTXR1||
|RUTX|RUT2|RUT2M|RUT9|RUT9M|TRB2= {{#ifeq:{{{name}}}|RUTXR1||
    <tr>
  <tr>
       <td> Switch PIN 4 state </td>
       <td> Switch PIN 4 state </td>
       <td>325</td>
       <td>325</td>
      <td>326</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Toggles PIN 4 ON or OFF, when output is selected</td>
       <td>Toggles PIN 4 ON or OFF</td>
   </tr>
   </tr>
}}
}}
|
| TCR1 =
| #default =
     <tr>
     <tr>
       <td> Switch PIN 3 state </td>
       <td> Switch PIN 3 state </td>
       <td>324</td>
       <td>324</td>
      <td>325</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Toggles PIN 3 ON or OFF, when output is selected</td>
       <td>Toggles PIN 3 ON or OFF, when output is selected</td>
Line 78: Line 127:
       <td> Switch PIN 4 state </td>
       <td> Switch PIN 4 state </td>
       <td>325</td>
       <td>325</td>
      <td>326</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Toggles PIN 4 ON or OFF, when output is selected</td>
       <td>Toggles PIN 4 ON or OFF, when output is selected</td>
  </tr>
    <tr>
      <td> Switch PIN 3 direction </td>
      <td>326</td>
      <td>327</td>
      <td>1{{!}}0</td>
      <td>Toggles PIN 3 direction between INPUT (0) or OUTPUT (1)</td>
  </tr>
    <tr>
      <td> Switch PIN 4 direction </td>
      <td>327</td>
      <td>328</td>
      <td>1{{!}}0</td>
      <td>Toggles PIN 4 direction between INPUT (0) or OUTPUT (1)</td>
   </tr>
   </tr>
}}
}}
{{#ifeq:{{{series}}}|TRB2XX|
{{#ifeq:{{{series}}}|TRB2|
      <tr>
      <td> Switch PIN 3 direction </td>
      <td>326</td>
      <td>327</td>
      <td>1{{!}}0</td>
      <td>Toggles PIN 3 direction between INPUT (0) or OUTPUT (1)</td>
  </tr>
     <tr>
     <tr>
       <td> Switch PIN2 state </td>
       <td> Switch PIN 4 direction </td>
      <td>327</td>
      <td>328</td>
      <td>1{{!}}0</td>
      <td>Toggles PIN 4 direction between INPUT (0) or OUTPUT (1)</td>
  </tr>
  <tr>
      <td> Switch PIN 2 state </td>
       <td>336</td>
       <td>336</td>
      <td>337</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Toggles PIN 2 ON or OFF, when output is selected</td>
       <td>Toggles PIN 2 ON or OFF</td>
   </tr>
   </tr>
}}
|}}
 
{{#switch:{{{name}}}|TRB141=
{{#ifeq:{{{name}}}|TRB141|
     <tr>
     <tr>
       <td> Switch relay state </td>
       <td> Switch relay state </td>
       <td>337</td>
       <td>337</td>
      <td>338</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Turns Relay ON or OFF</td>
       <td>Turns Relay ON or OFF</td>
Line 101: Line 180:
       <td> Switch latching relay state </td>
       <td> Switch latching relay state </td>
       <td>338</td>
       <td>338</td>
      <td>339</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Turns latching relay ON or OFF</td>
       <td>Turns latching relay ON or OFF</td>
Line 107: Line 187:
       <td>Switch PIN 1 (Dry/Wet) state</td>
       <td>Switch PIN 1 (Dry/Wet) state</td>
       <td>343</td>
       <td>343</td>
      <td>344</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Switches PIN 1 state to 0 (dry) / 1 (wet)</td>
       <td>Switches PIN 1 state to 0 (dry) / 1 (wet)</td>
Line 113: Line 194:
       <td>Switch PIN 2(Dry/Wet) state</td>
       <td>Switch PIN 2(Dry/Wet) state</td>
       <td>344</td>
       <td>344</td>
      <td>345</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Switches PIN 2 state to 0 (dry) / 1 (wet)</td>
       <td>Switches PIN 2 state to 0 (dry) / 1 (wet)</td>
   </tr>
   </tr>
     <tr>
     <tr>
       <td> Switch ACL ON/OFF </td>
       <td> Switch ACL activity </td>
      <td>345</td>
      <td>346</td>
      <td>1{{!}}0</td>
      <td>Turns ACL activity ON or OFF</td>
  </tr>
|RUT955|RUT956 =
    <tr>
      <td> Switch ACL activity </td>
       <td>345</td>
       <td>345</td>
      <td>346</td>
      <td>1{{!}}0</td>
      <td>Turns ACL activity ON or OFF</td>
    </tr>
|}}
{{#ifeq:{{{wifi}}}|1|
    <tr>
      <td>Switch 2.4GHz WiFi ON/OFF</td>
      <td>390</td>
      <td>391</td>
      <td>1 {{!}} 0</td>
        <td>Turns 2.4GHz WiFi ON or OFF</td>
    </tr>
  {{#switch:{{{series}}}
  |RUTX|TCR1=
    <tr>
      <td>Switch 5GHz WiFi ON/OFF</td>
      <td>391</td>
      <td>392</td>
      <td>1 {{!}} 0</td>
        <td>Turns 5GHz WiFi ON or OFF</td>
    </tr>
  }}
|}}
    <tr>
      <td> Change LAN IP </td>
      <td>394</td>
      <td>395</td>
      <td>IPv4 (in decimal form)</td>
      <td>Changes device LAN IP</td>
  </tr>
{{#ifeq:{{{mobile}}}|1|
    <tr>
      <td> Send SMS </td>
      <td>396</td>
      <td>397</td>
       <td>1{{!}}0</td>
       <td>1{{!}}0</td>
       <td>Turns ACL functionality ON or OFF</td>
       <td>Sends an SMS with content defined in Add SMS (397) register</td>
  </tr>
    <tr>
      <td> Add SMS </td>
      <td>397</td>
      <td>398</td>
      <td>Message (in decimal form)</td>
      <td>Define SMS content which will be sent using Send SMS (396) register.<br>The register array is split into two parts that represent the recipient's "phone number" (first 10 registers) and the "SMS message contents" (remaining 80 registers).</td>
   </tr>
   </tr>
}}
|}}
 
</table>
</table>