Changes

Line 181: Line 181:     
An IPv4 address is divided into 4 segments. Each segment contains '''8 bits''' (or 1 byte) of information:
 
An IPv4 address is divided into 4 segments. Each segment contains '''8 bits''' (or 1 byte) of information:
 +
    
[[File:Configuration examples modbus binary ip v2.png]]
 
[[File:Configuration examples modbus binary ip v2.png]]
 +
    
So in order to get the WAN IP address from the response received, we'll need to convert the values of both registers to binary and split them into '''8-bit segments'''. Lets do that with the values from the last example: '''%MW1398 2692''' and '''%MW140 30404''', which converted to binary would be: '''2692 → 0000 1010 1000 0100''' ; '''30404 → 0111 0110 1100 0100'''.
 
So in order to get the WAN IP address from the response received, we'll need to convert the values of both registers to binary and split them into '''8-bit segments'''. Lets do that with the values from the last example: '''%MW1398 2692''' and '''%MW140 30404''', which converted to binary would be: '''2692 → 0000 1010 1000 0100''' ; '''30404 → 0111 0110 1100 0100'''.

Navigation menu