Hs朋友:你好!
我帮你编了,程序如下:
%
O0000
(PROGRAM NAME - T10)
(DATE=DD-MM-YY - 顺27-05-17 TIME=HH:MM - 14:25)
N100G21
N102G0G17G40G49G80G9仅差厂儿官蛋云稳停钟现0
( 10. FLAT ENDMILL TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. 往敌兰触- 10.)
N104T1M6
N106G0G90X-71.Y-49.998A0.S1900M3
N108G43H1Z30.
N110Z5.
N112G1Z-2.F100.
N114X71.
N116G0Z30.
N11吧拿路核所县盾8X-71.Y-42.855
N120Z3.
N122G1Z-2.
N124X71.
N126G0Z30.
N128X-71.Y-35.713
N130Z3.
N132G1Z-2.
N134X71.
N136G0Z30.
N138X-71.Y-的行家破坏钟冷德粉编28.57
N140Z3.
N142G1Z-2.
N144X7氧联贵巴粮希差目也有1.
N146G0Z30.
N148X-71.Y-21.428
N150Z3.
N152G1Z-2围建儿图均备.
N154X71.
N156G0Z30.
N158X-71满伯买板灯专己谈波东八.Y-14.285
N16冲牛气据预清内微0Z3.
N162G1Z-2.
N164X71.
N166G0Z30.
N168X-71.Y-7.143
N170Z3.
N172G1Z-2.
N174X71.
N176G0Z30.
N178X-71.Y0.
N180Z3.
N182G1Z-2.
N184X71.
N186G0Z30.
N188X鱼示资的走聚换-71.Y7.143
N190Z3.
N192G1Z-2.
N19祖史石风4X71.
N196G0Z30.
N198X-71.Y14.285
N200Z3.
N202G1Z-2.
N204X71.
N206G0Z30.
N208X-71.Y21.428
N210Z3.
N212G1Z-2行协谁庆.
N214X71.
N216G0Z30.
N218拉犯铁向多庆与门益员局X-71.Y28.57
N220Z3.
N222G1Z-2.
N224X71.
N226G0Z30.
N228X-71.Y3片足汽京传马5.713
N230Z3.
N232G1Z-2.
N234X71.
N236G0Z30.
N238X-71.Y42.855
N240Z3.
N242G1Z-2.
N244X71.
N246G0Z30.
N248X-71.Y49.998
N250Z3.
N2玉庆察案心混需件故缩调52G1Z-2.
N254X71.
N256G0Z30.
N258X-64.75Y-54.75
N260Z3.
N262G1Z-5.
N264日织X64.75
N266Y-47.45
N268X-64.75
N270Y-40.15
N272X64.75
N274Y-32.85
N276X25.25
N278Y-30.
N280G2X25.937Y-25.55R14.75
N282G1X64.75
N284Y-18.25
N286X31.084
N288G2X40.Y-15.25R14.75
N290G1X45.25
N292Y-10.95
N294X64.75
N296Y-3.65
N298X45.25
N300Y3.65
N302X64.75
N304Y10.95
N306X45.25
N308Y18.25
N310X64.75
N312Y25.55
N314X44.204
N316G3X38.212Y32.85R15.25
N318G1X64.75
N320Y40.15
N322X-64.75
N324Y47.45
N326X64.75
N328Y54.75
N330X-64.75
N332Y32.85
N334X-4.95
N336X-14.683Y25.55
N338X-64.75
N340Y18.25
N342X-24.417
N344X-34.15Y10.95
N346X-64.75
N348Y3.65
N350X-43.883
N352X-45.25Y2.625
N354Y-3.65
N356X-64.75
N358Y-10.95
N360X-45.25
N362Y-18.25
N364X-64.75
N366Y-25.55
N368X-45.25
N370Y-32.85
N372X-64.75
N374G0Z30.
N376X65.Y-55.
N378Z3.
N380G1Z-5.
N382X-65.
N384Y55.
N386X65.
N388Y-55.
N390G0Z30.
N392X-45.Y-35.
N394Z3.
N396G1Z-5.
N398X25.
N400Y-30.
N402G2X40.Y-15.R15.
N404G1X45.
N406Y20.
N408G3X30.Y35.R15.
N410G1X-1.667
N412X-45.Y2.5
N414Y-35.
N416G0Z30.
N418M5
N420G91G28Z0.
N422G28X0.Y0.A0.
N424M30
%
镜像功能指令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;
看书,书上都有啊。
毛坯为70㎜×70㎜×18㎜板材,六面已粗加工过,要求数控铣出如图2-23所示的槽,工件材料为45钢。
选择机床设备:根据零件图样要回余求,选用经济型数控铣床即可达到要求。故选用XKN7125型数控立式铣床。
选择刀具:现采用φ10㎜的平底立铣刀,定义为T01,并把该刀具的直径敌控鲜刻结置车输入刀具参数表中。
确定切削用量:切削用量的具体数值应根据该机床性能、相关的手册并结合实际经验确定,详见加工程序。
确定工件坐标系和对刀点:在XOY平面内确定以工件中心为工件原点,Z方向以工件表面为工件原点,建立工识沙袁永西背待件坐标系,如图2-23所示。 采用手动对刀方法(操作与前面介绍的数控铣床对刀方法相同)把点O作为对刀点。
编写程序:按该机床规定的指令代码和程序段格式,把加工零件的全部工艺过程编写成程序清单。 考虑到加工图示的槽限改础,深为4㎜,每次切深为2㎜,分二次加工完,则为编程方便,同时减少指令条吧放耐值孔数,可采用子程序。
该工件的加工程序如下(该程致酸层封升策还序用于XKN7125铣床):
N0010 G00 Z2 S800 T1 M03
N0020 X15 Y0 M08
N0030 G20 N01 P1.-2;调一次子程序,槽深为2㎜
N0040 G20 N01 P1.-4;再调一次子程序,槽深为4㎜
N0050 G01 Z2 M09
N0060 G00 X0 Y优生国举治0 Z150
N0070 M抓手批02;主程序结束
N0010 G22 费诗批犯N01;子程序开始
N0020 G云手陈兵队代运助绍情想01 ZP1 F80
N0030 G03 X15 Y0 I-15 J0
N0040 G01 X20
N0050 G03 X20 YO I-20 J0
N0060 G41 G01 X25 Y15 ;左刀补铣四然响干角倒圆的正方形
N0070 G读台怕武支士03 X15 Y25 I-10 J0
N0080 G01 X-15
N0090 G03 X-25 Y15 I0 J-10
N0100 G01 Y县介兴植-15
N0110 G03 X-15 Y-25 I10 J0
N0120 G01 X15
N0130 G03 X25 Y-15 I0 J10
N0140 G01 Y0
N0150 G40 G01 X15 Y0;左刀补取消
N0政永油个买阻评160 G24;主程序结束