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 #263 background imageLoading...
Page #263 background image
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-73
Program Loops and Structures
RETURN
Type:
Program Structure
Description:
Instructs the program to return from a subroutine. Execution continues at the line
following the
GOSUB
instruction.
Note:
Subroutines on each process can be nested up to 8 deep.
Example:
' calculate in subroutine:
GOSUB calc
PRINT "Returned from subroutine"
STOP
calc:
x=y+z/2
RETURN
STEP
Type:
Program Structure
Description:
This optional parameter specifies a step size in a
FOR..NEXT
sequence. See
FOR
.
Example:
FOR x=10 TO 100 STEP 10
MOVEABS(x) AXIS(9)
NEXT x
STOP
Type:
Command
Description:
Stops one program at the current line. A particular program may be specified or the
selected program will be assumed.
Example 1:
>>STOP progname

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