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

The text of a manual ยท part 62 of 70

SLC 500 Instruction Set Reference Manual, pages 611 to 620

Pages 611 to 620 of 694

The original document is the PDF (7.2 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 1747-L514

Page 611

Programming Instruction References

D-11

Table D.3 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

LFL(3)

LIFO Load source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M(4)

-32,768 to 32,767

LIFO array indexed direct indexed indirect

O, I, S, B, N, A none

LIFO control direct

R none

LFU(3)

LIM(3)

LN(2)

LOG(2)

LIFO Unload

Limit Test (circ)

Natural Log

Log to the Base 10

MCR

Master Control Relay

MEQ

Mask Compare Equal To

MOV

Move length

1 to 128 position

0 to 127

LIFO array indexed direct indexed indirect

O, I, S, B, N, A none destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M(4)

none

LIFO control direct

R none length

1 to 128 position

0 to 127 low limit direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max test direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max high limit direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none none source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none source mask direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 compare direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none

Publication 1747-RM001G-EN-P - November 2008

Page 612

D-12

Programming Instruction References

Table D.3 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

MSG (5/02 only)

Message read/write

0=read,1=write target device

2=500CPU, 4=485CIF control block

Valid Addressing Mode(s)

direct

Valid File Types

N control block length local address message length

Publication 1747-RM001G-EN-P - November 2008 none 7 direct

O, I, S, B, T, C, R, N, A target node target address

Immediate Values none 0 to 31 direct

O, I, S, B, T, C, R, N, A

0 to 255

T, C, R

1 to 13

I, O, S, B, N

1 to 41

Page 613

Programming Instruction References

D-13

Table D.3 Available Addressing Modes (Continued) Instruction

Description

MSG Message (5/03, 5/04, and 5/05(7))

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values type

64=peer-to-peer read/write

0=read, 1=write target device

2=500CPU, 4=485CIF, 8=PLC5 local/remote

16=local, 32=remote control block direct

N none control block length

14(8)

channel number

5/03 and 5/04: 0 or 1 5/05: 0 only target node

0 to 31, 0 to 254 if 485CIF remote bridge link ID

0 to 254, 0 when local remote bridge node address

0 to 254, 0 when local local bridge node address

0 to 254, 0xFFFF when local local file address direct

O, I, S, B, T, C, R, N, F, A, ST, M(9)

none target file address direct

O, I, S, B, T, C, R, N, F, A, ST, M(9)

0 to 255 message length

O, I, B, N, A(9)

1 to 103

S(9)

5/03 and 5/05: 1 to 83 5/04: 1 to 164

F(9)

1 to 51

T

1 to 34 (if PLC5: 1 to 20)

C, R

1 to 34

ST(9)

2 (if PLC5: 1)

message timeout

0 to 255 (SLC 5/05-23 seconds, read only)

Publication 1747-RM001G-EN-P - November 2008

Page 614

D-14

Programming Instruction References

Table D.3 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

MSG (5/05 Ethernet)

Message type

64=peer-to-peer read/write

0=read, 1=write target device

2=500CPU, 4=485CIF, 8=PLC5 local

16=local control block

Valid Addressing Mode(s)

direct

Valid File Types

N

Immediate Values none control block length

51 (93 if logical ASCII addressing is used)

channel number

1 (Ethernet)

not applicable target node, remote bridge link ID, local and remote bridge node address IP address (ww.xx.yy.zz) local file address any legal IP address direct

O, I, S, B, T, C, R, N, F, A, ST, M none target file address direct

O, I, S, B, T, C, R, N, F, A, ST, M

0 to 255 message timeout (1)

Supported only by SLC 5/03 (OS301 and higher), SLC 5/04, and SLC 5/05 processors.

(2)

Supported only by SLC 5/03 (OS302), and SLC 5/04 (OS401), and SLC 5/05 processors.

(3)

Not supported by SLC 5/01 processors and Fixed controllers.

(4)

Indexed addressing is not allowed when using T, C, R, or M addresses.

(5)

Supported only by L20, L30, and L40 Fixed SLC processors with DC inputs.

(6)

Supported only by SLC 5/02, SLC 5/03, SLC 5/04, and SLC 5/05 processors.

(7)

SLC 5/05 Channel 0 (RS-232 serial port) only.

(8)

For SLC 5/05, control block length = 55 if logical ASCII addressing is used.

(9)

File types F, A, and ST only apply to SLC 5/03 (OS301 or later), SLC 5/04, and SLC 5/05 processors.

Publication 1747-RM001G-EN-P - November 2008

0 to 255

Page 615

Programming Instruction References

D-15

Table D.4 Available Addressing Modes Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

MUL

Multiply source A direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max source B direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none source mask direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none source A direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none source B direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none source A direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 source B direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none

MVM

NEG

NEQ

NOT

OR

Masked Move

Negate

Not Equal To

Logical NOT

Logical OR

OSR

One-shot Rising bit address direct, indirect

O, I, S, B, T, C, R, N, A, ST none

OTE

Output Energize bit address direct, indirect

O, I, S, B, T, C, R, N, A, ST, M none

OTL

Output Latch bit address direct, indirect

O, I, S, B, T, C, R, N, A, ST, M none

OTU

Output Unlatch bit address direct, indirect

O, I, S, B, T, C, R, N, A, ST, M none

PID(1)

PID control block direct

N none process variable direct, indirect

O, I, B, T, C, R, N, A none control variable direct, indirect

O, I, B, T, C, R, N, A none control block length

23 always

Publication 1747-RM001G-EN-P - November 2008

Page 616

D-16

Programming Instruction References

Table D.4 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

RAD(2)

Degrees to Radians source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none

REF(1)

I/O Refresh channel 0

0=no, 1=yes channel 1

0=no, 1=yes

RES

Timer/Counter Reset

RET

Return

RHC

Read High Speed Clock destination direct

N, F

RMP

Ramp control direct

N destination direct

O, I, S, B, N

RPC structure direct

T, C, R none

Read Program Checksum Proc/Mmod destination

RPI(1)

Reset Pending Interrupt slots

RTO

Retentive Timer On timer

SBR

Subroutine

SCL(3)

Scale

Publication 1747-RM001G-EN-P - November 2008 none

0=PROC-MEM, 1=MEM-MOD direct

N double hex word (list of slots)

direct

T none time base (SLC 5/01)

0.01 only time base (SLC 5/02, 5/03, 5/04, 5/05)

0.01 or 1.00 preset

0 to 32,767 accum

0 to 32,767 none source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none rate direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 offset direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none

Page 617

Programming Instruction References

D-17

Table D.4 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

SCP(2)

Scale with Parameters input direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none input min.

direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max input max.

direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max scaled min.

direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max scaled max.

direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max scaled output direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none file indexed direct indexed indirect

O, I, S, B, N, A, ST none mask direct, indexed direct(4) indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 source direct, indexed direct(4)

O, I, S, B, T, C, R, N, A, ST, M none

R none

SIN(2)

SQC

Sine

Sequencer Compare indirect, indexed indirect control

SQL(3)

Sequencer Load direct length

1 to 255 position

0 to 255 file indexed direct indexed indirect

O, I, S, B, N, A, ST none source direct, indexed direct(4) indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 control direct

R none length

1 to 255 position

0 to 255

Publication 1747-RM001G-EN-P - November 2008

Page 618

D-18

Programming Instruction References

Table D.4 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

SQO

Sequencer Output file indexed direct indexed indirect

O, I, S, B, N, A, ST none mask direct, indexed direct(4) indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 destination direct, indexed direct(4) indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none control direct

R none

SQR(3)

Square Root length

1 to 255 position

0 to 255 source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none

STD(3)

Selectable Timed Interrupt Disable none

STE(3)

Selectable Timed Interrupt Enable none

STS(3)

Selectable Timed Interrupt Start

SUB

Subtract file direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

0, 3 to 255 time direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

0 to 255 (SLC 5/02), 0 to 32,767 (SLC 5/03, 5/04, 5/05)

source A direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,76 f-min to f-max source B direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none

SUS

Suspend

SVC(1)

Service Communications channel 0 (SLC 5/03, 5/04, 5/05)

0=no, 1=yes channel 1 (SLC 5/03, 5/04, 5/05)

0=no, 1=yes

SWP(2)

Swap suspend ID source length

Publication 1747-RM001G-EN-P - November 2008

-32,768 to 32,767 indexed direct indexed indirect

B, N, A, ST none 1 to 128: bit, 1 to 128: integer, 1 to 41: string, 1 to 128: ASCII

Page 619

Programming Instruction References

D-19

Table D.4 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

TAN(2)

Tangent source direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none start direct

N, F stop direct

N, F destination direct

N, F

TDF

Compute Time Difference

TND

Temporary End

TOD

Convert to BCD

TOF

TON

Timer Off Delay

Timer on Delay none source (SLC 5/01)

direct

O, I, S, B, T, C, R, N none source (SLC 5/02, 5/03, 5/04, 5/05)

direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M destination direct

O, I. S. B. T, C, R, N, A, ST, M none timer direct

T none time base (SLC 5/01)

0.01 only time base (SLC 5/02, 5/03, 5/04, 5/05)

0.01 or 1.00 preset

0 to 32,767 accum

0 to 32,767 timer direct

T none 0.01 only time base (SLC 5/01)

0.01 or 1.00 0 to 32,767 time base (SLC 5/02, 5/03, 5/04, 5/05)

0 to 32,767 preset accum XIC

Examine On (Examine if Closed Contact)

source bit direct, indirect

O, I, S, B, T, C, R, N, A, ST, M none

XIO

Examine Off (Examine if Open Contact)

source bit direct, indirect

O, I, S, B, T, C, R, N, A, ST, M none

XOR

Logical Exclusive OR address A direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 address B direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M

-32,768 to 32,767 destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, A, ST, M none

Publication 1747-RM001G-EN-P - November 2008

Page 620

D-20

Programming Instruction References

Table D.4 Available Addressing Modes (Continued) Instruction

Description

Instruction Parameter

Valid Addressing Mode(s)

Valid File Types

Immediate Values

XPY(2)

X to the Power of Y source A direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768 to 32,767 f-min to f-max source B direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M

-32,768-32,767 f-min-f-max destination direct, indexed direct indirect, indexed indirect

O, I, S, B, T, C, R, N, F, A, ST, M none

(1)

Supported by SLC 5/02, SLC 5/03, SLC 5/04, and SLC 5/05 processors.

(2)

Supported by SLC 5/03 (OS302), SLC 5/04 (OS401), and SLC 5/05 processors.

(3)

Not supported by SLC 5/01 processors and FIxed controllers.

(4)

Indexed addressing is not allowed when using T, C, R, or M addresses.

Publication 1747-RM001G-EN-P - November 2008