节点文献

基于Windows环境的CNC系统软件设计

Design of CNC System Software Based on Windows Environment

【作者】 乔宗立

【导师】 赵明旺; 程良鸿;

【作者基本信息】 武汉科技大学 , 控制理论与控制工程, 2002, 硕士

【摘要】 随着计算机控制技术的不断发展,传统的制造业逐步进入现代制造模式中。而现代制造技术的核心是计算机数字控制(Computer Numerical Control),即CNC技术。在CNC系统中,系统硬件是CNC技术的基础,而CNC系统软件则是系统的灵魂。论文针对传统CNC系统软件的不足之处,结合计算机软件最新开发技术,以数控机床为对象,系统研究基于WINDOWS环境的CNC系统软件及其开发技术。 与基于DOS平台的传统CNC系统软件相比,新型CNC系统软件采用Windows9X系统作为系统开发平台。相对于DOS环境下的CNC系统软件来说,基于Windows环境的CNC系统软件界面友好,操作方便,软件资源丰富,便于用户选择掌握使用。 传统CNC系统软件开发过程中多采用面向过程的开发模式,这种开发方法导致源程序难以重用,软件不容易扩充、升级,已经开发的软件资源很难在以后的系统开发中重用,软件利用率低。在进行新系统的开发时,编程工作只能重新开始做起,浪费了大量的人力、物力。 开发新型CNC系统软件时,充分利用面向对象理论,采用组件式开发方法。借助于C++Builder开发工具,首先设计出可以实现CNC系统基本功能的可视化数控基本组件,然后利用数控系统基本组件,组装成一个实际的数控系统。由于所有基本组件都是可继承、重用的,所开发的软件组件资源可以在系统的再开发中重新利用,解决了软件资源不能重用的问题。本论文到目前为止,已经设计完成了二维错误检查组件、二维译码组件、二维刀补组件、二维插补组件、端口操作组件、三维错误检查类组件、三维译码组件、三维刀补组件。并利用这些可视化基本组件,组建了一个简单的CNC系统,可以控制一台二轴的数控铣床,进行基本的插补运动,还能调整组件属性,控制一台三轴的数控钻铣床,进行一般的零件加工。 利用可视化CNC系统基本组件进行系统开发时,不需要做很多烦琐的编程工作,只须拖动CNC系统基本组件,设置组件的属性和方法,即可实现数控系统相应的功能,大大简化了数控系统的编程工作。 在Windows 9X系统下开发CNC系统的一个难点在于如何实现实时中断。Windows系统是一个多任务操作系统,其安全机制不允许WIN32程序直接操作中断。作者采用VxD技术,解决了Windows环境下的实时中断问题。

【Abstract】 With the development of CNC technology, the traditional manufactures are going into the modern manufacturing mode . The core of the modern manufacturing technology is Computer Numerical Control , that is to say , it is CNC technology .In the CNC system ,the system hardware is the foundation of the CNC technology , but the CNC system software is the soul of the system. My thesis catches the shortcomings of the traditional CNC software and takesthe Numerical Control Machine tools as a research Object to develop the new CNC system software based on the WINDOWS platform .Compared with the traditional CNC System Software based on the DOS platform , the new CNC System Software is based on the Windows 9X system. In the Windows system, the software interface is more friendly than in the DOS system , and it is more convenient to operate the software in the Windows system. In addition to those advantages , applications in the Windows System are much more than in the DOS system. Further more, it is very difficult to reuse the traditional CNC Softwares just because they were developed with the mode of Process Oriented Programming . When it is needed to develop a new CNC system , the programmers have to program from the beginning . So a lot of software resources are wasted .When developing the new CNC system software , the author made a good use of the Object Oriented theory to develop the CNC System Components. Through developing the CNC System Components with C++Builder 5.0 ,people can assemble a CNC System with these Components . Further more , all the CNC System Components can be reused . By the present time, the author has designed 2D components of checking errors, 2D components of decoding, 2D components of tools’ s compensatingN 2D components of interpolation, components of operating port, 3D components of checking errorss 3D components of decoding 3D components of tool’ s compensating. With these visual basic components, the author has set up a simple CNC system. The CNC system can controls one NC milling machine with two shafts. It proves that the CNC system can do some basic interpolation movement. Through adjusting the property of components, the CNC system can controlone NC milling machine with three shafts to carry out some common machining tasks.All the CNC System Components are visual on the panel .When developing a new system with them , what you should do is to select the proper Components and drag them to the form, setting their prosperities , and everything will be OK. Through this way , we can simplify the work of programming .How to operate the real time interrupts in the Windows 9X is a difficult problem, because the security mechanisms of the Windows system don’ t allow WIN32 applications to operate the interrupts directly .Through using VxD technology , the author solved the real time interrupts in the Windows environment .

【关键词】 CNC系统组件技术VxD技术
【Key words】 CNC SystemComponent technologyVxD
  • 【分类号】TP311.52
  • 【被引频次】5
  • 【下载频次】245
节点文献中: 

本文链接的文献网络图示:

本文的引文网络