Hexadecimal – Rockwell Automation 1770, D17706.5.16 Ref Mnl DF1 Protocol Command User Manual
Page 200

11–4
Data Encoding
Publication 1770Ć6.5.16 - October 1996
Hexadecimal
The hexadecimal (hex) numbering system is the most compact way
to represent binary data and allows for the easiest conversion to and
from binary. Hex uses 16 digits, numbers 0 to 9 and letters A to F.
(Letters A to F are equivalent to the decimal numbers 10 to 15,
respectively.)
Each group of four data bits represents one hex digit between 0 and
F. Thus, each 16-bit data word can have a hex value between 0 and
FFFF. Each digit of a hex number has a place value that is a
multiple of 16.
To convert a hexadecimal number to its decimal equivalent, multiply
each hexadecimal digit by its corresponding place value and add the
results of the multiplications.
Hexadecimal Representation of Decimal 423
0
1
A
7
0
0
1
0
0
0
0
0
0
1
1
0
1
0
1
1
0 x 2
3
= 0
0 x 2
2
= 0
0 x 2
1
= 0
0 x 2
0
= 0
0 x 2
3
= 0
0 x 2
2
= 0
0 x 2
1
= 0
1 x 2
0
= 1
1 x 2
3
= 8
0 x 2
2
= 0
1 x 2
1
= 2
0 x 2
0
= 0
0 x 2 = 0
1 x 2
2
= 4
1 x 2
1
= 2
0 x 2
0
= 1
0 x 16
3
= 0
1 x 16
2
= 256
10 x 16
1
= 160
7 x 16
0
= 7
= 01A7
16
423
10