Rockwell Automation 1772-AF4,D17726.5.3 User Manual, AUX FUNCT PROM User Manual

Page 58

Advertising
background image

Programming

Chapter 3

3Ć50

Entry and Display of Input and Result Values

Figure 3.50 shows one method for inserting the input angle and displaying the
input and the result of an AF4 sine function. Although there are several
techniques for accomplishing this, we chose get instructions. The first rung
requests the AF4 sine function. The top branch of the second rung shows the
angle value 080o in word 205. The lower branch shows the resultant sine 080

0

= 0.98480 in words 310 and 311 with an implied decimal point after the first
digit.

Figure 3.50

AF4 Sine Function Input and Result Display Rungs

G

310

G

311

480

G

205

080

098

Bit

Storage

Execute Aux

Function

Function Number:
Data Addr:
Result Addr: 310

35

205

AF4 Trigonometric Function, Cos xxx.

The AF4 cosine function finds the cosine 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.

cos xxx. = +X.XX XXX

How to Enter an AF4 Cosine Function

To program an AF4 cosine 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 36, the function number for the AF4 cosine function.

This entry identifies that the function entered is to perform an AF4 cosine
calculation and that the processor use the data table format shown in
Figure 3.51 when executed. The three BCD digits in the operand labeled digit 1
through 3 represent the angle with an implied decimal point after the third digit.
The 6-digits in the result are the cosine of the angle with an implied decimal
point after the first digit.

Advertising