1
General Mach Discussion / Re: m03 floating head programing
« on: March 27, 2017, 10:57:24 PM »This should get you close to what you wanted. You will have to adjust the switch offset to match your machine and the Feedrate to what you want.
'M3 Macro for TOM G31 Version
Cfr = GetDro(18)
Code"G31 Z-5 F20" ok so what does this do the is it the distence from switch Code"G0 Z .080" 'Switch offset ok my swich kicks probe light on at .340 so do i put that in the pierce height then
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