基于IEC61131-3的IL编译器的设计与实现  被引量:4

Design and implementation of IL language compiler based on IEC61131-3 standard

在线阅读下载全文

作  者:郭书杰[1,2] 马跃[1] 王品[1,2] 

机构地区:[1]中国科学院沈阳计算技术研究所,辽宁沈阳110171 [2]中国科学院研究生院,北京100049

出  处:《计算机工程与设计》2010年第10期2300-2302,2307,共4页Computer Engineering and Design

摘  要:为解决目前国内各厂家PLC(programmable logic controller)产品的编程语言互不兼容,使得不同系列产品的PLC编译器可重用性很低的问题,设计实现了基于IEC61131-3标准的IL(instruction list)语言编译器。首先设计了编译器的逻辑结构,借助Flex和GNUBison工具,按照标准IL语言的词法、语法要求,设计并实现了词法、语法分析器,简述了生成目标代码具体实现方法,然后在数控系统中进行了测试运行。实验结果表明,该编译器能正确解释标准IL语言的用户程序,且运行可靠。To solve the low-reusability problem with PLC compiler which is rooted from the reality that in our country,PLC programming languages used by each manufacturer can't be compatible,a compiler based on IEC61131-3 standard is designed and implemented.Firstly,the logical structure of the compiler is devised.Secondly,with the help of Flex and GNU Bison tools,lexical and syntax analyzers are constructed according to the lexical and syntax rules in standard IL language.Then,the concrete method to produce object code is presented.Finally,the compiler is tested and validated in the CNC(computerized numerical control) system.The result shows that the compiler can translate user's programs correctly and work reliably.

关 键 词:IEC61131-3标准 指令表 编译器 可编程控制器 数控系统 

分 类 号:TP314[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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