Programming instructions
NC Programming 17VRS Commands for Controlling Processes and Programs
9-13
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
CAUTION
All reverse vectors are cleared upon a control-reset. The
branch label of the reverse program points to the basis
reverse vector .HOME. The NC blocks that are defined
by the reverse vectors (REV) are no longer processed.
Merely the NC blocks of the base reverse vector .HOME
are included.
Example
; Tool changing program.
N0000 .M6
; install new tool?
N0001 .M6_TOL
@0:00=TLD(,0,1,1,0,5,) Read tool no. spindle 1
N0002 @0:00=@0:00-T BEQ .M6_T0 Must tool be changed?
; Magazine positioning
N0003 BTE .M6_BAC T0 programmed ?
N0004 MTP Move to programmed
location
N0005 BRA .M6_TCH
N0006 .M6_BAC
MFP Move to free location
; tool change
N0007 .M6_TCH
G40 G47 G53 G90 M9 Tool correction OFF,
Machine zero point,
absolute dimension
N0008
SE 0:15
N0009 G0 Z392 M19 S90 MRY REV .RM6_2 Z axis and spindle in
change position
N0010 Q1 REV .RM6_3 Close gripper
N0011 Q2 REV .RM6_4 Loosen tool
N0012 TMS REV .RM6_5
N0013 Q7 REV .RM6_6 Extend gripper
N0014 Q3 REV .RM6_7 Rotate gripper
N0015 Q8 REV .RM6_8 Retract gripper
N0016 Q6 REV .RM6_9 Spindle clamp closed
N0017 Q5 REV .RM6_10 Open gripper
N0018 RE 0:12 Transfer: G1 ->
Spindle, G0 -> Mag.
N0019 TSM REV .RM6_12
N0020
RE 0:15
N0021 BTE .M6_T0 was T0 programmed?
N0022 G48 [ ] RTS
;changing tools not necessary (tool already in spindle) or
;T0 has been programmed
N0023 .M6_T0
N0024 [ ] RTS
;