计算机工程与应用 ›› 2007, Vol. 43 ›› Issue (4): 113-114.

• 产品、研发、测试 • 上一篇    下一篇

基于有限状态自动机原理的孔中心定位程序

金红 蒋存波 陈小琴   

  1. 桂林工学院电子与计算机系 桂林工学院 电子与计算机系
  • 收稿日期:2005-12-08 修回日期:1900-01-01 出版日期:2007-02-01 发布日期:2007-02-01
  • 通讯作者: 金红

Program for locating the center of hole based on the finite automaton principle

  • Received:2005-12-08 Revised:1900-01-01 Online:2007-02-01 Published:2007-02-01

摘要: 孔中心定位是数控电火花成型、电火花线切割等机床的基本功能,操作过程比较复杂,具有有限状态自动机的特征。有限状态自动机是一个描述离散系统的数学模型,通过状态转移图可清楚描述输入与状态的关系,利用有限状态机理论描述其程序结构,比传统的程序结构更直观、更清晰地描述孔中心定位的程序。利用有限状态机原理设计控制程序结构,方便用汇编语言的JMP @A+DPTR指令或C程序语言的switch语句实现,可以使程序简单、清晰,便于调试、维护、扩充。本文介绍了在电火花加工机床用“多维数控系统”运用有限状态自动机原理进行孔中心定位程序设计的实例。

Abstract: Locating the center of hole is very important in the computer numerical control system of EDM. The process of it is complexity and has the character of the finite automation (FA). FA is a mathematic model for describing the system of disperse and it can directly describe the relation of states and inputs by state diagram. The application of state diagram and condition code of FA can more directly and clearly describe the process of locating the center of hole than the custom, so the control program is designed very simply, clearly based on it. It is verified by testing and applying, the program designed by assembler or C program language is very easy to debug and update.