Programming
The usual mathematical notation is used for arithmetic functions. Priorities for execution are
indicated by parentheses. Angles are specified for trigonometry functions and their inverse
functions (right angle = 90°).
Examples
Division: /
(type REAL) = type INT or type REAL) / (type INT or type REAL);
Example: 3 / 4 = 0.75
Integer number division: DIV
(type INT) = (type INT or REAL) / (type INT or REAL);
Example: 7 DIV 4.1 = 1
Modulo division (supplies the remainder of the integer number division): MOD
(type REAL) = (type INT or REAL) MOD (type INT or REAL);
Example: 7 MOD 4.1 = 2.9
Arc tangent 2: ATAN2
The arithmetic function ATAN2 calculates the angle of the total vector from two mutually
perpendicular vectors.
The result is in one of four quadrants (-180° < 0 < +180°).
The angular reference is always based on the 2nd value in the positive direction.
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Work preparation
3.1 Flexible NC programming
441