UD70
Issue code: 70nu2
7-14
Reference
GOTO
Syntax
GOTO label:
This is an unconditional branch instruction which causes program execution
to jump to, and continue from, the line specified by [label]. When declaring
a label and when indicating which label to go to, a trailing [:] must be written
with the label. The trailing [:] identifies the name as a label. This is different
to other programming languages.
If the
BACKGROUND
task is to be continuously executed, a
GOTO
instruction
must be included.
Example
BACKGROUND{
top: //this is the name of the label
IF #18.32 = 1 THEN
#1.21 = 100
ELSE
#1.21 = 0
ENDIF
GOTO top: //goto the line with the label [top:]
}
IF
Syntax 1
IF conditional expression THEN
Instruction
ENDIF
Syntax 2
IF conditional expression THEN
Instruction if condition is true
ELSE
Instruction if condition is false
ENDIF
Syntax 3
IF conditional expression 1 THEN
Instructions if true, goto ENDIF
ELSEIF conditional expression 2 THEN
Instructions if true, goto ENDIF
ELSEIF conditional expression 3 THEN...
Instructions if true, goto ENDIF
ELSE
Instruction
ENDIF
Syntax 4
IF
conditional expression THEN Instruction
The conditional instructions
IF
,
THEN
,
ELSE
,
ELSEIF
and
ENDIF
perform an
operation until the specified condition is met.
Summary of Contents for UD70
Page 6: ......
Page 14: ...UD70 Issue code 70nu2 2 6 Installation...
Page 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Page 98: ...UD70 Issue code 70nu2 7 22 Reference...