HIYA STEVE, I ran itno a problem with this macro. IN the G65 call Instead of the Parameter "A(#1)" being used to set the starting point angle for the macro Mach4 is trying to rotate the A axis to 45 deg at a VERY slow rate.
O0008 (Main program)
N005 G54 G90 S800 M03 T02 F100(Select coordinate system, absolute mode, start spindle, get next tool ready)
N010 G00 X3.0 Y2.5 (Rapid to center of bolt hole pattern)
N015 G43 H01 Z.1 (Instate tool length compensation, rapid up to workpiece)
N020 G65 P1008 X3.0 Y2.5 Z0 R1.75 D0.75 A45.0 H8.0 C81. F50 (Machine entire bolt hole pattern with drilling cycle)
M30
O1008 (Custom macro to machine bolt hole circle)
#101=1 (Initialize counter)
#102=#1 (Initialize current angle to A)
#103=360 / #11 (Constant for incremental angular distance between holes)
#104=#26 + 0.1 (Constant for rapid approach plane)
#105=#26 - #7 (Constant for Z bottom position of hole)
N1 IF [#101 GT #11] GOTO 99 (Test if loop is finished)
#110=#24 + COS[#102] * #18 (Calculate X position for current hole based on current angle)
#111=#25 + SIN[#102] * #18 (Calculate Y position for current hole based on current angle)
G#3 X#110 Y#111 R#104 Z#105 F#9 (Machine current hole)
G80 (Cancel cycle)
#101=#101 + 1 (Step counter)
#102=#102 + #103 (Step current angle)
GOTO 1 (Go back to test at loop beginning)
N099
M99 (End of custom macro)
(;-) TP