Chapter 5: Standard RLL Instructions - Program Control
Program Control Instructions
Goto Label (GOTO) (LBL)
The Goto / Label skips all instructions between the Goto
230
and the corresponding LBL instruction. The operand
value for the Goto and the corresponding LBL
240
instruction are the same. The logic between Goto and
250-1
LBL instruction is not executed when the Goto
260
instruction is enabled. Up to 128 Goto instructions and
64 LBL instructions can be used in the program.
DS
Used
HPP Used
Operand Data Type
Constant
In the following example, when C7 is on, all the program logic between the GOTO
and the corresponding LBL instruction (designated with the same constant Kaaa value) will
be skipped. The instructions being skipped will not be executed by the CPU.
DirectSOFT
LBL
K5
DL240 Range
aaa
K
1-FFFF
C7
K5
GOTO
X1
C2
OUT
X5
Y2
OUT
DL250-1 Range
aaa
1-FFFF
Handheld Programmer Keystrokes
$
C
SHFT
STR
G
O
T
SHFT
6
INST#
$
B
STR
1
GX
C
SHFT
OUT
L
B
L
SHFT
ANDST
1
ANDST
$
F
STR
5
GX
C
OUT
2
DL205 User Manual, 4th Edition, Rev. B
K aaa
GOTO
LBL
LBL
K aaa
K aaa
DL260 Range
aaa
1-FFFF
H
ENT
2
7
O
F
MLR
INST#
5
ENT
C
ENT
2
2
F
ENT
5
ENT
ENT
1
2
3
4
5
6
7
8
9
10
ENT
11
12
13
14
A
B
C
D
5–179
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?