Hi.
Back to my favourite subject, subroutines. I,m boring 18 x 18.5dia holes at various coordinates. As these are only clearance holes I could have quite easily used a simple point to point with a G12, but chose the circle cutting wizard in NFS. I simply used this G code with O1001 at the head and M99 to end. As I was using G52 to move to each position I edited any cutter compensation calls with in the sub. The drive programe was:
g0g49g40g17g80g50g90g98g54g21
m6 t1
m03s7000
m9
g00g43h1z6
g52x107.5y-35
g01z2
m98p1001
g52x0y0
g52107.5y0
g01z2
m98p1001
and so on.
The control ran the first position exactly at the x0 y0 position, not the x107.5 y-35 programed. After trying various permentations with out success, I wrote a new point to point programe to the individual coordinates using the same sub, but for some reason this programe wouldn't run. Now, I realise it isn't the control at fault and that I'm making a fundemental mistake some where, but after several hours of trying different ideas, I'm back to square one. Has using the code from the circle cutting wizard got any thing to do with it and how should I go about writting the simple point to point programe to run the sub, are there any rules for this that I'm not aware of. Coming this far I don't want to give up and resort to G12
Regards