Program code Comment
CPROTDEF(2,TRUE,3,–100,–150) ; protection zone c–PZ2
G01 X0 Y–10
G03 X0 Y10 J10
X0 Y–10 J–10
EXECUTE(PROTZONE)
CPROTDEF(3,TRUE,3,–150,–170) ; protection zone c–PZ3
G01 X0 Y–27.5
G03 X0 Y27.5 J27.5
X0 Y27.5 J–27.5
EXECUTE(PROTZONE)
; activating protection zones:
NPROT(1,2,–120,60,80) ; activate protection zone n–PZ1 with offset
NPROT(2.2,–120,60,80) ; activate protection zone n–PZ2 with offset
CPROT(1,2,0,0,0) ; activate protection zone c–PZ1
CPROT(2,2,0,0,0) ; activate protection zone c–PZ2
CPROT(3,2,0,0,0) ; activate protection zone c–PZ3
Further information
Activation status after the control powers up
A protection zone can already be active after the control system powers up and the axes have
been referenced. This is the case if, for the protection zone, the following system variable is set
to TRUE:
● $SN_PA_ACTIV_IMMED[<n>] (for machine-specific protection zone) or
● $SC_PA_ACTIV_IMMED[<n>] (for channel-specific protection zone)
Index "<n>" corresponds to the number of the protection zone: 0 = 1. Protection zone
The protection zone is activated with status = 2 – and without offset.
Multiple activation of a protection zone
A machine-specific protection zone can be active simultaneously in several channels (e.g.
protection zone of a tailstock where there are two opposite sides). The protection zones are
only monitored if all geometry axes have been referenced.
A protection zone cannot be activated simultaneously with different offsets in a single channel.
Protection zone monitoring for active tool radius compensation
For active tool radius compensation, a functioning protection zone monitoring is only possible
if the plane of the tool radius compensation is identical to the plane of the protection zone
definitions.
Work preparation
3.6 Protection zones
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 581