苏州大学硕士学位论文汽车钥匙专用铣床数控系统姓名:金小云申请学位级别:硕士专业:机械工程指导教师:傅戈雁2010-11IARM9,CPUX,Y,ZGWINCE5.0EmbeddedVisualC++,AbstractSpecialMillingMachineCNCsystemForCarKeysIISpecialMillingMachineCNCsystemForCarKeysAbstractItiswell-knownthateachcarhasitsspecialkey.However,notoriousistheproblemthatcarkeysareuniversal,whichisoftenfoundinnewspapernews.Researcheshavediscoveredthatthemaincauseoftheproblemisthelowdimensionalaccuracyofthecarkeys,especiallythelowerinclinedsurfaceroughness,whichreducestherecombinationrateofthekeys.ThispaperpresentstheoveralldesignofthekeymillingmachineCNCsystembasedontheanalysisofthecausesthataffectthemachiningaccuracyaccordingtotheprocessingcharacteristicsandthebasicstructureoftheexistingmillingmachine.(1)Thehardwareofthesystem:specializedcomputerisusedwithARM9-basedprocessorhostthatismulti-CPUcontrollingtheX,Y,Zaxistofeedreal-timesynchronizationsoastorealizehardwareinterpolation.(2)Thesoftwareofthesystem:SpecialNCsystemofusersoftwareformillingmachineisdevelopedbyselectingGcodeasitsbackgroundsupportandapplyingEmbeddedVisualC++totheWINCE5.0operatingsystemplatforms.(3)Theestablishmentofthemathematicalmodelofthekeytoothcodingandtheautomaticcodingofkeytoothwiththeuseofbacktrackingalgorithmandselectionfunction.(4)ThepreparationofNCprogramthroughclassifyingthedifferenttypesofkeyswiththegrouptechnology.Experimentshaveshowedthatkeysprocessedbythesystemhavesignificantly-improvedsurfaceroughnessanddimensionalaccuracywithstableoperationandstronganti-interference.Keywords:KeymillingmachineprecisionToothcodeNCprogramminggrouptechnologyWrittenby:JinXiaoyunSupervisedby:FuGeyan1111.11.1.111.11.121.21.231.3121.341.41.451.51.61.5131.6123451.1.2(GB15470-1995)1000[1]199510100141.1.3[2],10-20151.1.4[3][4]AO[5][6]1CNC2CNC[7]3NCAPI4[8]1.216AD-II5-100.03mm1.1.21.312PC32ARM9,CPUX,Y,ZAARM9BCPUCWINCE5.03)WINCE5.0EmbeddedVisualC++AB,2722.12.1.1AD-II()XYZ2.1XYZ2.12.1.22.2282.218XY2.32.42.3YX,Y2.42.2ARM9CPU29X,Y,Z2.2.1(2.5)MCPMDIACTELFPGAFPGAFPGAPC104PC[8][9]PCFPGAPCX,YXnYm2.52.6S3C44B0X16/32RISC510X,Y210LCDUSBCPUX,YZ2I/OSTC89C51RDARM9LCDUSBUSBSTC12C2052ADSTC89C51RDRS232XYZMMMXZYUARTch-02.62.2.2ARM92.7ARM9S3C2410)BootloaderEmbeddedVisualC++WINCE5.02.72111ARM9(S32410),Bootloader,PCBIOS2LINUXWINCEWINCE5.0LCD,WindowsCE[10]A.WindowsCECPUWindowsCE/WindowsCEObjectStoreHeapB.WindowsCEPCInternetWindowsCEWindows9x/NTC.WindowsCEMicrosoftInternetExplorerInternetTrueTypeWindowsCEWindowsCE3DD.WindowsCEWindowsWindowsWindowsCEPocketWordPocketExcelWindowsCEWindowsMediaPlayerMP3WindowsCECompactFlash/MMC/SDWindowsCE.NETWindowsCE3.0WindowsCE.NET212WindowsCE.NETWeb3EmbeddedVisualC++WINCE5.0(2.8)2.8,,,,,2.312132GGG3USBG(4)2142.431533.13.1.1ARMARM9[11]ARMAdvancedRISCMachines1991ARMARM(IP)ARMARM32RISC70ARMARMRISCARMARMARMARMARMARM,ARM,ARM,.ARMUSBLCD1ABLINUXLINUX316C.2832ARMARMSDRAMLCD8webjava3.1.23.11CPU:S3C2410202M2SDRAM:64MB2HY57V561620CT-HNORFLASH:8MB1JS28F640J3DSDCARDinterface:1NANDFLASH:1310/100MNET:1USB-HOST:1USB-DEVICE:1RS232:3I2C:1SPI:24:4.3LCD:SHARPLQ043T3DX01TOUCHSCREEN:14AC97AUDIOINPUT&OUTPUT3.2317S3C2410X(BasedARM920T)ATXPowerInput3.3V3.3V5V12VRegulator(1.8V)IrDAUARTch-2UARTch-1UARTch-0USBHostUSBDeviceUSBHostMAX3232CMAX3232CRTCX-tal(32.7KHz)MainX-tal(12MHz)PCMCIASocketEthemet1SocketEthemet2SocketSmartmediacartsocketAMDflash(Bank0orBank1)STRATAflash(Bank1orBank0)LEDSDRAM(Bank6)PowerLEDResetSwitchstatusLEDUARTCh-3UARTCh-5UARTCh-4ParallelPortPS2MousePS2KeyboardVideoEncoderSPIConnectorKeyboardContIISMICSPEAKERSPKJackDC/DCConverter(3.3V/24V)SDSocketMULTI-ICE(JTAGPort)ADCConnectorJCDConnectorIICTouchpanelVDDRTCVDDaliveVDDMPLLVDDiVDDiarmVDDUPLLVDDIOPeripheralPowerVDDADCVDDMOPControlDATAnGCS0ornGCS1nGCS1ornGCS0DATA/ADDR/ContnGCS6SUPERIO24V3.1ARM3.23183.2CPUXYZ2I/OSTC89C51RD3.33.3319ARM3.13.11Byte2Byte3Byte4Byte5Byte6Byte7Byte8Byte2233NNN(8)N(8)88X1A22330000XXXXXXXXY2A22330000XXXXXXXXZ3A22330000XXXXXXXXBBBB0000BBBBBBBBX0011Y0011Z00118800FFFFFFFF163.311ARM2212ARM42044.14.1.14.11,2,3,453604.1,,,,,,,HJ,,,,,[2],,H[12]H4210-95123454.1.2123456789[13][14]1N23N4N54.24224.2.1{}12,,...,iimhhh=-ijh----jj=12i()imµ----imnm1RK2Rm-1{}'11,1,2,...,1njjjMmhhmjn+=−≠−=−----n2R'()nnMMµ=----'nMn2R{}'',()niiniNmmMmkµ=∈≥----n1R2R'()nnNNµ=----n1R2R,()'nnNuN=()'nuN[15-18]1nMn2R1R,(4.2),ii,:[14][19],ikMik,(k=1,2,.,m,m19m≤≤)4.2,,ikM:4234.2,,,2,3,1,......ilimiiimMMMMM−====(1)iM,ikM,,22(2)iiliMMmM=+−(2),ilM1,1iM−1,2iM−,ilM=1,1iM−+m-21,2iM−(3),2iM1,1iM−1,2iM−,2iM=21,1iM−+(m-2)1,2iM−(4)i=11,1M=11,2M=1,1,2,11,11,2,21,11,21,11,22(2)(2)2(2)1,1iIiiiiiiiMMmMMMmMMMmMMM−−−−=+−=+−=+−==(5)5n2RnM[19][20]2nN424'nM1R3'nM1R'nN'nM12'nN{}'12,,,...,ininmMmhhh∀∈=A.()1imµ=12...nhhh==='nM1mCm=B.()2imµ=im,,()abab≠{}{}1,,2,3,......,1ambm∈∈−1122mCC−{}{}1,,2,3,......,1bmam∈∈−1122mCC−imnab≠imnkan-kbknCk=12,n-1,a,bn11111222311(2)2nknnnnkCCCCC−−−−=×+∑6nR1R211111222311(2)2nknnnnnnkNMmCCCCC−−−−==−−×+∑7R1R2[17][21]{}12,,...,iimhhh=iiijkh0ki〈〈0khj〈〈1231231101010...10iiiijiiChhhhh−−−−=×+×+×++×+12,,...,ihhh4254.2.29129nmnm[12][22][23]nmnm[24][24][25]561111166666426451111111211131114111511211122112311241125131113121313