Siemens SINUMERIK 840D sl Commissioning Manual page 694

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Programming commands
6.1 Operators
Use
ROUND is controlled by the user with two parameters:
VAR1 = 5,2328543
VAR2 = ROUND( VAR1, 4 )
Result:
VAR1 contains the number to be rounded. The parameter "4" indicates the number of
decimal places in the result, which is placed in VAR2.
Trigonometric functions
Trigonometric functions
SIN(x)
COS(x)
TAN(x)
ATAN(x, y)
SQRT(x)
ABS(x)
SDEG(x)
SRAD(x)
Note
The functions operate with radian measure. The functions SDEG() and SRAD() can be used
for conversion.
Example:
Constants
Constants
PI
FALSE
TRUE
Example:
76
VAR2 = 5,2339
VAR1.VAL = SQRT(2)
VAR1.VAL = PI
Identifier
Sine of x
Cosine of x
Tangent of x
Arc tangent of x/y
Square root of x
Absolute value of x
Conversion to degrees
Conversion to radian
3.14159265358979323846
0
1
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents