11.题目题目备注三维CAD造型部分UG三维模型建模给定AutoCAD二维图(22.dwg)CAM数控代码生成部分UG三轴数控铣削代码生成针对题目一造型结果进行三轴数控铣编程22.dwg的二维图如图1所示:图1零件工程图2.造型及生成CAM数控代码过程2.1造型过程(1)底座造型1)创建毛坯的截面草图,如图2所示:2图2毛坯截面草图2)拉伸60mm,拉伸结果如图3所示:图3毛坯三维造型(2)中间平台造型用布尔求差操作的方法进行中部平台的建模,先绘制草图,如图4所示:3图4布尔求差草图然后进行布尔求差操作,结果如图5所示:图5布尔求差构建中间平台造型(3)上面凸体造型同样利用布尔求差操作构建上边的凸体结构,先绘制草图,如图6所示:4图6布尔求差草图然后进行布尔求差操作,结构如图7所示:图7布尔求差构建上边凸体模型(4)制孔点击“孔”图标,设置好位置以及尺寸参数,进行四个孔的造型,如图8所示:5图8制孔最终模型构建完毕,如图9所示:图9零件的三维造型2.2生成CAM数控代码过程(1)生成铣过程的数控代码1)先建一个图层,以原零件的底面为基准面,绘制毛坯图,形状尺寸和开始构建零件的毛坯体一样,如图10所示:6图10先建图层构造毛坯2)点击“开始”下拉菜单中的“加工”,转到加工窗口,设置加工环境,如图11所示:图11设置加工环境3)创建铣削用的刀具及设置刀具参数,如图12所示:7图12创建刀具4)设置MCS及安全平面,如图13所示:图13设置MCS及安全面5)创建铣削几何体,指定部件和毛坯,如图14所示:8图14创建铣削几何体6)创建工序,选择刀具,设置好各种铣削条件和参数,如图15及图16所示:图15设置铣削条件9图16设置铣削参数7)生成刀轨,如图17所示:图17铣削加工零件的刀具轨迹8)进行3D动画刀具轨迹仿真,如图18所示:10图18刀具轨迹仿真经过后处理生成数控加工代码,见第14页至第26页。(2)生成钻孔过程的数控代码1)创建加工环境为钻孔环境,如图19所示:图19创建加工环境2)创建钻削刀具,直径为12mm的麻花钻头,并设置刀具的其他参数,如图20所示:11图20创建钻削刀具3)创建工序,进行加工工序的刀具路线,具体加工参数及条件的设置,如图21和图22所示:图21创建工序12图22设置钻削参数和条件4)生成刀具路线,如图23所示:图23钻削刀具路线5)钻削模拟动画,如图24所示:13图24钻削模拟动画经过后处理便可生成该零件钻孔的数控代码。详见第26页。3.加工该零件的数控代码(1)铣削加工部分的数控代码:N0010G40G17G90G70N0020G91G28Z0.0:0030T02M06N0040G0G90X-.6299Y-.8781S1200M03N0050G43Z3.1496H00N0060Z2.4415N0070G1Z2.3234F23.6M08N0080X-.315Y-.3466N0090G2X-.1123Y-.0727I1.4395J-.853N0100X.3224Y.315I2.0808J-1.8958N0110G1X.7593Y.6299N0120Z2.4415N0130G0Z3.1496N0140X3.1777N0150Z2.4415N0160G1Z2.3234N0170X3.6146Y.315N0180G2X4.0493Y-.0727I-1.6461J-2.2835N0190X4.252Y-.3466I-1.2369J-1.1269N0200G1X4.5669Y-.8781N0210Z2.4415N0220G0Z3.1496N0230Y-3.0589N0240Z2.4415N0250G1Z2.3234N0260X4.252Y-3.5904N0270G2X4.0493Y-3.8643I-1.4395J.853N0280X3.6146Y-4.252I-2.0808J1.8958N0290G1X3.1777Y-4.5669N0300Z2.4415N0310G0Z3.1496N0320X2.1842Y.6299N0330Z2.4415N0340G1Z2.3234N0350Y.3852N0360X2.4912Y.315N0370G2X3.7001Y-.3909I-.5227J-2.2835N0380X3.8472Y-1.8088I-.8876J-.8087N0390G3Y-2.1282I.2715J-.1597N0400G2X3.7001Y-3.5461I-1.0347J-.609314N0410X2.4912Y-4.252I-1.7316J1.5776N0420G1X2.1842Y-4.3222N0430Y-4.5669N0440Z2.4415N0450G0Z3.1496N0460X.7593N0470Z2.4415N0480G1Z2.3234N0490X.3224Y-4.252N0500G2X-.1123Y-3.8643I1.6461J2.2835N0510X-.315Y-3.5904I1.2369J1.1269N0520G1X-.6299Y-3.0589N0530Z2.4415N0540G0Z3.1496N0550X1.7529Y-4.5669N0560Z2.4415N0570G1Z2.3234N0580Y-4.3222N0590X1.4458Y-4.252N0600G2X.2369Y-3.5461I.5227J2.2835N0610X.0898Y-2.1282I.8876J.8087N0620G3Y-1.8088I-.2715J.1597N0630G2X.2369Y-.3909I1.0347J.6093N0640X1.2015Y.2449I1.7316J-1.5776N0650X1.3614Y.2103I.0515J-.1488N0660G1X1.6523Y-.0659N0670G3X1.7768Y-.1083I.1084J.1142N0680G2X3.3509Y-.709I.1917J-1.8602N0690X2.2741Y-1.6901I-.5384J-.4905N0700G3X1.6629I-.3056J-.2784N0710G2X.5861Y-.709I-.5384J.4905N0720X1.8627Y-.1014I1.3824J-1.2595N0730G1Z2.4415N0740G0Z3.1496N0750X-.0517Y-2.979N0760Z2.5203N0770G1Z2.3234N0780X.2707Y-2.9128N0790G3X.3964Y-2.7548I-.0317J.1543N0800G2X1.6168Y-2.2006I.7281J.0174N0810G3X1.7131Y-2.208I.0528J.0576N0820G1X1.7867Y-2.1587N0830G2X1.9186Y-2.1385I.0876J-.1309N0840G3X2.0995Y-2.0878I.0499J.17N0850G2X2.1606Y-2.0265I.713J-.6496N0860G3Y-1.9105I-.0532J.058N0870G2X2.0995Y-1.8492I.6519J.7109N0880G3X1.8375I-.131J-.1193N0890G2X1.7765Y-1.9105I-.713J.6496N0900G3X1.7517Y-1.9577I.0532J-.058N0910G2X1.662Y-2.073I-.1447J.02N0920G1X1.638Y-2.0827N0930G3X1.6168Y-2.2006I.0267J-.0657N0940G2X1.6629Y-2.2469I-.4923J-.5368N0950G3X2.2741I.3056J.2784N0960G2X3.3509Y-3.228I.5384J-.4905N0970X.5861I-1.3824J1.2595N0980X.4153Y-2.5715I.5384J.4905N0990G1X.1087Y-2.4997N1000X-.6299N1010Z2.4415N1020G0Z3.1496N1030Y-.8781N1040Z2.4028N1050G1Z2.2846N1060X-.315Y-.3466N1070G2X-.1123Y-.0727I1.4395J-.853N1080X.3224Y.315I2.0808J-1.8958N1090G1X.7593Y.6299N1100Z2.4028N1110G0Z3.1496N1120X3.1777N1130Z2.4028N1140G1Z2.2846N1150X3.6146Y.315N1160G2X4.0493Y-.0727I-1.6461J-2.2835N1170X4.252Y-.3466I-1.2369J-1.1269N1180G1X4.5669Y-.8781N1190Z2.4028N1200G0Z3.1496N1210Y-3.0589N1220Z2.4028N1230G1Z2.2846N1240X4.252Y-3.5904N1250G2X4.0493Y-3.8643I-1.4395J.853N1260X3.6146Y-4.252I-2.0808J1.8958N1270G1X3.1777Y-4.5669N1280Z2.402815N1290G0Z3.1496N1300X2.1842Y.6299N1310Z2.4028N1320G1Z2.2846N1330Y.3852N1340X2.4912Y.315N1350G2X3.7001Y-.3909I-.5227J-2.2835N1360X3.8472Y-1.8088I-.8876J-.8087N1370G3Y-2.1282I.2715J-.1597N1380G2X3.7001Y-3.5461I-1.0347J-.6093N1390X2.4912Y-4.252I-1.7316J1.5776N1400G1X2.1842Y-4.3222N1410Y-4.5669N1420Z2.4028N1430G0Z3.1496N1440X.7593N1450Z2.4028N1460G1Z2.2846N1470X.3224Y-4.252N1480G2X-.1123Y-3.8643I1.6461J2.2835N1490X-.315Y-3.5904I1.2369J1.1269N1500G1X-.6299Y-3.0589N1510Z2.4028N1520G0Z3.1496N1530X1.7529Y-4.5669N1540Z2.4028N1550G1Z2.2846N1560Y-4.3222N1570X1.4458Y-4.252N1580G2X.2369Y-3.5461I.5227J2.2835N1590X.0898Y-2.1282I.8876J.8087N1600G3Y-1.8088I-.2715J.1597N1610G2X.2369Y-.3909I1.0347J.6093N1620X1.2015Y.2449I1.7316J-1.5776N1630X1.3614Y.2103I.0515J-.1488N1640G1X1.6523Y-.0659N1650G3X1.7768Y-.1083I.1084J.1142N1660G2X3.3509Y-.709I.1917J-1.8602N1670X2.2741Y-1.6901I-.5384J-.4905N1680G3X1.6629I-.3056J-.2784N1690G2X.5861Y-.709I-.5384J.4905N1700X1.8627Y-.1014I1.3824J-1.2595N1710G1Z2.4028N1720G0Z3.1496N1730X-.0517Y-2.979N1740Z2.4815N1750G1Z2.2846N1760X.2707Y-2.9128N1770G3X.3964Y-2.7548I-.