Basic Instructions
LOOP
LBL
Outline
Skips to the LBL instruction that has the same number as the LOOP
instruction and executes what follows, repeatedly, until the data of a
specified operand becomes "0".
Program example
10
16
30
S
Operands
Relay
Instruction
Instruction
WX WY WR
Set value
N/A
A
(*1) This cannot be used with the FP0/FP−e.
(*2) This cannot be used with the FP0/FP−e/FP0R/FPΣ/FP−X.
(*3) With the FP0R, FPΣ, FP−X, FP2, FP2SH and FP10SH, this is I0 to IC.
(*4) With the FP0R, FPΣ, FP−X, FP2, FP2SH and FP10SH, this is ID.
(*5) Only FP2, FP2SH and FP10SH label numbers can be used.
2 − 64
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Loop
Label
Ladder Diagram
Ladder Diagram
X0
F0 MV, K5, DT 0
Label number
Number of timers for loop
X1
LOOP 1 , DT 0
Label number
16-bit area for setting number of times for loop operation
Timer/Counter
WL
SV
EV
(*1)
A
A
A
A
7
(LBL 1 )
S
Index
Register
register
LD
FL
IX
IY
DT
(*1)
(*2)
(*3)
(*4)
A
A
A
A
A
Boolean
Address
Instruction
10
ST
X
11
F0
K
DT
16
LBL
30
ST
X
31
LOOP
DT
Constant
Index
modifier
modifier
(*5)
K
H
N/A
N/A
A
A:
Available
N/A: Not Available
0
(MV)
5
0
1
1
1
0