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.
G97 G98 S1000 M13
X5.0 Z.5 C30. M8
G83 Z-.350 R-.400 P1000 F10.
G0 G99 X8.00 Z4.00 M5
I would like to set it up the same as my other macro's, for example:
(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.
Yes, it can be done. there are few way you can mipulate these one with Do-While or you can use if and go statement.
The best way to learn is trial error.