| The open numerical control system (NC System) is the top topic in the field of NCtechnology research, and the embedded NC system, as one of the new type of open NC system,becomes the center of open NC system research. After reading a lot of literatures, a three-axisembedded NC system is proposed by absorbing some advanced control technologies. The systemis constructed with the STM32F103ZE based on Cortex-M3from STMicro-electronics company,the professional motion control chip PCL6045B from NPM company, and the embeddedoperating system of μC/OS-Ⅱ. There are many tasks of main functional modules, such asdecoding task, interpolation task, position control task and speed control task in the system, inorder to solve the problems of NC system with the reliability and real-time effectivity. The mainstudies and conclusions of this paper are listed as follows:Firstly, according to the system’s functional requirements, the overall structure and schemefor three-axis embedded NC systems is proposed after the description the microprocessorSTM32F103ZE and the motion control chip PCL6045B.Secondly, it is introduced the system’s hardware structures with the parts of flexible staticmemory controller(FSMC), the bus connections between STM32F103ZE and PCL6045B, thepower module, the conmmunication interface module and the bus module in details.Thirdly, it is programed the API function library of the system, which is replaced the NCfunctions by configuring the registers. And the library is assembled by basic setting functions,speed setting functions, acceleration setting functions and so on.Fourthly, an algorithm of G code interpretation is designed through using a data structure tostorage the G code information, and is used as an intermediate data buffer. It is implemented insoftware as a module of G code interpretation.Fifthly, the embedded operating system μC/OS-Ⅱ is transplantted on STM32F103ZE, andthe system’s tasks are designed to manage the embedded system, such as serial communicationtask, speed control task, G code interpretation task according to the NC system’s functions. And a task scheduling algorithem is putted forward to manage these tasks.Finally, there are some tests with the system’s functions, such as the circuit tests, theregisters’ tests, the uniform velocity motion tests, the linear interpretation tests and G codeinterpretation module tests. |