Download Print this page

Danfoss MCO 305 Design Manual page 115

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
GOTO
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
__ Software Reference __
Jump to a program label
GOTO label
label = identification of program target position
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 (:).
CON
LOOP
endless:
/* label to be jumped to */
command line 1
command line n
GOTO endless
/* jump command to label endless */
GOTO_01.M, EXIT_01.M, IF_01.M
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
115

Advertisement

loading