Hi Rich et al
I have solved the problem and finished the new macros.
It was related to division of already fractional numbers by others, some negatively signed.
It resulted in an output at one stage of
G0 Z--0.002 which caused the Mach syntax error.
I had not used such low numbers in my tests, compared to the delicacy of your work, most of mine is agricultural!
The new macros will work on either lathe or mill and can incrementally repeat drill along a single plane.
Repeat calls to the macros can be used to program a complete pattern grid of holes.
There are a lot of examples, including some imperial ones based on your figures, all of which work on my set up.
The parameters and required syntax have changed slightly from the original version to allow the new features.
Read the README file and all will become clear.
Hope these do what you want now.
The original macros have been removed
Download new macros from
HERE (Updated 30th Dec 2009 - re-download optional - small tweak makes pecking a little faster)
regards
Melee