Posts Tagged ‘bells’

ot have all the ‘bells and whis tles’ in cor po rated into it

ot have all the ‘bells and whis tles’ in cor po rated into it In this


hand book, there are sev eral ver sion listed


For the ex am ple at this stage (us ing modal macro call), only the fol low ing as sign ments will be


pro vided – the clear ance R-value as 3 mm (#18), Z-depth as -65 (#26), and the feedrate as 4250


(#9) De vel op ment of the macro O8004 is quite sim ple:


Copyright 2005, Industrial Press Inc, New York, NY –


FANUC CNC Custom Macros


100


Chapter 8


drill Machine


O8004


(SPECIAL TAPPING MACRO)


G90 G00 Z#18


G01 Z-[ABS[#26]] F[#9*08] M05


(FEED-IN AT 80 PERCENT OF FEEDRATE)


Z#18 F[#9*12] M04


(FEED-OUT AT 120 PERCENT OF FEEDRATE)


M05


M03


M99


%


The macro call in the main pro gram will use G65 first (tap ping only):


N81 M06


N82 T07


N83 G90 busbar cutting machine G00 G54 X130 Y110 S850 M03 T08


(MOVE TO HOLE 1)


N84 G43 Z250 H07 M08


(INITIAL LEVEL)


N85 G65 P8004 R30 Z65 F4250


(HOLE 1)


N86 G91 X150 Y100


(MOVE TO HOLE 2)


N87 G65 P8004 R30 Z65 F4250


(HOLE 2)


N88 G91 drilling steel X200 Y120


(MOVE TO HOLE 3)


N89 G65 P8004 R30 Z65 F4250


(HOLE 3)


N90 G91 X130 Y100


(MOVE TO HOLE 4)


N91 G65 P8004 R30 Z65 F4250


(HOLE 4)


N92 G90 G00 Z250 M09


(END OF TAPPING)


N93 G28 Z250 M05


N94 M01


Note that the O8004 macro call had to be re peated with all the data def i ni tions for each hole lo –


ca tion Even a sim ple change to the given def i ni tions would have to be made sev eral times


The CNC pro gram above can be short ened – quite sig nif i cantly – and made more flex i ble, with


the modal macro call G66, and only one call of the macro def i ni tions G67 com mand must be


used to can cel the modal call:


N81 M06


N82 T07


N83 G90 G00 G54 X130 Y110 S850 M03 T08


(MOVE TO HOLE 1)


N84 G43 Z250 H07 M08


(INITIAL LEVEL)


N85 G66 P8004 R30 Z65 F4250


(TAP HOLE 1 – MODAL)


N86 G91 X150 Y100


(MOVE AND TAP HOLE 2)


N87 G91 X200 Y120


(MOVE AND TAP HOLE 3)


N88 G91 X130 Y100


(MOVE AND TAP HOLE 4)


N89 G67


(CANCEL MACRO CALL)


N90 G90 G00 Hydraulic punching machines Z250 M09


(END OF TAPPING)


N91 G28 Z250 M05


N21 M01


Ad di tional im prove ment