Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 196

Advertising
background image

EAF Logarithmic, Trigonometric

and FIFO Instructions

Chapter 15

15-3

To enter the number ABC DEF use two Gets or two data table words.

––––[G]–––[G]–––

ABC DEF . xxx xxx

+/– ABC DEF

To enter the number ABC DEF . GHI use three Gets or three data
table words.

––––[G]–––[G]–––[G]–––

ABC DEF . GHI xxx

+/– ABC DEF GHI

To enter the number ABC DEF . GHI JKL use four Gets or four data
table words.

––––[G]–––[G]–––[G]–––[G]––– ABC DEF . GHI JKL
+/– ABC DEF GHI JKL

The numbers have a fixed decimal point that is implied but not displayed.

The Result word can be placed in any legal location in the data table.
However, you must select four consecutive address locations. The Result
word format is similar to the Operand format except that there are three
status bits.

Bits 14-17 of the result word are reserved for status bits:

This Bit:

Stores this:

14

overflow/underflow
1 you entered a number that is out of range

0 result is in range
Log

10

and Log

e

1 you tried to find the log of zero and the result

indicates zero; or you tried to fin the log of a

negative number and the result indicates

999 999 . 999 999

0 result is in range

15

zero indicator
1 zero result

0 nonĆzero result

16

sign bit
1 negative (Ć)

0 positive (+)

17

not used

Advertising