EasyManuals Logo

Control Techniques UD70 User Manual

Control Techniques UD70
154 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #90 background imageLoading...
Page #90 background image
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.

Table of Contents

Other manuals for Control Techniques UD70

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Control Techniques UD70 and is the answer not in the manual?

Control Techniques UD70 Specifications

General IconGeneral
BrandControl Techniques
ModelUD70
CategoryControl Unit
LanguageEnglish

Related product manuals