C++的G代码解析算法研究  被引量:3

An Research of Parsing Algorithm of G Code Based on C++

在线阅读下载全文

作  者:梁远标[1] 郭钟宁[1] 张俊伟[1] 

机构地区:[1]广东工业大学机电工程学院,广东广州510006

出  处:《机械设计与制造》2016年第3期150-152,156,共4页Machinery Design & Manufacture

摘  要:在数控技术发展过程中,G代码的解析优劣是促进数控技术的发展因素之一。但目前的解析算法,并不能更高效的进行解析处理。经过对G代码进行分析,提出与以往基于C语言编写的解析不同算法,提出使用C++进行编写解析算法,把G代码作为一个对象,用类机制实现其解析功能,并使用GCC作为其编译器,提高编译效率。可直接应用嵌入式,脱离PC+运动控制卡的限制。通过实验的测试,以ARM开发板为验证实验平台,以arm-none-eabi-gcc为编译工具,验证C++解析算法的可行性。In the development of numerical control technology, the pros and cons of G--code parsing is one of the foctors to promote the development of numerical control technology. But the parsing algorithm can not be parsing process e^tciently. Analyzing the G code and designing parsing algorithm which is using C++ write parsing algorithm are included. In this way, the parsing algorithm is different from the one based on C language. Because the G code is used as an object, the class mechanism is used to implement the analytic function, Besides, using GCC as its compiler, improvingthe efficiency of compilation. A experiment which has used ARM development board for verificatcation experiment platform and based on arm- none-eabi-gcc compiler tools is to test the feasibility of the validation of analytical algorithm C++.

关 键 词:G代码 数控技术 解析算法 ARM 

分 类 号:TH16[机械工程—机械制造及自动化]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象