Using bcd data input – Rockwell Automation 2706 DL40 HARDWARE USER MANUAL User Manual
Page 87
![background image](/manuals/580513/87/background.png)
Thousands Digit
Hundreds Digit
Tens Digit
Ones Digit
(0 – 9)
(0 – 9)
(0 – 9)
(0 – 9)
Chapter 9
Using the Parallel Port
9 – 3
Table 9.C
Sample value obtained by summing the binary value of each data line’s logic level
Data Line
Logic Level
Value
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D13
D14
D15
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
Logic 1
Logic 0
Logic 0
Logic 0
Logic 1
Logic 0
Logic 0
Logic 1
Logic 0
Logic 0
Logic 0
Logic 0
Logic 0
Logic 0
Logic 0
Logic 0
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
1
0
0
0
16
0
0
128
0
0
0
0
0
0
0
0
Sum of all values
145
Adding the values of the individual data lines provides the value being
entered, 145.
The 16 data lines can also be used to input BCD data. The BCD numbering
system uses a group of four binary digits to represent a single decimal digit.
Table 9.D shows the value of each data line.
Table 9.D
BCD Value of Data Lines
Data Line
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
Data Line Value
8000
4000
2000
1000
800
400
200
100
80
40
20
10
8
4
2
1
For example, assume the following logic levels appear as shown in
Table 9.E.
Using BCD Data Input