113
Command, function and parameter description
Section 6-3
In the above line, 1 is not less than or equal to 0 and, therefore, variable
maybe
would contain the value 0 (FALSE).
6-3-8
Is Not Equal To: <>
Type:
Logical Operation
Syntax:
expression_1
<>
expression_2
Description:
The not equal to operator “<>” returns TRUE if
expression_1
is not equal to
expression_2
, otherwise it returns FALSE.
Arguments:
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
Example:
IF MTYPE <> 0 THEN GOTO 3000
If the base axis is not idle (MTYPE=0 indicates an axis idle), then a jump
would be made to label 3000.
6-3-9
Is Equal To: =
Type:
Logical Operation
Syntax:
expression_1
=
expression_2
Description:
The equal to operator “=” returns TRUE if
expression_1
is equal to
expression_2
, otherwise it returns FALSE.
Arguments:
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
Example:
IF IN(7) = ON THEN GOTO label
If input 7 is ON, then program execution will continue at line starting “label:”.
6-3-10
Is Greater Than: >
Type:
Logical Operation
Syntax:
expression_1
>
expression_2
Description:
The greater than operator “>” returns TRUE if
expression_1
is greater than
expression_2
, otherwise it returns FALSE.
Arguments:
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
Examples:
Example 1
VR(0) = 1 > 0
In the above line, 1 is greater than 0 and, therefore, VR(0) would contain the
value –1
Example 2
WAIT UNTIL MPOS > 200
Program execution will wait until the measured position is greater than 200.
6-3-11
Is Greater Than or Equal To: >=
Type:
Logical Operation
Syntax:
expression_1
>=
expression_2