This bit of gcode I have been hacking on for at least a month, is one of those multipurpose bits of code that can be customized to control how it works via editing the values of a few variables near the top of the file.
But as I contemplate adding another section to the code by way of copy/paste, with an intervening paragraph of setting new values for the 2nd tool, it strike me that either this code should source a config file, or it could become a callable SUB for the configuration controlling file. So, one, is it possible, and two, whats the prefered order and syntax? The additional functionality involves a tool change, which the original didn't other than specifying a M6 T1 in order to get the backplot to show a 1/4" mill image. All tool path compensation is in this code already and is controlled by an initial tool_dia setting. Board width, a choice of 2 values, is similarly controlled. So to switch from cutting the box joint fingers with the 1/4" mill, to a point cutting roundover bit is a simple matter of telling the gcode a new tool_rad of perhaps 0.015" as opposed to the existing tool_rad derived from a tool_dia of around .243, which with my dull test bit in white pine, causes just enough overcut to establish the glue joint clearance at 2 or 3 thou in the assembled joint. Currently, it also auto-zero's against a 2 walls and bottom brass dohickey mounted on the initial board positioning jig, which is then flipped out of the way to allow the mill access to the end of the mounted board. And while I am buying S4S boards, they do vary in thickness a few thou, so I'll have to add another contact for Z calibration that actually lays on the board. Doing a roundover with a point cutting 1/8 radius tool will require 1 or 2 thou accuracy else it will need a barrel of elbow grease running sandpaper to hide the tip, or the outer edge of the cutter. And unlike the GMC commercial for This Old House, I've not been able to source a barrel of elbow grease. ;-) Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers