EasyManua.ls Logo

Trio Motion Coordinator MC216 - Greater than; Greater than or Equal

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-136Trio BASIC Commands
Mathematical Operations and Commands
Trio Motion Technology
> Greater Than
Type:
Arithmetic Comparison Operation
Syntax
<expression1> > <expression2>
Description:
Returns
TRUE
if expression1 is greater than expression2, otherwise returns false.
Note:
TRUE
is defined as -1, and
FALSE
as 0
Parameters:
Example 1:
WAIT UNTIL MPOS>200
The program will wait until the measured position is greater than 200
Example 2:
VR(0)=1>0
1 is greater than 0 and therefore VR(0) holds the value -1
>= Greater Than or Equal
Type:
Arithmetic Comparison Operation
Syntax
<expression1> >= <expression2>
Description:
Returns
TRUE
if expression1 is greater than or equal to expression2, otherwise
returns false.
Note:
TRUE
is defined as -1, and
FALSE
as 0
Parameters:
Example:
IF target>=120 THEN MOVEABS(0)
If variable target holds a value greater than or equal to 120 then move to the abso-
lute position of 0.
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression
Expression1:
Any valid Trio BASIC expression
Expression2:
Any valid Trio BASIC expression

Table of Contents

Related product manuals