Siemens SINUMERIK 840DE Programming Manual page 58

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Fundamental Principles of NC Programming
2.2 Language elements of the programming language
Operators/mathematical functions
Operators and
mathematical
functions
+
-
*
/
DIV
MOD
:
Sin()
COS()
TAN()
ASIN()
ACOS()
ATAN2()
SQRT()
ABS()
POT()
TRUNC()
ROUND()
LN()
EXP()
Comparison and logic operators
Comparison and logic
operators
==
<>
>
<
>=
<=
AND
OR
NOT
XOR
2-12
Meaning
Addition
Subtraction
Multiplication
Division
Notice!: (type INT)/(type INT)=(type REAL); e.g., 3/4 = 0.75
Division, for variable types INT and REAL
Notice!: (type INT)DIV(type INT)=(type INT); e.g., 3 DIV 4 = 0
Modulo division (INT type only) produces the remainder of INT division, e.g.,
3 MOD 4=3
Chain operator (for FRAME variables)
Sine
Cosine
Tangent
Arcsine
Arccosine
Arctangent2
Square root
Absolute number
2nd power (square)
Truncate to integer
Round to integer
Natural logarithm
Exponential function
Meaning
Equal to
Not equal to
Greater than
Less than
Greater than or equal to
Less than or equal to
AND
OR
Negation
Exclusive OR
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents