EasyManua.ls Logo

Trio Motion Coordinator MC216 - Goto

Trio Motion Coordinator MC216
566 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-69
Program Loops and Structures
Parameters:
Example:
main:
GOSUB routine1
GOSUB routine2
GOTO main
routine1:
PRINT "Measured Position=";MPOS;CHR(13);
RETURN
routine2:
PRINT "Demand Position=";DPOS;CHR(13);
RETURN
Note:
Subroutines on each process can be nested up to 8 deep.
GOTO
Type:
Program Structure
Syntax:
GOTO label
Description:
Identifies the next line of the program to be executed.
Parameters:
Example:
loop:
PRINT "Measured Position=";MPOS;CHR(13);
WA(1000)
GOTO loop
Note:
Labels may be character strings of any length. Only the first 15 characters are sig-
nificant. Alternatively line numbers may be used as labels.
label:
A valid label that occurs in the program. If the label does not exist an
error message will be displayed during structure checking at the begin-
ning of program run time and the program execution halted.
label:
A valid label that occurs in the program. If the label does not exist an
error message will be displayed during structure checking at the begin-
ning of program run time and the program execution halted.

Table of Contents

Related product manuals