机构地区: 华南理工大学机械与汽车工程学院
出 处: 《华南理工大学学报(自然科学版)》 2006年第2期82-87,共6页
摘 要: 为快速设计多任务实时的计算机数控(CNC)系统软件原型,采用模型驱动的方法对其进行需求、结构和行为的建模分析.从需求分析捕获到软件的功能需求,由结构分析把功能需求映射到具体的类或对象,通过行为分析建立这些类或对象的行为操作,解决了主从系统之间的通信接口问题,以确保主从系统可靠地进行信息交互,从而满足了多任务CNC系统软件设计时的需要.文中还通过对通信管理状态机的分析,给出了基于主机通信接口的方案,利用这些方法和方案设计CNC系统的原型并进行测试,所得结果验证了这些方案的可行性. In order to rapidly design a real-time multi-task software prototype of CNC (Computerized Numerical Control) system, the MDD ( Model-Driven Development) method is applied to the modeling analyses of the requirement, the structure and the behavior. Based on the requirement analysis, the functional requirements of CNC software are obtained, and these functional requirements are then mapped into classes or objects via the structure analysis. By the behavior analysis, the actions of these classes or objects are established. Moreover, the problems of communication interface between the host and the slave are solved in the designing of a real-time multi-task CNC system, and the communication reliability is thus guaranteed. Moreover, a communication interface scheme based on HPI (Host Port Interface) is presented by analyzing the communication management state machine. With the proposed method and scheme, a CNC system prototype is designed and tested, and its feasibility is verified.