Programming instructions

7-8
NC Events NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
; normal processing
CEV Disable NC event supervision
T1 BSR .M6 Tool change of first tool
G00 G90 G54 G06 G08 Motion commands, interpolation
conditions
X0 Y0 Z10 S3000 M03 Starting position for process
Machining
T0 BSR .M6
@50=0 Initialize variables for the ZOs
O1 Select the 2nd zero offset table
M52 Swing out initiator
G00 G90 G59 G06 G08 Home position, ZO for initiator
X32.5 Y65 Starting position
G01 Z2 F500 M54 Z axis to scan, activate initiator
BEV .GEWB 6 Activate NC event supervision
G01 X97.5 F700 Check for holes
M55 M53 Deactivate initiator and swing
back in
O0 Select the first zero offset table
RET
.GEWB
DEV Deactivate NC event supervision
M55 M53 Deactivate initiator and swing
back in
@51=X-OTD(,,,,1) @52=Y-OTD(,,,,2)
@53=Z-OTD(,,,,3) Note current position
T15 BSR .M6 Change tap
G90 G=54+@50 G06 G08 ZO establishes the tapping
position
G01 X40 Y65 Z10 F2000 M03 S1000 Tapping position
G63 Z-7.5 F2 Tap to depth Z
G63 Z10 F2 S1200 M04 Back out tap
T0 BSR .M6
@50=@50+1 ZO for next hole
M52 Swing out initiator
G00 G90 G59 G06 G08 Home position, ZO for initiator
X=@51+5 Y=@52 Z=@53 Return to position when
interruption occurred
X axis + 5 mm as safety dis-
tance
M54 Activate initiator
EEV Activate NC event supervision
RTS Return to point of interruption
NC program