5939
« on: April 26, 2011, 09:16:19 PM »
It has always worked here and I showed you the way it works (;-). 46 years of slinging chips here(;-) most of those with those fancy auto machines(;-).
Art is no longer in charge of Mach. Brian is in the middle of recoding everthing.
Wait till you try tool radius offsetting in the SUB (;-)
********OK I could not stand it I tweeked YOUR code just a touch and presto.
#28=4
#36=4
#1=0.000
#2=0.000
#29=1
#3=[360/#36] % define the angle step
#4=0 % zero the angle register
F100
G0 Z1
g0 x#1 y#2 % go to centre of this object
g16 % GO INTO POLAR COORDS
m98 p192 L#36 % DRILL THE RING OF HOLES
g15 % kill the polar angle bit
m30
% this routine drills one hole at a polar position
o192
g0 z1 % prepare to drill
g83 X#28 Y#4 z[0-#29] q3 r1 % DRILL THE HOLE
#4=[#4+#3] % next angle
m99
%
Have a good one, (;-) TP