Siemens SINUMERIK 840D sl Programming Manual page 387

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Priority of the operators
The operators have the following priorities for execution in the synchronous action (highest
priority: 1):
Priori‐
ty
1
2
3
4
5
6
7
8
9
10
11
Note
It is strongly recommended that the individual operators are clearly prioritized by setting
parentheses "( ... )" when several operators are used in an expression.
Example of a condition with an expression with several operators:
Program code
... WHEN ($AA_IM[X] > VALUE) AND ($AA_IM[Y] > VALUE1) DO ...
Arithmetic functions
Operator
SIN()
COS()
TAN()
ASIN()
ACOS()
ATAN2()
SQRT()
ABS()
POT()
TRUNC()
ROUND()
LN()
EXP()
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Operators
Meaning
NOT, B_NOT
Negation, bit-by-bit negation
*, /, DIV, MOD
Multiplication, division
+, -
Addition, subtraction
B_AND
Bit-by-bit AND
B_XOR
Bit-by-bit exclusive OR
B_OR
Bit-by-bit OR
AND
AND
XOR
Exclusive OR
OR
OR
<<
Concatenation of strings, result type STRING
==, <>, <, >, >=, <=
Relational operators
Meaning
Sine
Cosine
Tangent
Arc sine
Arc cosine
Arc tangent 2
Square root
Absolute value
2nd power (square)
Integer component
The accuracy for comparison commands can be set using TRUNC
Round to an integer
Natural logarithm
Exponential function
Fundamentals
2.15 Other information
387

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents