EasyManua.ls Logo

Trio Motion Coordinator MC216 - Page 256

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...
8-66 Trio BASIC Commands
Program Loops and Structures
Trio Motion Technology
Description:
The command is used within an
IF .. THEN .. ENDIF
. It evaluates a second (or
subsequent) condition and if TRUE it executes the commands specified, otherwise
the commands are skipped. MC206 and MC224 only.
Parameters:
Example 1:
IF IN(stop)=ON THEN
OP(8,ON)
VR(cycle_flag)=0
ELSEIF IN(start_cycle)=ON THEN
VR(cycle_flag)=1
ELSEIF IN(step1)=ON THEN
VR(cycle_flag)=99
ENDIF
Example 2:
IF key_char=$31 THEN
GOSUB char_1
ELSEIF key_char=$32 THEN
GOSUB char_2
ELSEIF key_char=$33 THEN
GOSUB char_3
ELSE
PRINT “Character unknown”
ENDIF
Note:
The
ELSE
sequence is optional. If it is not required, the
ENDIF
is used to mark the
end of the conditional block.
See Also
IF, THEN, ELSE, ENDIF
condition(s):
Any logical expression.
commands:
Any valid Trio BASIC commands including further
IF..THEN
..{ELSEIF}..{ELSE} ENDIF
sequences

Table of Contents

Related product manuals