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

Page 179

Advertising
background image

EAF Math Instructions

Chapter 14

14-7

Figure 14.4

EAF Addition Function Input and Display Rungs

060

359

EXECUTE AUX

FUNCTION

FUNCTION NUMBER:

DATA ADDR:

RESULT ADDR:

01

040

060

G

061

130

G

062

000

G

063

000

G

040

256

G

041

384

G

042

000

G

043

000

G

050

102

G

051

G

746

052

000

G

053

000

G

Enter values for operands A and B. Entry of Operand A = 256384 and
Operand B = 102746 produces the Result 359130 for addition
(Figure 14.4) or 153638 for subtraction. Figure 14.5 shows how the words
are stored in the data table.

Figure 14.5

EAF Addition Format in the Data Table After Execution

10350-I

X 0

0 0

17 16 15 14

10 7

4 3

13

2

0

3
0

1
7

0

5
8

6
4

0

0

0

0

0

0
0

0

0

0

0

0
4

2

6

0
0

0

0

0

0

1

3

5
3

0

9

Data

0

040
041
042
043

050
051
052

Result

Address
060
061
062
063

053

Operand A

Operand B

Result

Address

Error Message

If the result has more than 12 digits, bit 14 is set (1) indicating overflow.
Underflow does not exist for either addition or subtraction.

Advertising