Rockwell Automation 1785-Lxxx Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

Page 310

Advertising
background image

Publication 1785-UM012D-EN-P - July 2005

D-10 Instruction Set Quick Reference

Natural log
LN

Multiply
MUL

Instruction

Description

LN

NATURAL LOG

Source

Dest

N7:0

F8:20

5

1.609438

When input conditions go true, take the natural log of the va
in N7:0 and store the result in F8:20.

always resets

sets if overflow is generated;

sets if the result is zero;

Status

C

V

Z

S

Description

Bit

otherwise resets

otherwise resets

sets if the result is negative;

otherwise resets

LOG

LOG BASE 10

Source

Dest

N7:2

F8:3

5

0.6989700

When input conditions go true, take the log base 10 of the
value in N7:2 and store the result in F8:3.

always resets

sets if overflow is generated;

sets if the result is zero;

Status

C

V

Z

S

Description

Bit

otherwise resets

otherwise resets

sets if the result is negative;

otherwise resets

MUL

MULTIPLY

Source A

Source B

Dest

N7:3

N7:4

N7:12

3

1

3

sets if the result is zero;

sets if overflow is generated;

When the input conditions are true, multiply the value in
Source A (N7:3) by the value in Source B (N7:4) store the
result in the Destination (N7:12).

Status

C

V

Z

S

Description

always resets

Bit

sets if the result is negative;

otherwise resets

otherwise resets

otherwise resets

Advertising