beautypg.com

Using the parallel port, Data line values (binary), Data line values (bcd) – Rockwell Automation 2706 DL20 SERIES G USER MANUAL User Manual

Page 76

background image

Chapter 7

The Parallel Port

7–4

Data Line Values (Binary)

Table 7.B shows the value of the data lines using binary data inputs.

Table 7.B
Binary Data Line Values

Data Line

Data Line

Value

Comments

D0

1

Least Significant Bit

D1

2

D2

4

D3

8

D4

16

D5

32

D6

64

D7

128

D8

256

D9

512

Most Significant Bit

The binary value of the data lines is the sum of the individual data lines: D0
+ D1 + D2 + D3 + D4 + D5 + D6 + D7 +D8 + D9 = Value

.

For example: if

D0, D4 and D7 are at some voltage level, and the others are at ground level,
the value on the data lines is D0 + D4 + D7 = 1 +16 + 128 = 145.

Data Line Values (BCD)

In the BCD system, 4 bits represent one decimal digit. Table 7.C shows the
value of the data lines using BCD data inputs.

Table 7.C
BCD Data Line Values

Data Line

Data Line

Value

Comments

(Range = 0 to 399)

D0

1

D1

2

Ones Digit (0-9)

D2

4

Ones Digit (0-9)

D3

8

D4

10

D5

20

Tens Digit (0-9)

D6

40

Tens Digit (0-9)

D7

80

D8

100

n

s igi

3

D9

200

Hundreds Digit (0-3)

Using the Parallel Port