Manual: Fanuc Series Oitf Plus Programming
O1001 (SAMPLE PART PROGRAM) ; G21 G90 G40 G80 G49 ; (Safety block: Metric, Absolute, Cancel compensation/cycles) T01 M06 ; (Tool change to Tool 1) G54 G00 X50.0 Y50.0 ; (Select WCS, rapid to start position) S1500 M03 ; (Start spindle CW at 1500 RPM) G43 H01 Z10.0 M08 ; (Tool length offset active, rapid to safe Z height, coolant on) G01 Z-5.0 F250.0 ; (Feed into part at 250 mm/min) X100.0 ; (Linear cut along X axis) G00 Z10.0 M09 ; (Rapid retract, coolant off) G28 G91 Z0 M05 ; (Return Z to home safely, spindle stop) M30 ; (End of program) Use code with caution. 5. Tool Compensation (G41, G42, G43)
P100 : Starting block number of the finished profile contour. Q200 : Ending block number of the finished profile contour. fanuc series oitf plus programming manual