检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222