Examples
4.2 Protection zones
Basic logic functions: Axis monitoring, protection zones (A3)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
69
Protection-zone definition in the part program
Table 4-1 Part program excerpt for protection-zone definition:
DEF INT AB
G18
; Definition of the working plane
NPROTDEF(1,FALSE,0,0,0)
; Definition beginning: Protection
zone for spindle chuck
G01 X100 Z0
; Contour description: 1. Contour
element
G01 X-100 Z0
; Contour description: 2. Contour
element
G01 X-100 Z110
; Contour description: 3. Contour
element
G01 X100 Z110
; Contour description: 4. Contour
element
G01 X100 Z0
; Contour description: 5. Contour
element
EXECUTE(AB)
; End of definition: Protection
zone for spindle chuck
CPROTDEF(1,FALSE,0,0,0)
; Definition beginning: Protection
zone for workpiece
G01 X80 Z0
; Contour description: 1. Contour
element
G01 X-80 Z0
; Contour description: 2. Contour
element
G01 X-80 Z40
; Contour description: 3. Contour
element
G01 X80 Z40
; Contour description: 4. Contour
element
G01 X80 Z0
; Contour description: 5. Contour
element
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 Valu
e
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