Technical FAQs

# What registers is the IP address of a PM8 with PM8ECC stored?

The IP address of the Ethernet Option Module is stored in registers 622 and 623.
Register format:
1st Register High byte: IP Address 1st Octet
1st Register Low byte: IP Address 2nd Octet
2nd Register High byte: IP Address 3rd Octet
2nd Register Low byte: IP Address 4th Octet

Range:
000.000.000.000 to 255.255.255.255

Example:
In this example we are assuming that the PM800 we are reading has a current IP configuration of 10.168.96.17

1. Read registers 622 and 623

2. Convert the register data into binary format:
Register 622: 2728 dec = 101010101000 bin
Register 623: 24593 dec = 110000000010001 bin

3. Convert the binary data into High and Low bytes for each register:
Register 622: 1010 10101000
High byte = 1010 = 00001010
Low byte = 10101000

Register 623: 1100000 00010001
High byte = 1100000 = 01100000
Low byte = 00010001

4. Convert the High and Low Bytes back to decimal format:
Register 622:
High byte = 00001010 bin = 10 dec
Low byte = 10101000 bin = 168 dec

Register 623:
High byte = 01100000 bin = 96 dec
Low byte = 00010001 bin = 17 dec