O10003 %Drill Bottom Flange
IF [#4 EQ 0] GOTO 1000
IF [#5 EQ 0] GOTO 2000
M0 (COULD NOT FIND I OR J, Stop Machine and Check Program) %Will show in status bar if there is a problem.
GOTO 4000
N1000
G90 G54.1 P3 (Drill Single Hole, Bottom Flange, J End)
#7 = #24
GOTO 3000
N2000
G90 G54.1 P30 (Drill Single Hole, Bottom Flange, I End)
#7 = [0-#24]
GOTO 3000
N3000
%M10 Disabled until macro is created
%M15 Disabled until macro is created
%M20 Disabled until macro is created
%M03 M07 Disabled for testing
G00 Z[[13-#102]-0.5]
G00 X#7 Y[[#103/2]+#25]
G01 Z[[13-#102]+#6+#503] F100
G00 Z[[13-#102]-0.5]
GOTO 4000
N4000
#7 = 0
G54
M99
%