OK first you need to add a set of 3 dros to the setting screen just below the TOOL CHANGE POSITION DROs.
Label them Xpos, Ypos, Zpos top to bottom. Set them to
Xpos = UserDro 2000
ypos = UserDro 2001
Zpos = UserDro 2002
Then add this to the M6start and M6end Macros
'M6Start macro
Tool= GetSelectedTool ()
SetCurentTool (Tool)
Xpos= Getoemdro (83)
ypos= GetOemDro (84)
Zpos= GetOemDro (85)
Xtcp= GetOemDro (1200)
Ytcp= GetOemDro (1201)
Ztcp= GetOemDro (1202)
SetOemDro (2000,Xpos)
SetOemDro (2001,Ypos)
SetOemDro (2002,Zpos)
Code "GO"
Code "G53 Z" &Ztcp
While Ismoving
Wend
Code "G53 Y" &Ytcp
While Ismoving
Wend
Code "G53 X" &Xtcp
WHile Ismoving
Wend
End
========================================
'M6end Macro
Yreturn= GetOEMDro (2000)
Xreturn= GetOEMDro (2001)
Zreturn= GetOEMDro (2002)
Code "GO"
Code "G53 x" &Xreturn
While Ismoving
Wend
Code "G53 y" &Yreturn
While Ismoving
Wend
Code "G53 z" &Zreturn
While Ismoving
Wend
END
Remember you must ref home when you start MACH.
(;-) TP