Programming instructions

NC Programming 17VRS NC Compiler Functions
12-7
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Notes:
The instruction concerned is executed immediately in the NC blocks in
which the user writes a modal instruction using MODF_ON.
The MODF_OFF instruction de-activates the modal instruction in the
block in which it is programmed.
It must be noted that the modal function (such as MODF_ON(RD 2))
does not have an effect on blocks without axis movements (i.e. without
feed axes). This is also true for contours that were created in the graphi-
cal editor and were saved as function block in the NC program.
1) Drilling holes
X
100 200 300 400
100
200
Y
N8
N9
N10 N11
N12
N15 N14 N13
Fig. 12-5: Example: Drilling holes
;
N0000 T6 M6
N0001 G54 G0 X-10 Y-10 Z50 S3500 M3
;
;**************** G83 - deep hole drilling chip removing **********************
;
N0002 @171=-20.0 depth (abs)
N0003 @172=6.0 chip depth (inc)
N0004 @173=2.0 safety distance (abs)
N0005 @174=0.5 cutter distance (inc)
N0006 @175=0.0 dwell
N0007 @176=250.0 feed rate
;***************************************************************************
;
N0008 X100 Y100 Z10 MODF_ON (BSR .*G83)
N0009 X200
N0010 X300
N0011 X400
N0012 Y200
N0013 X300
N0014 X200
N0015 X100
N0016 MODF_OFF
N0017 T0 M6
N0018 G0 G53 X570 Y490
N0019 M30
Examples