N:数控铣床简单好看图形及编程
镜像功能指令G24,G25 ——简化编程的指令
格式:G24 X
Y Z
M98 P
G25 X Y Z
例:如图6.6所示的镜像功能程序
图6.6 镜像功能
%0003
主程序
N10 G91 G17 M03;
N20 M98 P100;
加工①
N30 G24 X0;
Y轴镜像,镜像位置为X=0
N40 M98 P100;
加工②
N50 G24 X0 Y0;
X轴、Y轴镜像,镜像位置为(0,0)
N60 M98 P100;
加工③
N70 G25 X0;
取消Y轴镜像
N80 G24 Y0;
X轴镜像
N90 M98 P100;
加工④
N100 G25 Y0;
取消镜像
N110 M05;
N120 M30;
子程序(①的加工程序):
%100
N200 G41 G00 X10.0 Y4.0 D01;
N210 Y1.0
N220 Z-98.0;
N230 G01 Z-7.0 F100;
N240 Y25.0;
N250 X10.0;
N260 G03 X10.0 Y-10.0 I10.0;
N270 G01 Y-10.0;
N280 X-25.0;
N290 G00 Z105.0;
N300 G40 X-5.0 Y-10.0;
N310 M99;
看书,书上都有啊。
G5入井即充官千厚谁4G0Z50M3S800X0Y0X-100Y-110Z5G1Z-35F200G41Y哥太些婷黄常多倍及-100D1 Y100X100Y-100X-110Z5G0Z50G40X0Y0X0Y-110Z5G1Z-25G41Y-100D1Y0G伯慢赵防雨运围富端错进2I100J0G1Y110游化等解察Z5G0Z50G40X0Y0X-110Y86.603Z5G1Z-1严分调算费创入0G41X-100D1X50X100Y0X50Y-86.603X-50X-100Y0X-42.265Y100Z5G0Z50G40X0Y0X-86.603Y-110Z5G1Z-15G41Y-100D1Y0运养盟德负元铁精英体热G2I86.603J0G1Y110Z5G0Z50G4约江静行皮具0X0Y0X-61.237Y-110Z5G1Z-10G41Y-100D1Y61.237G40X0Y0M5务跟承权找志次报含鲁例M30