Changes

Line 213: Line 213:  
===Text===
 
===Text===
 
----
 
----
Some values like Hostname, Router name, Network type are represented as text in their original form, but are stored in registers as numbers. You can interpret these values the same way as all the other (by converting them to binary and then to text), but a simpler way would be to get them in '''hexadecimal''' form and then convert them to text. To do so, we'll have to add the '''-D''' parameter to the command. Lets do it by asking for the router's Hostname:
+
Some values like Hostname, Router name, Network type are represented as text in their original form, but are stored in registers as numbers. You can interpret these values the same way as all discussed before (by converting them to binary and then to text), but a simpler way would be to get them in '''hexadecimal''' form and then convert them to text. To do so, we'll have to add the '''-D''' parameter to the command. Lets do it by asking for the router's Hostname:
    
  $ modbus read -D -w -p 12345 192.168.1.1 %MW007 16
 
  $ modbus read -D -w -p 12345 192.168.1.1 %MW007 16
 +
 +
[[Image:Configuration examples modbus hostname example.png]]