Siemens SINUMERIK 840Di sl Programming Manual page 59

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Operators/mathematical functions
Operators and
mathematical
functions
+
-
*
/
DIV
MOD
:
Sin()
COS()
TAN()
ASIN()
ACOS()
ATAN2()
SQRT()
ABS()
POT()
TRUNC()
ROUND()
LN()
EXP()
MINVAL
MAXVAL
BOUND
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
2.2 Language elements of the programming language
Meaning
Addition
Subtraction
Multiplication
Division
Notice: (type INT)/(type INT)=(type REAL); example: 3/4 = 0.75
Division, for variable types INT and REAL
Notice: (type INT)DIV(type INT)=(type INT); example: 3 DIV 4 = 0
Modulo division (only for type INT) produces remainder of INT division;
Example 3 MOD 4=3
Chain operator (for FRAME variables)
Sine
Cosine
Tangent
Arcsine
Arccosine
Arctangent2
Square root
Absolute number
2. 2nd power (square)
Truncate to integer
Round to integer
Natural logarithm
Exponential function
Smaller value, two variables
Higher value, two variables
Variable value that lies in the defined value range
Fundamental Principles of NC Programming
59

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents