Rockwell Automation 1772-AF4,D17726.5.3 User Manual, AUX FUNCT PROM User Manual
Page 30

Programming
Chapter 3
3Ć22
Figure 3.13
Af4 Multiplication Function Input and Result Display Rungs
201
000
G
202
400
G
203
000
G
204
200
G
305
153
G
306
638
G
Bit
Storage
306
638
G
306
638
G
Execute Aux
Function
Function Number:
Data Addr:
Result Addr:
03
201
305
AF4 Division Function
An AF4 division function operates on two 6-digit BCD numbers and presents
the results in a 12-digit BCD number.
(+xxx xxx.) : (+xxx xxx.) = +xxx xxx.xxx xxx
How to Enter an AF4 Division Function
To program an AF4 division function, perform the following steps:
1. Press [SHIFT][EAF] or [SHIFT][SCT] on the keyboard of your industrial
terminal. Figure 3.1 appears on the CRT.
2. Enter 04, the function number for AF4 division.
This entry identifies that the function entered is to perform an AF4 division and
that the processor use the data table format shown in Figure 3.14 when
executed. Operands 1 and 2 represent two 6-digit numbers whose quotient you
wish to find. The six digits of operand 1 are represented in BCD by groups of
bits labeled digit 1 through 6. Digit 1 and 6 are the most significant and least
significant digits respectively. Operand 2 and the 12 digits of the result are
labeled similarly.