期刊文献+

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

Design and implementation of IL language compiler based on IEC61131-3 standard
在线阅读 下载PDF
导出
摘要 为解决目前国内各厂家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.
出处 《计算机工程与设计》 CSCD 北大核心 2010年第10期2300-2302,2307,共4页 Computer Engineering and Design
关键词 IEC61131-3标准 指令表 编译器 可编程控制器 数控系统 IEC61131-3 standard instruction list compiler programmable logic controller computerized numerical control system
  • 相关文献

参考文献8

  • 1陆林,白瑞林.一类PLC的编译器的设计与实现[J].微计算机信息,2008,24(34):17-19. 被引量:3
  • 2王蔚庭.解析工业编程语言国际标准IEC61131-3[J].国内外机电一体化技术,2007,10(2):47-62. 被引量:11
  • 3蒋立源,康慕宁.编译原理[M].西安:西北工业大学出版社,2008.
  • 4Karl-Heinz John,Michael Tiegelkamp.中国机电一体化技术应用协会秘书处翻译.IEC61131-3:工业自动化系统的程序编制[S].2002.
  • 5ChinaUnix Wiki.Flex 中文手册[EB/OL].http://wiki.chinaunix. net/index.php/GNU,2008 -03 -05.
  • 6XiaoWang.Bison中文手册[EB/OL].http://gro.clinux.org/frs/?group_id=813&release_id=1039,2006-01-22.
  • 7刘霖,琚长江.基于IEC61131-3标准的IL编译器[J].低压电器,2007(23):56-59. 被引量:3
  • 8De Sousa M,Carvalho A.An IEC 61131-3 compiler for the Mat- PLC[C].IEEE Conference Emerging Technologies and Factory Automation,2003.

二级参考文献4

共引文献16

同被引文献30

引证文献4

二级引证文献18

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部