EasyManuals Logo

Omron TJ2-MC64 - PROGRAMMING User Manual

Omron TJ2-MC64 - PROGRAMMING
362 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #33 background imageLoading...
Page #33 background image
BASIC commands
PROGRAMMING MANUAL 27
Revision 1.0
3.2.5 ^ (Power)
/i
3.2.6 = (Is equal to)
/i
3.2.7 = (Assignment)
/i
3.2.8 <> (Is not equal to)
/i
Type Mathematical function
Syntax expression1 ^ expression2
Description The power operator ^ raises expression1 to the power of expression2.
This operation uses floating point algorithms and may give small deviations for
integer calculations.
Arguments expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example result = 2^5
Assigns the value 32 to the variable result.
See also N/A
Type Mathematical function
Syntax expression1 = expression2
Description The operator = returns TRUE if expression1 is equal to expression2, other-
wise 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 equal to 10, program execution continues at
label label1. Otherwise, program execution continues with the next statement.
See also N/A
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
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 continues at
label label1. Otherwise, program execution continues with the next state-
ment.
See also N/A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron TJ2-MC64 - PROGRAMMING and is the answer not in the manual?

Omron TJ2-MC64 - PROGRAMMING Specifications

General IconGeneral
BrandOmron
ModelTJ2-MC64 - PROGRAMMING
CategoryController
LanguageEnglish

Related product manuals