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

Page 184

Advertising
background image

EAF Math Instructions

Chapter 14

14-12

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 locations. Its word format is
similar to the operand except that there are three status bits. Bits 14 to 16
of the Result word are reserved for status bits. These bits have the
following meanings:

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

This Bit:

Stores this:

14

overflow/underflow
10 to the X

1 you entered a number larger than 5.999 999

and the result indicates 999 999

0 result is in range
Reciprocal

1 you tried to find the reciprocal of zero and

the result indicates zero

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