Here's a simpler way.
Use search and replace in a word processor to put a G0 in front of
each X. (Search for "X" and replace with "G0 X")
Put the G81 canned drill cycle at the beginning:
G81 Z-.1 F30 R .1 (go down to -.1 at 30 units/minute, come back up)
(to .1 above board at rapid rate.)
That's it. The g81 drilling cycle will repeat at each hole location
in the list below.
Ballendo
P.S. You'd have your "safety block" (init commands) at the beginning
of the file, and your "clean up and get out commands" at the end. But
these would always be the same for a given board thickness and type.
So with one search and replace, and three cut and pastes, you have
converted an excellon file to a g code file. If you have different
drill sizes, you'd add a search and replace to change the excellon
toolchange to the Gcode toolchange.
P.P.S. You won't have to do even this with my machines; as they
understand the excellon file directly.
--- In
Homebrew_PCBs@yahoogroups.com, "Dave Mucha" <dave_mucha@y...>
wrote:
> here is a small snip of one of mine.
>
> X009200Y004950
> X010400Y002250
> X009400Y002250
> X008400Y002250
> X007400Y002250
> X006400Y002250
> X005400Y002250
> X004400Y002250
> X003400Y002250
> X003400Y007050
> X004400Y007050
> X005400Y007050
>
>
> Cartesian coordinates in X and Y that exactly line up to the drill
> holes.