Changes

Line 168: Line 168:  
[[File:Configuration examples modbus decimal to binary.png]]
 
[[File:Configuration examples modbus decimal to binary.png]]
   −
The zeros at the beginning are added to represent the fact that the numbers are expressed in a 16-bit format. The next step is to add the two values, but not in the traditional sense. Instead, the value of the second register should act as an extension of the value of the first register, i.e., '''0000 0000 0000 0001 + 0000 1011 1111 1011 = 0000 0000 0000 0001 0000 1011 1111 1011'''. What happens here is that in this sum the first register's value of 1 shouldn't be considered as 1, but instead as '''65536 (2<sup>16</sup>)''' , which is the value of the 17th digit of a 32-bit long binary number. If you convert this value back to decimal, you will see that we get the same answer:
+
The zeros at the beginning are added to represent the fact that the numbers are expressed in a 16-bit format. The next step is to add the two values, but not in the traditional sense. Instead, the value of the second register should act as an extension of the value of the first register or, to put it more simply, the values should be added up as if they were strings, i.e., '''0000 0000 0000 0001 + 0000 1011 1111 1011 = 0000 0000 0000 0001 0000 1011 1111 1011'''. What happens here is that in this sum the first register's value of 1 shouldn't be considered as 1, but instead as '''65536 (2<sup>16</sup>)''' , which is the value of the 17th digit of a 32-bit long binary number. If you convert this value back to decimal, you will see that we get the same answer:
    
[[File:Configuration examples modbus binary to decimal.png]]
 
[[File:Configuration examples modbus binary to decimal.png]]
 +
 +
===WAN IP address===
 +
 +
Lets examine a different

Navigation menu