Flexible NC programming
1.6 Arithmetic operations/functions
Job planning
1-18 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.6 1.6 Arithmetic operations/functions
Function
The arithmetic functions are primarily for R parameters and variables (or constants and
functions) of type REAL. The types INT and CHAR are also permitted.
Arithmetic function ATAN2( , )
The function calculates the angle of the total vector from two mutually orthogonal vectors.
The result is in one of four quadrants (–° < 0 < +180°). The angular reference is always
based on the 2nd value in the positive direction.
9HFWRU
9HFWRU
$QJOH r
$QJOH r
5 $7$1
5 $7$1
9HFWRU
9HFWRU
The accuracy for comparison commands can be set using TRUNC( )
See "Accuracy correction for comparison commands"
Programming
The usual mathematical notation is used for arithmetic operations. Priorities for execution are
indicated by parentheses. Angles are specified for trigonometry functions and their inverse
functions (right angle = 90°).