Dil ID: 13
Dil Adı: romaina
Dil Kodu: ro10 Produsele mărcii Elevation Audio
Dünyanın En Büyük
Elektronik Bilgi Kütüphanesi



Programming
Chapter 3
328
Figure 3.24
AF1 Average Function Format After Execution
171615141312111076543210
S
Bit No.
Word
Input 1
S
Result Address
Result
DE
11587
ER
Input 2
Input 3
Number of Inputs
0 0 3 200
201
202
203
305
306
(0)
S
(0)
S
(0)
(0) (0) (1) (0)
413
235
121
256
333
Data
Address
Entry and Display of Input and Result Values
Figure 3.25 shows one method you can use to enter values and display results of
an AF1 average function. although there are several techniques for
accomplishing this, we chose get instructions. The first rung requests an AF1
average function. The top branch of the second rung shows the number of
values to be averaged, 003, in word 200. It also shows the numbers to be
averaged in words 201, 202, and 203. The lower branch of the second rung
shows the resultant average as 256.333 in words 305 and 306.
Figure 3.25
AF1
A
verage Function Input and Result Display Rungs
Bit
Storage
203
121
G
202
235
G
201
413
G
200
003
G
305
256
G
306
333
G
Execute Aux
Function
Function Number:
Data Addr:
Result Addr:
06
201
305