Flexible NC programming
1.3 Arithmetic functions
Job planning
64 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
BOUND ()
Variable value within the defined value range
(see "Variable minimum, maximum and range (MINVAL,
MAXVAL and BOUND) (Page 70)")
CTRANS()
Translation
CROT ()
Rotation
CSCALE()
Change of scale
CMIRROR()
Mirroring
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
Example 1: ATAN2
5 $7$1
5 $7$1
QGYHFWRU
QGYHFWRU
$QJOH r
$QJOH r
VWYHFWRU
VWYHFWRU
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.