K8: Geometric machine modeling - only 840D sl
6.2 Commissioning
Example
The 19th protection area element is a box with the dimensions:
● Length: 50.0
● Width: 100.0
● Height: 75.5
Program code
; 19. Protection area element,
N100 $NP_TYPE[18] = "BOX"
N120 $NP_PARA[18,0] = 50.0
N130 $NP_PARA[18,1] = 100.0
N140 $NP_PARA[18,2] = 75.5
6.2.4.11
$NP_OFF
Function
The offset vector by which the local coordinate system of the protection area element is moved
compared to the coordinate system of the previous protection area element should be entered
in the system variable.
Syntax
$NP_OFF[<n>,<i>] = <value>
Meaning
$NP_OFF:
<m>:
<i>:
<value>:
246
Offset 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
; type = "BOX"
; Length = 50.0
; Width = 100.0
; Height = 75.5
Function Manual, 01/2015, 6FC5397-2BP40-5BA2
Special functions