On 01/25/2012 02:44 AM, gene heskett wrote: > 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: >>> >>> [...] ........ >> 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. >
Well, there's yet another Unix thing, bc man pages sayz: bc - An arbitrary precision calculator language The most basic element in bc is the number. Numbers are arbitrary precision numbers. This precision is both in the integer part and the fractional part. All numbers are represented internally in decimal and all computation is done in decimal. For your amusement: man pages come with EXAMPLES. How about that? > 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. > Not good at G-code. However, myvar=2.195 result=$(echo $myvar | awk 'CONVFMT = "%2.2f"{printf (2.5 * $1)}');echo $result 5.49 result=$(echo $myvar | awk 'CONVFMT = "%2.1f"{printf (2.5 * $1)}');echo $result 5.5 result=$(echo $myvar | awk 'CONVFMT = "%2.4f"{printf (2.5 * $1)}');echo $result 5.4875 result=$(echo $myvar | awk 'CONVFMT = "%2.8f"{printf (2.5 * $1)}');echo $result 5.48750000 seem to work. Note printf. result=$(echo $myvar | awk 'CONVFMT = "%2.8f"{print (2.5 * $1)}');echo $result 5.4875 default "print" ignores formating. > 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. :) > 24 karat? We want pictures :-) > I have nfs working both ways now too, which means I can put pcb-gcode > output files directly on the mill from pcb-gcode. > Cool. >> 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 Sorry can't help you here. -- Rafael ------------------------------------------------------------------------------ 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