分析了嵌入式实时操作系统的特点,其与通用操作系统相比更适合嵌入式数控系统的设计。选用μC/OS—Ⅱ并以模块化的思想设计了基于MC68F375和MCX314的嵌入式数控系统硬件平台,对软件结构进行了层次划分,以功能应用为目标对应用软件进行了模块化设计,以实时性强弱为标准对数控系统任务的优先级进行了分配,分析了系统多任务运行的调度机制,开发了TDNCL4M和TDNCL4T数控系统。
This paper analyzes the characteristics of real-time operating system. It is more suitable for the design of embedded Computer Numerical Control(CNC) system than general operating system, μC/OS-Ⅱ is selected and the modular hardware platform of embedded CNC system based on MC68F375 and MCX314 is designed. The software structure is divided hierarchically. Super application software is designed modularly for the functions and applications. According to the criterion, higher PR[ is distributed to tasks with stronger real time, and the dispatching mechanism of multiple tasks running is discussed. TDNCL4M and TDNCL4T numerical control systems are developed.