摘要
给出了一种面向嵌入式差分插补数控系统平台的NC代码解释器。定义了曲线插补的计数方向并使用有效算法计算了插补计数长度,针对差分插补计算所需要的特殊数据格式,采用扫描策略,完成NC代码词法和语法检查的基础上,初始化差分插补代码的其它参数,最终将标准NC代码(ISO3896)格式转化为满足差分插补需要的数据结构和格式。给出的计算实例验证了解释器的有效性。
A new NC code interpreter is designed to translate NC code from the standard format to difference interpolation format. The counting direction for curve interpolation is defined and counting length is computed with an effective algorithm. The transformation process using scan strategy mainly includes three steps: (a) analysis of NC codes at lexical and syntax level; (b) translation of relative semantic elements into difference data format ; ( c ) optimization of difference codes to meet the requirements of difference interpolation. At the end of this oaoer, an example is showed to Drove its validity.
出处
《制造技术与机床》
CSCD
北大核心
2008年第12期81-84,共4页
Manufacturing Technology & Machine Tool
基金
山东省自然科学基金项目(Q2006F07)资助
关键词
差分插补
数据格式
NC代码
解释器
Difference Interpolation
Data Format
NC Code
Interpreter