
Programming
Chapter 3
317
4. Enter values for operands 1 and 2.
You can enter these values from the keyboard of your industrial terminal or
through ladder diagram functions. Entry of operand 1 = 000400 and operand 2
= 000200 produces the result 000000080000 (Figure 3.12).
Figure 3.12
AF1
Multiplication 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)
11489
201
202
203
204
305
306
307
310
0
004
000
002
000
000
800
000
(0)
S
(0)
(0)(0)(1)
Entry and Display of Input and Result Values
Figure 3.13 shows one method you can use to enter values for operands 1 and 2
and for displaying the results of an AF1 multiplication. Although there are
several techniques for accomplishing this, we chose get instructions. The first
rung requests an AF1 multiplication. The top branch of the second rung shows
the two 6-digit operands while the lower branch shows the 12 digit product.