User Manual, AUX FUNCT PROM Manual

Programming
Chapter 3
347
AF4 T
rigonometric Function Sin xxx.
The AF4 sine function finds the sine of a 3-digit BCD angle. The input angle is
in degrees. The AF4 presents the result as a 6-digit value with an implied
decimal point after the most significant digit.
sin xxx. = +
x.xx xxx
How to Enter an AF4 Sine Function
To program an AF4 sine 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 35, the function number for the AF4 sine function.
This entry identifies that the function entered is to perform an AF4 sine
calculation and that the processor use the data table format shown in
Figure 3.47 when executed. The three BCD digits in the operand labeled digit 1
through 3 represent the angle with an implied decimal point after digit 3. The
6-digits in the result are the sine of the angle with an implied decimal point after
digit 1.
Figure 3.47
General
AF4 Sine Function W
ord and Digit Format
171615141312111076543210
Digit 1
(MSD)
Digit 2
Bit No.
Data Address
m
Digit 2
Operand
Digit 5
Result Address
n
Result
DE
n + 1
E = Enable Bit (1 = Function in Progress)
S = Sign Bit (1 = Negative)
MSD = Most Significant Digit
LSD = Least Significant Digit
11514
Digit 3
(LSD)
Digit 3
Digit 1
(MSD)
Digit 4
Digit 6
(LSD)
D = Done Bit (1 = Function Complete)
S
S
3. Enter a data address and a result address.
If we enter a data address of 205 and a result address of 310, the AF4
establishes the data table format shown in Figure 3.48. The data address, word
205, is reserved for the three digits of the angle whose sine we want. The result