Examples
4.1 Definition and activation of protection zones
Axis Monitoring, Protection Zones (A3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
4-3
EXECUTE(AB) ; End of definition: Protection zone for
workpiece
CPROTDEF(2,TRUE,0,0,0) ; Definition beginning: Protection zone
for tool holder
G01 X0 Z-50 ; Contour description: 1. Contour element
G01 X-190 Z-50 ; Contour description: 2. Contour element
G03 X-210 Z-30 I-20 ; Contour description: 3. Contour element
G01 X-210 Z20 ; Contour description: 4. Contour element
G01 X0 Z50 ; Contour description: 5. Contour element
G01 X0 Z-50 ; Contour description: 6. Contour element
EXECUTE(AB) ; End of definition: Protection zone for
tool holder
Protection zone definition with system variables
Table 4-2 Protection zone: Spindle chuck
System variable Value Comment
$SN_PA_ACTIV_IMMED
[0]
0 ; Protection zone for spindle chuck not immediately active
$SN_PA_T_W[0] " " ; Machine-related protection zone for spindle chuck
$SN_PA_ORI[0] 1 ; Orientation of the protection zone: 1= 3. and 1st geometry axis
$SN_PA_LIM_3DIM[0] 0 ; Type of limitation in the third dimension: 0 = No limit
$SN_PA_PLUS_LIM[0] 0 ; Value of the limit in the positive direction in the 3rd dimension
$SN_PA_MINUS_LIM[0] 0 ; Value of the limitation in the negative direction in the 3rd
; dimension
$SN_PA_CONT_NUM[0] 4 ; Number of valid contour elements
$SN_PA_CONT_TYP[0,
0]
1 ; Contour type[i] : 1 = G1 for even,
; Protection zone for spindle chuck, contour element 0
$SN_PA_CONT_TYP[0,
1]
1 ; Contour type[i] : 1 = G1 for even,
; Protection zone for spindle chuck, contour element 1
$SN_PA_CONT_TYP[0,
2]
1 ; Contour type[i] : 1 = G1 for even,
; Protection zone for spindle chuck, contour element 2
$SN_PA_CONT_TYP[0,
3]
1 ; Contour type[i] : 1 = G1 for even,
; Protection zone for spindle chuck, contour element 3
$SN_PA_CONT_TYP[0,
4]
0 ; Contour type[i] : 0 = not defined,
; Protection zone for spindle chuck, contour element 4
$SN_PA_CONT_TYP[0,
5]
0 ; Contour type[i] : 0 = not defined,
; Protection zone for spindle chuck, contour element 5
$SN_PA_CONT_TYP[0,
6]
0 ; Contour type[i] : 0 = not defined,
; Protection zone for spindle chuck, contour element 6
$SN_PA_CONT_TYP[0,
7]
0 ; Contour type[i] : 0 = not defined,
; Protection zone for spindle chuck, contour element 7
$SN_PA_CONT_TYP[0,
8]
0 ; Contour type[i] : 0 = not defined,
; Protection zone for spindle chuck, contour element 8
$SN_PA_CONT_TYP[0,
9]
0 ; Contour type[i] : 0 = not defined,
; Protection zone for spindle chuck, contour element 9