EasyManuals Logo
Home>Allen-Bradley>Controller>PLC-2/30

Allen-Bradley PLC-2/30 User Manual

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
Page #135 background imageLoading...
Page #135 background image
Data Manipulation Instructions
Chapter 6
612
Figure 6.12
Arithmetic
Instruction W
ord
17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
Most
Significant
Digit
Middle
Digit
Least
Significant
Digit
BCD V
alue Holds
Arithmetic Result
Overflow Bit Set to 1
When Sum Exceeds 999.
Underflow Bit Set to 1 When
Dif
ference is Negative Number
.
The conversion instructions are in block format. They don’t require Get
instructions. The 12-bit binary value is stored in one word and the BCD
value is stored in two consecutive data table words. Any condition
instructions can be programmed before a conversion instruction.
Appendix B gives more information on Binary and BCD number systems.
The Add instruction tells the processor to add the two values stored in the
Get words. The sum is then stored at the Add instruction word address.
When the sum exceeds 999, the overflow bit (bit 14) in the Add instruction
word is set on (Figure 6.13). In the run, test or run/prog mode, the
overflow condition is displayed on the industrial terminal screen as a 1.
NOTE: If an overflow value (4 digits) is used for subsequent comparisons
or other arithmetic operations, inaccurate operations will occur. The
processor performs arithmetic and data manipulation operations with
3-digit BCD values only. In subsequent rungs, the overflow bit may be
examined to determine if an overflow exists.
6.4.1
Add Instruction
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley PLC-2/30 and is the answer not in the manual?

Allen-Bradley PLC-2/30 Specifications

General IconGeneral
BrandAllen-Bradley
ModelPLC-2/30
CategoryController
LanguageEnglish

Related product manuals