Protection zones3.2 Activating/deactivating protection zones (CPROT, NPROT)Job planning234 Programming Manual, 02/2011, 6FC5398-2BP40-1BA0ExamplePossible collision of a milling cutter with the measuring probe is to be monitored on a millingmachine. The position of the measuring probe is to be defined by an offset when the functionis activated. The following protection zones are defined for this:• A machine-specific and a workpiece-related protection zone for both the measuring probeholder (n-SB1) and the measuring probe itself (n-SB2).• A channel-specific and a tool-oriented protection zone for the milling cutter holder (c-SB1),the cutter shank (c-SB2) and the milling cutter itself (c-SB3).The orientation of all protection zones is in the Z direction.The position of the reference point of the measuring probe on activation of the function mustbe X = -120, Y = 60 and Z = 80.Program code CommentDEF INT PROTECTB ; Definition of a Help variableDefinition of protection zone G17 ; Set orientationNPROTDEF(1,FALSE,3,10,–10)G01 X0 Y–10X40Y10X0Y–10EXECUTE(PROTECTB); Protection zone n–SB1NPROTDEF(2,FALSE,3,5,–5)G01 X40 Y–5X70Y5X40Y–5EXECUTE(PROTECTB); Protection zone n–SB25HIHUHQFHSRLQWIRUWKHSURWHFWLRQ]RQHRIWKHPHDVXULQJSUREH&6%&6%&6%;=<Q6% Q6%