Hexadecimal numbering system – Rockwell Automation 1772-LS_LSP,D17726.8.6 PROG/OPER MANUAL-MINI PLC-2/05 User Manual

Page 236

Advertising
background image

Numbering Systems

Appendix A

AĆ6

Hexadecimal Numbering System

Get and put word values use the hexadecimal numbering system. This is a
numbering system made up of 16 digits: the numbers 0–9 and the letters A–F
(Table A.C). The letters A–F represent the decimal numbers 10–15,
respectively. Four binary digits represent each hexadecimal character, you can
convert between hexadecimal to a binary by writing out the patterns for each
hexadecimal character or group of four binary digits (Figure A.6).

Figure A.6

Hexadecimal to Decimal Conversion

0

1

A 7

10243

256

160

7

0 x 16

3

= 0

1 x 16

2

= 256

10 x 16

1

= 160

7 x 16

0

= 7

423

10

= 01A7

16

Each place value in a hexadecimal character represents a power of 16 starting
with 16 raised to the zero power (16

0

=1) (Figure A.6). You can compute a

decimal number for each group of hexadecimal characters by multiplying the
decimal digit equivalent of each hexadecimal character by its corresponding
place value and adding these numbers together.

Advertising