举个例子,铣直径100的孔,用半径25的合金铣刀,下刀位置在零点圆心。刀长是H3,刀径D3输入25.实际加工时,如果需要精加工,刀径一般要比刀实际尺寸略大!G54G90G0X0Y0G43H3Z50.S200M03G0Z10.G01Z-0.1F200G91G42G01X50.D3G02I-50.顺时针旋转,一般选择好G02或G03后G41和G42也就决定下来了。G90G0Z100.G40M05M0以上如果改成Y轴只需要把X50.换成Y50.I-50.换成J-50.其他不变,用完G41和G42一定要在后面加G40取消刀补,有的机床系统不能把G40和G90GOZ100.抬刀写一行,会出现撞刀!
如果用G03编程G54G90G0X0Y0G43H3Z50.S200M03G0Z10.G01Z-0.1F200G91G41G01X-50.D3G03I50.逆时针旋转,G90G0Z100.G40M05M0