3.1.3 Instructions
3.1.3.1 Arithmetic functions
Operator / arithmetic function Meaning
+ Addition
- Subtraction
* Multiplication
/
1)
Division
1)
DIV
1)
Integer number division
1)
MOD
1)
Modulo division (supplies the remainder of the integer number divi‐
sion)
1)
: Chain operator for FRAME variables
SIN() Sine
COS() Cosine
TAN() Tangent
ASIN() Arc sine
ACOS() Arc cosine
ATAN2(,)
1)
Arc tangent2
1)
SQRT() Square root
ABS() Absolute value
POT() 2nd power (square)
TRUNC() Integer component
The accuracy for comparison commands can be set using TRUNC
(see "Precision correction on comparison errors (TRUNC)
(Page 444)")
ROUND() Round to integer
LN() Natural logarithm
EXP() Exponential function
MINVAL () Lower value of two variables
(see "Variable minimum, maximum and range (MINVAL, MAXVAL
and BOUND) (Page 424)")
MAXVAL () Larger value of two variables
(see "Variable minimum, maximum and range (MINVAL, MAXVAL
and BOUND) (Page 424)")
BOUND () Variable value within the defined value range
(see "Variable minimum, maximum and range (MINVAL, MAXVAL
and BOUND) (Page 424)")
CTRANS() Offset
CROT () Rotation
CSCALE() Change of scale
CMIRROR() Mirroring
1) See the paragraph, "Examples"
Work preparation
3.1 Flexible NC programming
NC programming
440 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0