摘要
对一个基于Wince平台的四轴台式工业机器人的解释器进行了研究设计.结合控制系统的特点和机器人所需执行的功能,设计了正交完备的编程语言IRL语言。将解释器的整体构架分为前后端并进行了具体的构建,运用词法分析工具LEX和语法分析工具YACC构造了词法和语法分析模块;采用预置错误陷阱的思想进行错误处理,以三地址码作为中间代码,最终产生可执行的Motionnet目标函数。实验结果表明,设计的解释器能正确高效的解释IRL语言,而且可以准确的提示错误。
An industrial robot interpreter has been studied and designed. Incorporating the charac- teristics of control system,an orthogonal and complete programming/anguage--IRL language has been de- vised.The overall framework of the interpreter is divided into the front end and the rear end to do concrete construction.The lexical and grammatical analysis modules are constructed by LEX and YACC.The errors are handled by presetting error trapping.A nd the executable Motionnet function has been eventually pro- duced with the three address codes being used as the intermediate codes.The experimental results show that the interpreter can not only explain the IRL language correctly and efficiently,but also prompt errors accurately.
出处
《机械设计与制造》
北大核心
2012年第12期154-156,共3页
Machinery Design & Manufacture
基金
湖南省科学技术厅科技计划项目(2011CK3168)
湖南省自然科学基金项目(06JJ50087)
关键词
解释器
工业机器人
机器人编程语言
错误处理
Interpreter
Industrial Robot
Robot Programming Language
Error Handling