6481
General Mach Discussion / Re: VB or Brains Question
« on: August 13, 2010, 12:27:45 PM »
(;-) A little more testing shows we can combine a few things and make it better.
The mcode process (m2001) allows the positional date to process first( g0 x1 y1) then the Mcode runs such as
M2001 X1.000 Y1.000 P-1.000 Q.010 R.500 F20 S1000 (moves to the drill point FIRST then preceeds with the drill cycle)
M2001 X2.000 Y2.000 P-1.500 Q.010 R1.000 F5 S500
This simplifies the Gcode program a bit and still allows a self contained Drill cycle WITH lock and unlock as you need.
The mcode process (m2001) allows the positional date to process first( g0 x1 y1) then the Mcode runs such as
M2001 X1.000 Y1.000 P-1.000 Q.010 R.500 F20 S1000 (moves to the drill point FIRST then preceeds with the drill cycle)
M2001 X2.000 Y2.000 P-1.500 Q.010 R1.000 F5 S500
This simplifies the Gcode program a bit and still allows a self contained Drill cycle WITH lock and unlock as you need.