![Okuma OSP-P200L Programming Manual Download Page 299](http://html1.mh-extra.com/html/okuma/osp-p200l/osp-p200l_programming-manual_3667818299.webp)
5238-E P-286
SECTION 12 USER TASK
3-3.
Arithmetic Operation Function 1
This function allows arithmetic operation using variables. The programming can be done in the
same way as for general arithmetic expressions.
[Program format]
Address character, Extended address character, Variable = Expression
The expression on the right-hand side, requesting an arithmetic operation, is made up of constants,
variables, comparison expressions, and operators.
The arithmetic and comparison expressions are described below.
Arithmetic Expression
Comparison Expression
Operator
Meaning
Example
+
-
Positive sign
Negative sign
+1234
-1234
+
-
Sum (addition)
Difference (subtraction)
X = 12.3 + V1
X = 12.3 - V1
*
/
Product (multiplication)
Quotient (division)
X = V10 * 10
X = V11/10
Operator
Meaning
Example
Contents
Rule
LT
(Less Than, <)
IF [V1 LT 5] N100
Jump to N100 when V1
is less than 5.
Provide a space
on either side of
the operator.
LE
(Less than or Equal to,
≤
)
IF [V1 LE 5] N100
Jump to N100 when V1
is less than or equal to 5.
EQ
(EQual to, =)
IF [V1 EQ 5] N100
Jump to N100 when V1
is equal to 5.
NE
(Not Equal to,
≠
)
IF [V1 NE 5] N100
Jump to N100 when V1
is not equal to 5.
GT
(Greater Than, >)
IF [V1 GT 5] N100
Jump to N100 when V1
is greater than 5.
GE
(Greater than or Equal,
≥
)
IF [V1 GE 5] N100
Jump to N100 when V1
is greater than or equal
to 5.