Siemens SINUMERIK 840D sl Commissioning Manual page 102

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Expanding the Operator Interface (BE1)
3 Syntax
Example:
PRESS(VS1)
VAR01 = 16 SHL 2
VAR02 = VAR02 SHL VAR04
END_PRESS
SHR operator
Syntax:
variable = value SHL increment
value
increment
Function:
Bits are shifted to the right using the function SHR. You can specify both the value
to be shifted and the number of shift increments directly or via a variable.
If the limit of the data format is reached, the bits are shifted beyond the limit without
displaying an error message.
Example:
PRESS(VS1)
VAR01 = 16 SHR 2
VAR02 = VAR02 SHR VAR04
Table 3-12
Mathematical 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.
BE1/3-96
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
;Result = 64
;Convert content of VAR02 to 32-bit unsigned
;and shift content to left by number of bits
;specified in VAR04. Then convert
;32-bit value back to format of
;variable VAR02.
value to be shifted
number of shift increments
;Result = 4
;Same effect as SHL but shift to right
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
© Siemens AG, 2005. All rights reserved
08/2005

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents