![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454095.webp)
All BASIC commands
Section 4-2
84
4-2
All BASIC commands
4-2-1
+ (Addition)
/i
4-2-2
- (Subtraction)
/i
4-2-3
* (Multiplication)
/i
Type
Mathematical function
Syntax
expre expression2
Description
The operator
+
adds two expressions.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 4 + 3
Assigns the value 7 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 - expression2
Description
The operator
-
subtracts
expression2
from
expression1
.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 10 - 2
Assigns the value 8 to the variable
result
.
See also
N/A
Type
Mathematical function
Syntax
expression1 * expression2
Description
The operator
*
multiplies two expressions.
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 3 * 7
Assigns the value 21 to the variable
result
.
See also
N/A
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...