My machine runs a Fanuc control, and is capable of macro B programming. The following program will Drill 6 holes on a 5 inch hole circle. Is there a way to write a macro to do this.
M45
G28 H0
G0 T0101
G97 G98 S1000 M13
X5.0 Z.5 C30. M8
G83 Z-.350 R-.400 P1000 F10.
C90.
C150.
C210.
C270.
C330.
G80
G0 G99 X8.00 Z4.00 M5
M46
I would like to set it up the same as my other macro's, for example:
O1000
(HOLE CIRCLE PROGRAM)
#1= 1000 (RPM)
#2= 0101 (TOOL)
#3= 10. (IPM)
#4= 6 (NUMBER OF HOLES)
#5= 30. (DEGREES OF FIRST HOLE)
I am not sure if it can be done, but any help would be greatly appreaciated.