15ć7 – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 200

Advertising
background image

EAF Logarithmic, Trigonometric

and FIFO Instructions

Chapter 15

15-7

0.866025 for the sine function and and 0.500 for the cosine function.
Figure 15.7 shows how it is stored in the data table.

Figure 15.7

EAF Sine Function Format After Execution

17 16 15 14

10 7

4 3

Data

0

Result

Address

060
061
062

063

10366-I

13

X S

Address

040
041
042

043

0

0

0

0

0

0

0

0

0

0

6

0

0

0

0

0

0

8

2

0

0

O

6

6
5

0

Operand

Result

The FIFO Load and FIFO Unload are output instructions that can be used
together to construct an asynchronous word shift register. Length of the
FIFO can be a maximum 999 words long.

Upon a false-to-true transition of the FIFO Load rung, the contents of

the Input Word is transferred into the File as long as the input word is
non-zero.

Upon a false-to-true transition of the FIFO Unload rung, the word at the

top of the file (highest file address) is transferred out of the File to an
Output Word.

Important: Only non-zero values can be loaded.

Use the full and empty flags in your ladder program to assure that the data
being loaded/unloaded to/from the file is not lost or invalid.

FIFO Load and FIFO Unload

Advertising