Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 40 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Appendix D - Instruction Set Quick Reference, pages 331 to 338

Pages 331 to 338 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

The original document is the PDF (5.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1785-L20B and Allen-Bradley 1785-L40B

Page 331

Instruction Set Quick Reference

Category

Arithmetic

Code Title

Execution Time (µs) Floating Point

True

False

True

False

Words of Memory (1)

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)

(1)

Execution Time (µs) Integer

D-31

3-5 276 + 12[E**1.34]

227

278 + 16[E**1.35] 227

189

230 + 33[E**1.35] 189

224 + 25[E**1.34]

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.

Publication 1785-UM012D-EN-P - July 2005

Page 332

D-32

Instruction Set Quick Reference

File, Program Control, and ASCII Instructions Category

Code

Title

Time (µs) Integer

Time (µs) Floating Point

True

False

True

Words of Memory(1) False

File Arithmetic and Logic

FAL all

11 + (S[2.3 + i])E

6.16 + Wi[0.16] 11 + (Σ[2.3 + i])E

6.16 + Wi[0.16] 3-5 +Wi

File Search and Compare

FSC all

11 + (S[2.3 + i])E

6.16 + Wi[0.16] 11 + (Σ[2.3 + i])E

6.16 + Wi[0.16] 3-5 +Wi

File

COP copy

16.2+E[0.72]

1.4

17.8+E[1.44]

1.4

4-6 counter, timer, and control

15.7+E[2.16]

1.4 fill

15.7+E[0.64]

1.5

18.1+E[0.80]

1.5

4-6 counter, timer, and control

15.1+E[1.60]

1.5

BSL bit shift left

10.6+B[0.025] 5.2

4-7

BSR bit shift right

11.1 + B[0.025]

5.2

4-7

FFL

FIFO load

8.9

3.8

4-7

FFU

FIFO unload

10.0+E[0.43]

3.8

4-7

LFL

LIFO load

9.1

3.7

4-7

LFU

LIFO unload

10.6

3.8

4-7

FBC

0 mismatch

15.4 + B[0.055]

2.9

6-11

1 mismatch

22.4 + B[0.055]

2.9

2 mismatches

29.9+ B[0.055] 2.9

0 mismatch

15.4 + B[0.055]

2.9

1 mismatch

24.5 + B[0.055]

2.9

2 mismatches

34.2 + B[0.055]

2.9 data transitional

5.3

5.3

FLL

Shift Register

Diagnostic

DDT

DTR (1)

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

i = execution time of each instruction (e.g., ADD, SUB, etc.) used within the FAL or the FSC expression E = number of elements acted on per scan B = number of bits acted on per scan Wi = number of words used by the instruction (e.g., ADD, SUB, etc.) within the FAL or FSC expression FAL or FSC instructions are calculated with short direct addressing

Publication 1785-UM012D-EN-P - July 2005

6-11

4-7

Page 333

Instruction Set Quick Reference

Category

Sequencer

Code

Title

Time (µs) Integer

Time (µs) Floating Point

True

False

True

Words of Memory(1) False

SQI sequencer input

7.9

1.3

5-9

SQL sequencer load

7.9

3.5

4-7

SQO sequencer output

9.7

3.7

5-9

Immediate I/O(2) IIN immediate input

1.1

2

1.1

2

• PLC-5/11, -5/20, and -5/20E • PLC5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, and -5/80, -5/80E

IOT

Zone Control

MCR

Program Control JMP JSR(3) /RET

D-33

• 357 • 307 immediate output • PLC-5/11, -5/20, and -5/20E • PLC5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

• 361 • 301 master control

0.16

0.16

1 jump

8.9+(file# - 2) 1.4 * 0.96

2 jump to subroutine /return

3+paramete rs/JSR, 0 parameters

12.3

1.0 not applicable, 1 parameter

16.1

1.0

17.3, increase/ parameter

3.8 not applicable 5.0

SBR not applicable 1+paramete rs/RET 1.0 not applicable 1+ parameters

(1)

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

(2)

Timing for immediate I/O instructions is the time for the instruction to queue-up for processing.

(3)

Calculate execution times as follows: (time) + (quantity of additional parameters)(time/parameter). For example: if you are passing 3 integer parameters in a JSR within a PLC-5/11 controller, the execution time = 16.1 + (2)(3.8) = 23.7 ms

Publication 1785-UM012D-EN-P - July 2005

Page 334

D-34

Instruction Set Quick Reference

Category

Code

Title

Time (µs) Integer

Time (µs) Floating Point

True

False 0.16

True

Words of Memory(1) False

Program Control LBL label

0.16

END end negligible

TND temporary end

1

EOT end of transition

1

AFI always false

0.16

0.16

1

ONS one shot

3.0

3.0

2-3

OSR one shot rising

6.2

6.0

4-6

OSF one shot falling

6.2

5.8

4-6

FOR/ NXT for next loop

8.1+ L[15.9]+ (file# - 2) * 0.96

5.3 + N[0.75]

FOR 5-9 NXT 2

BRK break

11.3 + N[0.75] 0.9

UID user interrupt disable (PLC-5/11, -5/20, 175 -5/30, -5/40, -5/60, and -5/80 controllers) 119

1.0

1

UIE user interrupt enable 170 (PLC-5/11, -5/20, -5/30, -5/40, -5/60, and -5/80 controllers) 100

1.0

1

(1)

1

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

L = number of FOR/NXT loops N = number of words in memory between FOR/NXT or BRK/NXT

Publication 1785-UM012D-EN-P - July 2005

2

1

Page 335

Instruction Set Quick Reference

Category

Code

Title

Time (µs) Integer True

Process Control PID

False

True

Words of Memory(1) False

PID loop control

5-9

Independent

Gains

Time (µs) Floating Point

D-35

3.0

1120

58

• PLC-5/11, -5/20, • 462 -5/20E • 655 • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L -5/80, -5/80E

ISA • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

1180 • 560 • 895

Manual

Modes

• PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

1150 • 372 • 420

Set Output • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E Cascade

ASCII (2)

ABL

1130 • 380 • 440

Slave

1530

Master

1080 test buffer for line • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

3-5 • 316 • 388

• 214 • 150

(1)

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

(2)

Timing for ASCII instructions is the time for the instruction to queue-up for processing in channel 0.

C = number of ASCII characters

Publication 1785-UM012D-EN-P - July 2005

Page 336

D-36

Instruction Set Quick Reference

Category

Code

Title

Time (µs) Integer True

ACB

AEX

(1)

• 214 • 150

1.4

3-5

1.9

4-7

1.9

5-9

• 237 + C[2.6] • 179 + C[5.5]

• 226 + C[1.1] • 159 + C[2.2] set or reset lines • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

5-9 • 318 • 526

• 213 • 157

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

Publication 1785-UM012D-EN-P - July 2005

False

• 220 + C[11] • 140 + C[21.4] string extract • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

AHL¡

• 316 • 389 string concatenate • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

True

Words of Memory(1)

3-5 string to integer • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

ACN

False no. of characters in buffer • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

ACI

Time (µs) Floating Point

Page 337

Instruction Set Quick Reference

Category

Code

Title

Time (µs) Integer True

ASCII(2)

AIC integer to string • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

ARD

False 3-5

4-7 • 315 • 380

• 214 • 149

4-7 • 316 • 388

• 214 • 151

1.9

5-9

• 222 + C[1.7] • 151 + C[3.0] string compare • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

True

Words of Memory(1)

• 260 • 270 string search • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

ASR

1.4 read line • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

ASC

False read characters • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

ARL

Time (µs) Floating Point

D-37

3-5 • 234 + C[1.3] • 202 • 169 + C[2.4] • 119

(1)

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

(2)

Timing for ASCII instructions is the time for the instruction to queue-up for processing in channel 0.

C = number of ASCII characters

Publication 1785-UM012D-EN-P - July 2005

Page 338

D-38

Instruction Set Quick Reference

Category

Code

Title

Time (µs) Integer True

ASCII(2)

AWA

False write with append • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

AWT

Time (µs) Floating Point

• 319 • 345

• 215 • 154

4-7 • 318 • 344

• 215 • 151

(1)

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

(2)

Timing for ASCII instructions is the time for the instruction to queue-up for processing in channel 0.

C = number of ASCII characters

Publication 1785-UM012D-EN-P - July 2005

False 4-7 write • PLC-5/11, -5/20, and -5/20E • PLC-5/30, -5/40, -5/40E, -5/40L -5/60, -5/60L, -5/80, and -5/80E

True

Words of Memory(1)