10.3.8. Operator
10.3.8. Operator
( ) | Ý High priority |
Symbols (+ -) |
|
^ |
|
* / * MOD |
|
+ - |
|
= <> < > <= >= |
|
NOT |
|
AND OR XOR | ß Low priority |
Example V10! = (V1!^2 + V2!^2 + V3!^2)*2.5
IF(V24!>=V50! AND V10$= “WELD”)
l For string operation, only three operators – ‘+ (connecting two strings),’ ‘= (equal)’ and ‘<> (not equal)’ – are available.
l Pose calculation can only be done in <Pose>+<Shift>+<Shift>+<Shift>+… format.
l “*” is the integer division that divides the left value by the right value and then rounds up.
l MOD is an operation to calculate a remainder of a division.
l AND, OR and XOR are bit operators. If these operators need be used as logical operators, operand should be 0 or 1 to assure correct results.
l NOT is only used as bit operator. There is no logical NOT. Deal with such problems using <> properly.
l In case of operation between integers and real numbers, execute operation after automatic type conversion of integer into real number. (Operation result is real number.)