15ć5, Log to base 10 or log to base e – Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 198

Advertising
background image

EAF Logarithmic, Trigonometric

and FIFO Instructions

Chapter 15

15-5

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

1. Press

.

2. Enter the result branch with its four Gets. Press

and enter the

operand with its four Gets.

3. Enter the values for the Operand.

4. Complete the parallel branches.

5. Press [Shift] [EAF].

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

7. Enter the data and result addresses.

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.

The EAF log instruction is a feature of the Mini-PLC-2/17 processor only.

Word formats for log

10

or the log

e

are the same. The only difference

between the two EAFs is their function number: log

10

is 30 and the log

e

is 31.

log

10

xxx xxx . xxx xxx = 000 00y . yyy yyy

log

e

xxx xxx . xxx xxx = 000 0yy . yyy yyy

Enter an EAF rung like that in Figure 15.4

Figure 15.4

EAF Log to Base 10 Function, Operand and Result Rung

060

EXECUTE AUX

FUNCTION

FUNCTION NUMBER:

DATA ADDR:

RESULT ADDR:

30

040

060

G

061

G

062

811

G

063

572

G

040

000

G

041

648

G

042

000

G

043

000

G

000 002

Log to Base 10 or Log to

Base e

Advertising