Programming chapter 3 – Rockwell Automation 1772-AF4,D17726.5.3 User Manual, AUX FUNCT PROM User Manual
Page 60

Programming
Chapter 3
3Ć52
4.
Enter an angle value in degrees (operand).
You can enter the angle from the keyboard of your industrial terminal or
through ladder diagram functions. Entry of 080 for the angle produces the
result cosine 080
0
= 0.17364 as shown in Figure 3.53.
Figure 3.53
AF4 Cosine Function Format After Execution
17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0
Bit No.
Data Address
Operand
Result Address
Result
D
E
E = Enable Bit (1 = Function in Progress)
S = Sign Bit (1 = Negative)
11519
D = Done Bit (1 = Function Complete)
S
S
205
310
311
0
8
0
0
1
7
3
6
4
(0)
(0) (0) (1)
Entry and Display of Input and Result Values
Figure 3.54 shows one method for inserting the input angle and displaying the
input and the result of an AF4 cosine function. Although there are several
techniques for accomplishing this, we chose get instructions. The first rung
requests the AF4 cosine function. The top branch of the second rung shows the
angle value 080
0
in word 205. The lower branch shows the resultant cosine
080
0
= 0.17364 in words 310 and 311 with an implied decimal point after the
first digit.
Figure 3.54
AF4 Cosine Function Input and Result Display Rungs
G
310
G
311
364
G
205
080
017
Bit
Storage
Execute Aux
Function
Function Number:
Data Addr:
Result Addr:
310
36
205