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 #137 background imageLoading...
Page #137 background image
Data Manipulation Instructions
Chapter 6
614
The Multiply instruction tells the processor to multiply the two BCD
values stored at the Get instruction words. The result is then stored in two
data table words addressed by the Multiply instruction (Figure 6.15).
For ease of programming, the programmer should choose two consecutive
data table words to store the product. If the product is less than 6 digits,
leading zeros will appear in the product where there is no value. Although
this is not mandatory, any two unused data table words are acceptable.
Figure 6.15
Multiply
Instruction
||
12
( X )
503
111 052
| G |
123
130
| G |
061
131
Must be true to allow
arithmetic operation
( X )
007
051
The Divide instruction tells the processor to divide the first Get instruction
value by the second Get instruction value. The result is stored in two data
table words addressed by the Divide instruction (Figure 6.16). Usually two
consecutive data table word locations are chosen to store the quotient for
ease of programming.
The quotient is not rounded off and is always expressed as a decimal
number. The decimal point is automatically inserted between the two
Divide instruction values by the industrial terminal. Leading and trailing
zeros in the quotient are also entered automatically by the industrial
terminal.
Although division by 0 is undefined mathematically, the following results
are obtain with a PLC-2/30 PC processor when dividing by 0:
0
÷ 0 = 001.000, 1 to 999 ÷ 0 = 999.999
This differs from the Mini-PLC-2 and the Mini-PLC-2/15 where 0
÷ 0 =
999.999.
6.4.3
Multiply Instruction
6.4.4
Divide 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