On Tue, 2012-01-24 at 18:04 -0500, gene heskett wrote:
> if I can insert those few lines of code after the M6 T# command. 

If you add:

[EMCIO]
TOOL_CHANGE_AT_G30 = 1

Then M6 will move to the G30 position, which you've cleverly set right
above the probe switch. Admittedly, you must then call the probe
subroutine, but a little sed-fu [grin] should do the trick if pcb2gcode
doesn't have an option buried in there to wrap some user code around the
tool change.

The sourceforge pcb2gcode page has a bullet item:

    output can be adjusted for automated height probing, see
http://www.cnczone.com/forums/showthread.php?t=82628

That discussion points to:

http://www.cnczone.com/forums/pcb_milling/82628-cheap_simple_height-probing.html

Which seems to be a generalized planar-surface probe process that's
likely too complex. All you must do is insert a G38.2 probe-and-set
subroutine, because you've already solved the PCB flatness and alignment
problems. Some sed-fu should do the trick.

I vaguely recall reading that stuff while building my hand-hewn G-Code
routines. Mercifully, those didn't have the problem of integrating with
anything else in the known universe...

-- 
Ed
http://softsolder.com



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to