
Programming
Chapter 3
321
4. Enter values for operands 1 and 2.
You can enter these numbers from the keyboard of your industrial terminal or
through ladder diagram functions. Entry of operand 1 = 000400 and operand 2
= 000200 produces the result 000002.000000 (Figure 3.16).
Figure 3.16
AF1
Division Function Format After Execution
171615141312111076543210
S
00
Bit No.
Data Address
Operand 1
Operand 2
S
Result Address
Result
DE
E = Enable Bit (1 = Function in Progress)
S = Sign Bit (1= Negative)
D = Done Bit (1 = Function Complete)
11492
201
202
203
204
305
306
307
310
0
004
000
002
000
020
000
000
(0)
S
(0)
(0)(0)(1)
ER
(0)
ER = Illegal Operand (Divide by Zero)
Entry and Display of Input and Result Values
Figure 3.17 shows one method you can use to enter values for operands 1 and 2
and for displaying the results of an AF1 division. Although there are several
techniques for accomplishing this, we chose get instructions. The first rung
requests an AF1 division function. The top branch of the second rung shows
the two 6-digit operands while the lower branch shows the 12 digit quotient.