![Okuma OSP-P200L Programming Manual Download Page 316](http://html1.mh-extra.com/html/okuma/osp-p200l/osp-p200l_programming-manual_3667818316.webp)
5238-E P-303
SECTION 12 USER TASK
5-3-2. Rules of Operation Expression and Evaluation of Values
Example:
LE33013R0301400470001
Abbreviations:
LE33013R0301400470002
Type of
Expression
Operator
Meaning
Type of
Element 1 "A"
Type of
Element 2 "B"
Type of Result
of Operation
"C"
Arithmetic
expression
+
Addition
[I]
[I]
[I]
[I]
→
[R]
[R]
[R]
-
Subtraction
[R]
[I]
→
[R]
[R]
[R]
[R]
[R]
+
Positive sign
[I]
[I]
-
Negative sign
[R]
[R]
*
Multiplication
[I]
→
[R]
[I]
→
[R]
[R]
/
Division
[R]
[R]
Comparison
expression
LT
Less than <
[I]
[I]
[b]
LE
Less than or
equal to
≤
EQ
Equal to =
[I]
→
[R]
[R]
NE
Not equal to
≠
[R]
[I]
→
[R]
GT
Greater than >
[R]
[R]
GE
Greater than
or equal to
≥
Logical
expression
EOR
Exclusive OR
[I]
[I]
[I]
OR
Logical sum
[R]
→
[I]
[R]
→
[I]
AND
Logical product
(cutting off
fractions)
(cutting off
fractions)
NOT
Negation
[I] or [R]
→
[I]
(cutting off
fractions)
[I]
Expression C = A
∗
B
Calculation result
Element 2
Element 1
[I]
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
Integer type
[R]
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
Real type
[R] [I]
⋅⋅⋅⋅⋅⋅⋅⋅⋅
Change to real type
[I]
[R]
⋅⋅⋅⋅⋅⋅⋅⋅
Change to integer type
[b]
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
Logical type