Arithmetic Operations/Functions - Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

04.00
1
840D
840D
NCU 571
NCU 572
NCU 573
1.6

Arithmetic operations/functions

Arithmetic functions are used predominantly for R
parameters and variables (or constants and functions)
of the type REAL. The types INT and CHAR are also
permitted.
Standard mathematical notation is used in arithmetic
operations. Priorities for execution are indicated by
parentheses. Angles are specified for trigonometry
functions and their inverse functions (right angle = 90°).
Operators/arithmetic functions
+
-
*
/
DIV
MOD
: :
Sin()
COS()
TAN()
ASIN()
ACOS()
ATAN2(,)
SQRT()
ABS()
POT()
TRUNC()
ROUND()
LN()
EXP()
CTRANS()
CROT()
CSCALE()
CMIRROR()
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
Addition
Subtraction
Multiplication
Division
Caution: (Type INT)/(Type INT)=(Type REAL); Example: 3/4 = 0.75
Division, for variable type INT and REAL
Caution: (Type INT)DIV(Type INT)=(Type INT); Example: 3 DIV 4 = 0
Modulo division (INT or REAL) produces the remainder of an INT division,
e.g. 3 MOD 4=3
Chain operator (for FRAME variables)
Sine
Cosine
Tangent
Arcsine
Arccosine
Arctangent2
Square root
Absolute number
Square of Z (square)
Truncate to integer
Round to integer
Natural logarithm
Exponential function
Translation
Rotation
Scale change
Mirroring
1.6

Arithmetic operations/functions

Flexible NC Programming
1
1-39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents