14ć6, Addition and subtraction – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 178

Advertising
background image

EAF Math Instructions

Chapter 14

14-6

Figure 14.3

EAF Input and Result Rung

060

000

EXECUTE AUX

FUNCTION

FUNCTION NUMBER:

DATA ADDR:

RESULT ADDR:

01

040

060

G

061

300

G

062

000

G

063

000

G

040

000

G

041

250

G

042

000

G

043

000

G

050

000

G

051

G

050

052

000

G

053

000

G

Result

Operand A

Operand B

Keystrokes
Enter an EAF input and result rung (like Figure 14.3) be performing the
following steps.

1. Press

.

2. Enter Result and Operand branches.

3. Enter the values for Operands A and B. You can enter these values

from the keyboard of your 1770-T3 terminal or through ladder
diagram functions.

4. Complete the parallel branches.

5. Press [Shift] [EAF].

6. Enter the appropriate function number (Table 14.A).

7. Enter the data and result addresses for the EAF instruction.

ATTENTION: Do not enter data in hexadecimal. Enter all
data in BCD. Failure to observe this warning could cause
unwanted machine motion and may injure personnel.

This EAF adds (or subtracts) two numbers. Word formats for addition or
subtraction are the same. The only difference between the two EAFs is
their function number: addition is 01 and subtraction is 02.

(+/- xxx xxx . xxx xxx) +/- (+/- xxx xxx . xxx xxx) = +/- yyy yyy . yyy yyy

or

(+/- Operand A) +/- (+/- Operand B) = +/- Result

Enter a rung like that shown in Figure 14.4

Addition and Subtraction

Advertising