EasyManuals Logo

Trio Motion Coordinator MC206 User Manual

Default Icon
566 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 #259 background imageLoading...
Page #259 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Trio Motion Coordinator MC206 and is the answer not in the manual?

Trio Motion Coordinator MC206 Specifications

General IconGeneral
BrandTrio
ModelMotion Coordinator MC206
CategoryController
LanguageEnglish

Related product manuals