Arithmetic Operations/Functions - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming

1.6 Arithmetic operations/functions

1.6
Arithmetic operations/functions
1.6
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.
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°).
1-18
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents