A3: Axis Monitoring, Protection Zones
2.5 Examples
Basic Functions
132 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Protection-zone definition with system variables
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
Table 2-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
$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
Table 2-1 Part program excerpt for protection-zone definition: