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

Page 331

Advertising
background image

Publication 1785-UM012D-EN-P - July 2005

Instruction Set Quick Reference D-31

Category

Code

Title

Execution Time (

µ

s)

Integer

Execution Time (

µ

s)

Floating Point

Words of
Memory

(1)

True

False

True

False

Arithmetic

ADD

add

6.1

1.4

14.9

1.4

4-7

SUB

subtract

6.2

1.4

15.6

1.4

4-7

MUL

multiply

9.9

1.4

18.2

1.4

4-7

DIV

divides

12.2

1.4

23.4

1.4

4-7

SQR

square root

9.9

1.3

35.6

1.3

3-5

NEG

negate

4.8

1.3

6.0

1.3

3-5

CLR

clear

3.4

1.1

3.9

1.1

2-3

AVE

average file

152+E25.8

30

162+E22.9

36

4-7

STD

standard deviation 262+E92.5

34

295+E85.5

34

4-7

TOD

convert to BCD

7.8

1.3

3-5

FRD

convert from BCD

8.1

1.3

3-5

RAD

radian

57.4

1.4

50.1

1.4

3-5

DEG

degree

55.9

1.4

50.7

1.4

3-5

SIN

sine

414

1.4

3-5

COS

cosine

404

1.4

3-5

TAN

tangent

504

1.4

3-5

ASN

inverse sine

426

1.4

3-5

ACS

inverse cosine

436

1.4

3-5

ATN

inverse tangent

375

1.4

3-5

LN

natural log

409

1.4

403

1.4

3-5

LOG

log

411

1.4

403

1.4

3-5

XPY

X to the power of Y 897

1.5

897

1.5

4-7

SRT

sort file

(5/11, -5/20)

(-5/30, -5/40,
-5/60, -5/80)

276 +
12[E**1.34]

224 +
25[E**1.34]

227

189

278 + 16[E**1.35]

230 + 33[E**1.35]

227

189

3-5

(1)

Use the larger number for addresses beyond 2048 words in the controller’s data table.

E = number of elements acted on per scan

SRT true is only an approximation. Actual time depends on the randomness of the numbers.

Advertising