摘要
在Windows环境下,采用Visual Basic以及面向对象、模块化的程序设计方法,研究开发了柔性实验平台的软件控制系统.根据实验平台的控制要求,将软件系统划分为客户机模拟实验系统、主控机实验管理系统和教学维护系统三大主要模块.利用WinSock控件实现主控机与客户机间局域网通信,采用纯软件方式编译数控机床NC代码,采用CAN总线实现上下位机之间的通信,结合OpenGL技术实现实验平台执行机构运动过程的三维仿真.经实际应用证明,该软件系统准确地完成了对实验柔性平台的控制,为培养不同层次的数控技术人才提供了理想的实验环境.
The software system of the flexible platform for mechatronics was developed by adopting Visual Basic and object-oriented modularized programming approach basic on Windows environment. According to the requirement of the control, the software system was divided into three parts: simulation system in client, manage system in server and maintain system. Then the method and main point of the system design were explained. Using WinSock to complete the LAN communication of the server and clients, compile NC code by advanced computer language, fulfilled the communication to hardware system with CAN-bus, unite the technology of OpenGL let the 3-D simulation come true. Application on the platform indicates that the software fulfills the control of the experiment platform exactly and supplies perfect experiment environment of training NC engineers.
出处
《东华大学学报(自然科学版)》
CAS
CSCD
北大核心
2009年第3期342-345,370,共5页
Journal of Donghua University(Natural Science)
基金
东华大学质量工程重点项目(103-03-0127017)