
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
115
GOTO
Summary
Jump to a program label
Syntax
GOTO
label
Parameter
label = identification of program target position
Description
The GOTO command enables an unconditional jump to the indicated program
position and the program processing at this position will be carried out.
The jumped-to position is identified with a label. A label can consist of one or more
characters and may not be identical to a variable name or a command word. A label
must also be unique, i.e. it may not be used for different program positions.
It is therefore possible to program a continuous loop via the GOTO command.
NB!:
The label for the program target position must be followed by a colon (:).
Command Group
CON
Cross Index
LOOP
Syntax Example
endless:
/* label to be jumped to */
command line 1
command line n
GOTO endless
/* jump command to label endless */
Program Sample
GOTO_01.M, EXIT_01.M, IF_01.M
Summary of Contents for MCO 305
Page 4: ......