You are on page 1of 2

THE BOOLEAN EMBASSY.

RSS
LAD 3 - ITERATOR --- Total Rungs in File = 4

0000

Reset the C17:0.ACC, the Iteration Counter Accumulator Value on the first program scan or when the subroutine has been scanned the
required number of times.
Iteration
First Pass
Counter
SBR
S2:1
C17:0
RES
Subroutine
15
Iteration
Counter Done
Bit
C17:0
DN

0001

The subroutine called by the JSR instruction this rung is repeated C17:0.PRE times. You must modify the SBR file number in the JSR
instruction to reflect the subroutine that you want to call.
Beginning of
Iteration Loop
Q3:0
LBL
Reuseable Motor
Fault Timer
COP
Copy File
Source #T18:[C17:0.ACC]
Dest
#T18:8
Length
1

B19:0

B19:1

[C17:0.ACC]

[C17:0.ACC]

Reuseable Motor
Fault Timer
TON
Timer On Delay
Timer
T18:8
Time Base
0.01
Preset
0<
Accum
0<

EN
DN

T18:8

B19:2

DN

[C17:0.ACC]

COP
Copy File
Source
#T18:8
Dest #T18:[C17:0.ACC]
Length
1

Page 1

Tuesday, January 30, 2001 - 14:32:47

THE BOOLEAN EMBASSY.RSS


LAD 3 - ITERATOR --- Total Rungs in File = 4

Iteration
Counter Count
Up Enable Bit
C17:0
U
CU
Iteration
Counter
CTU
Count Up
Counter
Preset
Accum

Iteration
Counter Done
Bit
C17:0

CU
C17:0
2<
2<

DN

Beginning of
Iteration Loop
Q3:0
JMP

DN

0002

0003

Page 2

RET
Return

END

Tuesday, January 30, 2001 - 14:32:49

You might also like