beautypg.com

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

Page 234

background image

Numbering Systems

Appendix A

AĆ4

Figure A.4

Binary Coded Decimal

0 0 1 0 0 0 1 1 1 0 0 1

2

3

9

10241

0 x 2

3

= 0

0 x 2

2

= 0

1 x 2

1

= 2

0 x 2

0

= 0

0 x 2

3

= 0

0 x 2

2

= 0

1 x 2

1

= 2

1 x 2

0

= 1

1 x 2

3

= 8

0 x 2

2

= 0

0 x 2

1

= 0

1 x 2

0

= 1

2

3

9

10

You can compute the decimal value of a binary number by multiplying each
binary digit by its corresponding place value and adding these numbers together
(Table A.B).

Table A.B

BCD Representation

Place Value

Decimal

Equivalent

2

3

(8)

2

2

(4)

2

1

(2)

2

0

(1)

0

0

0

0

0

0

0

0

1

1

0

0

1

0

2

0

0

1

1

3

0

1

0

0

4

0

1

0

1

5

0

1

1

0

6

0

1

1

1

7

1

0

0

0

8

1

0

0

1

9