EasyManuals Logo

Trio Motion Coordinator MC224 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 #257 background imageLoading...
Page #257 background image
Motion Coordinator Technical Reference Manual
Trio BASIC Commands 8-67
Program Loops and Structures
ENDIF
Type:
Program Structure
Description:
The
ENDIF
command marks the end of a multi-line
IF
statement.
Example:
IF count >= batchsize THEN
PRINT #3,CURSOR(20);” BATCH COMPLETE “;
GOSUB index Index conveyor to clear batch
count=0
ENDIF
See Also
IF, THEN, ELSE
FOR..TO.. STEP..NEXT
Type:
Program Structure
Syntax:
FOR variable=start TO end [STEP increment]
...
block of commands
...
NEXT variable
Description:
On entering this loop the variable is initialized to the value of start and the block of
commands is then executed.
Upon reaching the
NEXT
command the variable defined is incremented by the speci-
fied
STEP
. The
STEP
parameter
is optional. If not defined then it is assumed to be
1. The
STEP
value may be positive or negative.
If the value of the variable is less than or equal to the end parameter then the block
of commands is repeatedly executed until this is so.
Once the variable is greater than the end value the program drops out of the
FOR..NEXT
loop.
Parameters:
variable:
A valid Trio BASIC variable. Either a global VR variable, or a local
variable may be used.
start:
A valid Trio BASIC expression.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Trio Motion Coordinator MC224 Specifications

General IconGeneral
BrandTrio
ModelMotion Coordinator MC224
CategoryController
LanguageEnglish

Related product manuals