Fanuc G81 drilling cycle is used for simple drilling operations, so here is a cnc program example which demonstrates how G81 drilling cycle can be used.
N1 T1 M06 N2 G90 G54 G00 X.3 Y1.2 N3 S1200 M03 N4 G43 H01 Z1. M08 N5 G81 Z-.6 R.1 F10 N6 X1.2 Y.3 N7 G80 G00 Z1. M09 N8 G28 G91 Z0. M05 N9 M30
Once G81 drilling canned cycle is defined, the canned cycle is repeated at every X-Y position in sequential blocks, G80 code is used to cancel G81 drilling cycle.
N1- Tool change to tool no.1
N2- Tool rapidly moves to first drilling position X0.3 Y1.2 while taking into account Zero-offset-no. 1
N3- Drill starts rotating clockwise with 1200 rpm.
N4- Drill takes depth Z1. taking into account tool length compensation (G43 H01), coolant is turned on.
N5- Drilling cycle parameters, drill depth and cutting feed are given, with this command first drill is made at current position (X0.3 Y1.2).
N6- As drilling cycle continues it’s work with every axis movement so next drill is done at X1.2 Y0.3
N7- Drilling cycle is canceled with G80 command, Coolant is turned off.
N8- As operation for this component is finished, so cutting tool is taken to reference position, and cutter rotation is stopped.
N9- CNC part-program is ended.
G & M Codes
|T||Tool no. used.|
|M06||Tool change command.|
|G54||Zero offset no.1|
|M03||Cutter rotation Clockwise|
|G43||Tool length compensation.|
|G81||Fanuc drilling cycle.|
|G80||Canned cycle cancel.|
|G28||Return to reference position.|
|M05||Cutter rotation stop.|
|M30||CNC part-program end with return to program-start.|