Siemens SINUMERIK 840DE sl Commissioning Manual page 1108

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840DE 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)
CALC_ASIN(x)
CALC_ACOS(x)
Note
The functions operate with radian measure. The functions SDEG() and SRAD() can be used
for conversion.
Example:
Mathematical functions
Mathematical functions
CALC_CEIL(x)
CALC_FLOOR(x)
CALC_LOG(x)
CALC_LOG10(x)
CALC_POW(x, y)
CALC_MIN(x, y)
CALC_MAX(x, y)
122
VAR2 = 5.2339
VAR1.VAL = SQRT(2)
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
Arc sine of x
Arc cosine of x
Identifier
Determines the next highest integer of x (round up)
Determines the next lowest integer of x (round down)
Determines the (natural) logarithm for the base e of
x
Determines the logarithm for the base 10 of x
Determines x to the power of y
Determines the lower number of x and y
Determines the higher number of x and y
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents