beautypg.com

Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 331

background image

Number Systems

Appendix B

BĆ7

Figure B.6

HexadecimalĆtoĆDecimal Conversion

0 x 16

3

= 0

1 x 16

2

= 256

10 x 16

1

= 160

7 x 16

0

= 7

0

1

A

7

01A7

16

= 423

10

2

256

160

7

423

10

Because each hexadecimal digit represents 4 binary digits, it is easy to
convert a hexadecimal number to a binary number. This is done by writing
out the 4-bit pattern for each hexadecimal digit (Figure B.7).

Figure B.7

HexadecimalĆtoĆBinary Conversion

0

1

0

1

1

1

1

1

0

1

1

1

0

0

0

0

F

A

2

C