On Wednesday, January 25, 2012 05:29:19 AM Rafael Skodlar did opine: > On 01/24/2012 11:21 AM, gene heskett wrote: > > On Tuesday, January 24, 2012 01:46:15 PM Rafael Skodlar did opine: > > > > [...] > > > > > > Chuckle, I need that this morning (morning? Duh, it's past 2pm), the > > 2nd cup hasn't kicked in yet. :( > > > > I've now been searching the package repo looking for a sed-like util > > that can do the additions. 4 hours wasted and I am only down the the > > middle of the p's. Sigh. > > > > Cheers, Gene > > Why not try (g)awk? You can search, match strings, and do some math with > it. Of course you could always use a combination of sed, awk and bash, > or simply perl.
I looked at the gawk man page, didn't see any mention of floating point math so I kept on looking. Bash only does integer. Didn't see any mention of sed & math or floating point. It turns out the easiest way is add a G92 x2.195 before the first move in the top of the file, and a G92.1 to clear it at the bottom. But I've changed the location of the tool change, so I'm now making a contact gage to sit on the table to set drill lengths and will add the probing code after each M6. That's a heck of a lot better than having to edit 24k LOC line by line. :) I have nfs working both ways now too, which means I can put pcb-gcode output files directly on the mill from pcb-gcode. >From the properties list, it looks like about 3 hours to make one board plus bit changes & board remounting. Needs more spindle rpms by at least 10x. Question, what ipm feeds for a 60 degree sharp pointed carbide bit, running about 3 thou deep, would be recommended when 2500 revs is all you have? Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) My web page: <http://coyoteden.dyndns-free.com:85/gene> Allen's Axiom: When all else fails, read the instructions. ------------------------------------------------------------------------------ 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 Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users