EasyManua.ls Logo

Allen-Bradley PLC-2/30

Allen-Bradley PLC-2/30
348 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Data Manipulation Instructions
Chapter 6
617
If the BCD value is > 4095, the overflow bit (bit 14 of the binary address)
will be set on.
The binary number result will be stored in the lower 12 bits (00-13) of a
word selected by the user.
To program a BCD to Binary conversion, press keys [CONVERT] 0. A
display represented by Figure 6.17 will appear.
Figure 6.17
BCD
to Binary Conversion Format
BCD T
O BINAR
Y
BCD
ADDR: 110-111
DATA: 000000
BINARY
ADDR: 010
DATA: 000000000000
010
(OV)
14
Numbers
shown are default values. Bold numbers must be replaced by userentered values. The number of default address digits initially
displayed  3, 4, or 5  will depend on the size of the data table. Initially displayed default values are governed by the I/O rack configura
tion.
BCD ADDR
:
Address where the first three digits of the BCD number are stored. The second threedigit address is where the
three leastsignificant BCD digits are stored.
BCD DA
TA :
The BCD number that is to be converted to binary
.
BINAR
Y ADDR
:
Stores the binary number
.
BINAR
Y DA
TA :
The 12 bits of the binary number equivalent to the BCD number
.
OV :
Overflow bit. Set high when binary number is > 12 ones or a decimal equivalent of 004095. It is in a word where
the binary word is to be stored.
Figure 6.18 shows the symbolic format of Figure 6.17 after the following
conditions have been entered:
Convert the BCD number 004095 to Binary.
BCD
ADDR – The BCD number is stored in adjacent data table words 200
and 201
6.6.1
Programming a BCD to
Binary Conversion
Instruction
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals