Omron trajexia CJ1W-MCH72 Operation Manual page 97

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-7
= (Assignment)
4-2-8
<> (Is not equal to)
4-2-9
> (Is greater than)
86
/i
Type
Mathematical function
Syntax
variable = expression
Description
The operator = assigns the value of the expression to the variable.
Arguments
variable
A variable name.
expression
Any valid BASIC expression.
Example
var = 18
Assigns the value 18 to the variable var.
See also
N/A
/i
Type
Mathematical function
Syntax
expression1 <> expression2
Description
The operator <> returns TRUE if expression1 is not equal to
expression2, otherwise it returns FALSE.
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
IF a <> 10 THEN GOTO label1
If variable a contains a value not equal to 10, program execution contin-
ues at label label1. Otherwise, program execution continues with the
next statement.
See also
N/A
/i
Type
Mathematical function
Syntax
expression1 > expression2
Description
The operator > returns TRUE if expression1 is greater than
expression2, otherwise it returns FALSE.
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
IF a > 10 THEN GOTO label1
If variable a contains a value greater than 10, program execution contin-
ues at label label1. Otherwise, program execution continues with the
next statement.
See also
N/A
Section 4-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents