您好,欢迎访问三七文档
当前位置:首页 > 机械/制造/汽车 > 制造加工工艺 > 虚拟数控车削加工系统研究与实现
虚拟数控车削加工系统研究与实现摘要I中文摘要虚拟加工是应用虚拟现实技术实现对加工过程的动态仿真,其目标是实现加工过程在计算机上的真实再现。目前数控机床已经在制造业中得到广泛应用,为了减少由于试切造成的浪费,需要对数控加工过程进行仿真,以虚拟加工的形式在计算机上完成对数控程序的检验;同时采用虚拟加工技术在对数控机床用户进行培训及数控类课程的教学中也能大大提高教学效果。本文以研制高品质虚拟加工系统为目标,对数控车削加工的二维及三维仿真方法进行了深入研究,针对FANUC0-TD数控系统机床在Windows2000/XP平台上运用VisualC++6.0工具开发了初步的虚拟数控车削加工系统。本文主要完成了以下内容:1.运用软件工程方法完成对虚拟数控车削加工系统的总体分析和框架设计,开发了简洁、友好的用户界面。2.分析数控语言结构,借鉴一般计算机高级语言编译技术,对数控程序进行词法分析、语法分析、语义分析,系统地完成对数控程序各种错误的检验。3.采用代码驱动的方式,开发出基于多线程技术的数控加工过程仿真模块,能够对数控程序进行二维和三维加工的动态仿真。二维动画过程采用了异或动画方法,三维仿真过程基于OpenGL图形库,运用其双缓存技术得以实现。4.开发出基于RS232C的串口通信模块,能够实现该系统与实际机床的通信。5.开发了帮助模块,对该系统现有功能和使用方法做出说明。以上研究成果已经全部集成到本人独立开发的虚拟数控车削加工系统之中,其良好的仿真效果、简洁的用户接口和机床通信功能不仅会给数控加工的教学培训带来方便,也将可以运用于生产实践,具有很好的应用前景。关键词:虚拟现实代码翻译OpenGL串口通信数控车削数控指令Abstract虚拟数控车削加工系统研究与实现IIABSTRACTVirtualcuttingisatechnologywhichcanimplementthecuttingprocessesonthecomputer.Virtualrealityusedtoachievethedynamicsimulationofcuttingprocesses.Nowadays,CNCmachinetoolsareusedwidelyinmanufacturing.Inordertoreducethecostoftestcuts,thesimulationofCNCprocessesisneeded,CNCcodesarecheckedonthecomputerinvirtualcutting.Ontheotherhand,itcanalsoimprovegreatlytheeffectofteachingandtrainingofCNCmachinetools.ThemethodsofCNCturningsimulationin2Dand3Darediscussedinthispaper.AhighqualityvirtualCNCturningsystemhasbeendevelopedontheplatformofWindows2000/XPOSandVC++6.0.Thisprojecthasbeenaccomplishedasfollows:1.ThestructureofvirtualCNCturningsystemisanalyzedanddesignedbyusingmodernsoftwareengineering,succinctandfriendlysysteminterfaceisdeveloped.2.CNCcodestructureisanalyzedandallkindsoferrorsinprogrammingcanbecheckedbyusinglexicalanalysis,syntaxanalysisandsemanticanalysis.3.Thesimulationmodulewhichusedmultithreadingtechnologyisdeveloped.Byusingthecodedrivingmethod,theprocessesofCNCturningcanbesimulated.The2DprocessisimplementedinthemethodsofXORanddraw-erase.The3DsimulationisbasedonOpenGLandimplementedbydoublebuffertechnology.4.TheserialcommunicationmoduleisdesignedtoachievetherealtimecommunicationbetweenthissystemandtheCNCmachinetool.5.Thehelpsystemmoduleisdesignedforuser’seasilygettingsystemhelps.Withitssuccessfulsimulation,interfaceandcommunicationfunctions,thissystemwillbringgreatconveniencenotonlyinCNCteachingbutalsoinpracticeuse.Keywords:VirtualRealityCodetranslationOpenGLSerialcommunicationCNCcuttingCNCinstructioncode虚拟数控车削加工系统研究与实现目录目录第1章绪论........................................................11.1虚拟制造技术概述...........................................................................................................11.2虚拟加工技术的发展及现状...........................................................................................51.3课题来源、研究内容及意义...........................................................................................7第2章系统总体框架................................................92.1系统总体设计..................................................................................................................92.2系统主要类介绍............................................................................................................102.3系统界面........................................................................................................................122.4系统开发平台................................................................................................................132.4.1Win32多线程技术.............................................................................................132.4.2VC++6.0编程方法.............................................................................................152.4.3OpenGL简介.......................................................................................................152.4.4MFC模式下OpenGL编程关键技术....................................................................162.4.5系统帮助的开发................................................................................................182.5本章小结........................................................................................................................19第3章数控代码分析...............................................203.1数控语言结构及其特点................................................................................................203.2数控程序翻译................................................................................................................213.2.1词法分析.............................................................................................................233.2.2语法分析.............................................................................................................263.2.2语义分析.............................................................................................................313.2.3执行翻译.............................................................................................................323.3本章小结........................................................................................................................34第4章虚拟加工过程实现...........................................354.1几何建模技术................................................................................................................354.1
本文标题:虚拟数控车削加工系统研究与实现
链接地址:https://www.777doc.com/doc-293342 .html