4351
General Mach Discussion / Re: m03 floating head programing
« on: May 13, 2012, 10:27:05 AM »
YES the G28.1 can be used BUT with a G31 routine you can STILL have the Z home to the top AND the G68 part rotation will work. With the G28.1 method those 2 functions will not work.
G28.1 version
'M3 Macro for TOM G31 Version
Cfr = GetDro(18)
Code"G28.1 Z0 "
While Ismoving()
Wend
Code"G92 Z0"
While Ismoving()
Wend
Code"G0 Z .080" 'Switch offset
While Ismoving()
Wend
Code"G92 Z0.000"
While Ismoving()
Wend
COde" G0 Z0.120" 'Pierce Height
While Ismoving()
Wend
SetDro(18,Cfr)
While Ismoving()
Wend
DoOemButton(110) 'Fires Torch reset THC height
END
G28.1 version
'M3 Macro for TOM G31 Version
Cfr = GetDro(18)
Code"G28.1 Z0 "
While Ismoving()
Wend
Code"G92 Z0"
While Ismoving()
Wend
Code"G0 Z .080" 'Switch offset
While Ismoving()
Wend
Code"G92 Z0.000"
While Ismoving()
Wend
COde" G0 Z0.120" 'Pierce Height
While Ismoving()
Wend
SetDro(18,Cfr)
While Ismoving()
Wend
DoOemButton(110) 'Fires Torch reset THC height
END