Siemens SINUMERIK 840D sl Function Manual page 248

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

Advertisement

K8: Geometric machine modeling - only 840D sl
6.2 Commissioning
Meaning
$NP_DIR:
<n>:
<i>:
<value>:
Example
The local coordinate system of the 19th protection area element is rotated around the direction
vector compared to the coordinate system of the previous protection area element. The
direction vector is the unit vector (1; 0; 0), rotated through α=90° in the X/Y plane and β=10°
in the Y/Z plane, in relation to the world coordinate system. The following values result from
this for the individual components of the direction vector:
● X component = cos(α) * cos(β) = cos(90) * cos(10) = 0.0
● Y component = sin(α) * cos(β) = sin(90) * cos(10) ≈ 0.985
● Z component = sin(β) = sin(10) ≈ 0.174
Program code
; 19. protection area element, direction vector
N100 $NP_DIR[18.0] = COS(90) * COS(10)
N110 $NP_DIR[18.1] = SIN(90) * COS(10)
N120 $NP_DIR[18.2] = SIN(10)
248
Direction vector
Data type:
REAL
Range of values: - max. REAL value ≤ x ≤ ± max. REAL value
Default value:
(0.0, 0.0, 0.0)
System variable or protection area element index
Data type:
INT
Range of values: 0, 1, 2, ... ($MN_MM_MAXNUM_3D_PROT_AREA_ELEM -
1)
Coordinate index
Data type:
INT
Range of values: 0 → X; 1 → Y: 2 → Z
Coordinate value
Data type:
REAL
Range of values: - max. REAL value ≤ x ≤ ± max. REAL value
Comment
; 0 = X component
; 1 = Y component
; 2 = Z component
Function Manual, 01/2015, 6FC5397-2BP40-5BA2
Special functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents