资源描述:
《计算机辅助制造讲义》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Chapter6NumericalControlProgramming6.1NCpartprogramming6.2Manualpartprogramming6.3Computer-assistedpartprogramming6.4CADpartprogramming6.5NCcutter-pathverification6.6Analyticalgeometryforpartprogramming6.1NCPARTPROGRAMMING/数控编程IntroductionCoordinateSy
2、stems/坐标系NCWords/控制字6.1.1CoordinateSystem/坐标系Cartesiancoordinatesystem:笛卡尔坐标系thexyzsystemisaright-handsystemPositivemotion:movingthecuttingtoolawayfromtheworkpiece.6.1.1CoordinateSystem/坐标系ZAXISworkpiece-rotatingmachine:Zisparalleltothespindletool-rotatingm
3、achine:ZisparalleltothetoolaxisZZZZ//rotatingspindle6.1.1CoordinateSystem/坐标系XAXISworkpiece-rotatingmachine:Xisthedirectionoftoolmovementhorizontalmillingmachine:Xaxisisparalleltothetableverticalmachine:+Xaxispointstotherightwhentheprogrammerisfacingthemach
4、ine.ZZZXXXX//table6.1.5NCWords/控制字N,G,X,YZ,A,B,C,I,J,K,F,S,T,R,MN:specifythesequencenumberG:preparatoryword(准备功能代码)toprepareforcontrolfunctions(themotionofeachaxis,coordinatesystem,coordinateplane,cutterradiuscompensation,toollengthoffset……)M:miscellaneousw
5、ord(辅助功能代码)tocontrolmiscellaneousfunctions(spindleon/off,start/stopthemachine,turnon/offthecoolant,changethetool,andrewindtheprogramtape)6.1.5NCWords/控制字6.1.5NCWords/控制字M00ProgramstopM06ToolchangeM01OptionalstopM07FloodcoolantonM02EndofprogramM08Mistcoolant
6、onM03SpindleCWM09CoolantoffM04SpindleCCWM30EndoftapeMCODES6.1.5NCWords/控制字Modalcodesandnonmodalcodes/模态和非模态代码modalfunctionsModalfunctionsstayactiveuntilsomeothercommandchangesit.Modalcommandsarearrangedinsetscalled“modalgroups(模态组)”,andonlyonememberofamodal
7、groupmaybeinforcesatanygiventime.non-modalfunctionsNon-modalfunctionshaveeffectonlyonthelinesonwhichtheyoccur.6.1.5NCWords/控制字modalgroups/模态组6.1.5NCWords/控制字M00ProgramstopM06ToolchangeM01OptionalstopM07FloodcoolantonM02EndofprogramM08MistcoolantonM03Spindle
8、CWM09CoolantoffM04SpindleCCWM30EndoftapeMCODESmodalgroups/模态组6.1.5NCWords/控制字N,G,X,Y,Z,A,B,C,I,J,K,F,S,T,R,MF:feedrateofthetoolmotionS:cutting-speedT:toolnumber6.1.5NCWords/控制字X,Y,Z,A,B,C:providethecoo