On Monday 30 April 2007, Dean Hedin wrote:
>Gene,  I think what you want to do now is generate a g-code file
>that moves to all the points on the grid of the region that you want to
>scan.
>
>The fragment below shows raster in y direction at .1 unit intervals, from a
>rapid height of .5 in z
>
>(PROBEOPEN probefile.txt)
>G00 X 1.0 Y 1.0 Z 0.5
>G38.2   X 1.0 Y 1.0 Z 0.0
>G00 X 1.0 Y 1.1 Z 0.5
>G38.2   X 1.0 Y 1.1 Z 0.0
>G00 X 1.0 Y 1.2 Z 0.5
>G38.2   X 1.0 Y 1.2 Z 0.0
>.
>.
>.
>(PROBECLOSE)
>
A great place to practice coding a subroutine I believe. :-)

>Maybe you can use a spreadsheet to assist in creating the above.
>
That is of course assuming that what I want to carve is laid out on the same 
grid, which of course it will not be since bezier etc curves can go anyplace 
in between.  So I'll need to find the 4 points that surround the instant 
position of the bit as it follows the curves, then do a straight line 
interpretation between the two diagonals, proportional to the step size, and 
massage the z data to place the bit at that depth when it has reached the 
commanded position.

>I suspect the probe file just stores the coordinates for X Y Z A B C 
>at each probe point.
>
>You will have hand edit the probe file in order to get usable g-code that
>you can feed back into EMC.

Even that would be a large undertaking due to the sheer size of the probe 
file.  And something that would be better done, and with fewer mistakes, with 
a filter program of some sort.  If I have to write it, well, my C is a little 
rusty but I think I could come up with something that works eventually.

-- 
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)
Go on, EMOTE!  I was RAISED on thought balloons!!

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to