Describes the use of Finite State Machine (FSM) for CNC G-code analysis module design.It includes lexical analysis module and syntax analysis module.The application of FSM to the development process of CNC system,on the one hand,regulate the behavior and control flow of system,shorten the development cycle of NC system and increase the reliability of the system.On the other hand,the structure of the FSM drivers separates the function definition of the software modules and improve the system's opening and flexibility.%介绍利用有限状态机进行CNC G代码分析模块的设计,其中包括词法分析模块和语法分析模块.利用有限状态机开发数控系统软件,一方面规范了系统的行为和控制流程,使开发周期减少,系统可靠性增强;另一方面,软件单元结构的功能定义和控制逻辑相互分离,系统的开放性和柔性增强.
展开▼