Is Not Equal To; Is Equal To; Is Greater Than; Is Greater Than Or Equal To - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

Command, function and parameter description
6-3-8
Is Not Equal To: <>
Type:
Syntax:
Description:
Arguments:
Example:
6-3-9

Is Equal To: =

Type:
Syntax:
Description:
Arguments:
Example:
6-3-10 Is Greater Than: >
Type:
Syntax:
Description:
Arguments:
Examples:
6-3-11 Is Greater Than or Equal To: >=
Type:
Syntax:
In the above line, 1 is not less than or equal to 0 and, therefore, variable
maybe would contain the value 0 (FALSE).
Logical Operation
expression_1 <> expression_2
The not equal to operator "<>" returns TRUE if expression_1 is not equal to
expression_2 , otherwise it returns FALSE.
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
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.
Logical Operation
expression_1 = expression_2
The equal to operator "=" returns TRUE if expression_1 is equal to
expression_2 , otherwise it returns FALSE.
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
IF IN(7) = ON THEN GOTO label
If input 7 is ON, then program execution will continue at line starting "label:".
Logical Operation
expression_1 > expression_2
The greater than operator ">" returns TRUE if expression_1 is greater than
expression_2 , otherwise it returns FALSE.
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
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.
Logical Operation
expression_1 >= expression_2
Section 6-3
113

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents