一种软PLC编译执行方法  被引量:4

A Compilation and Implementation Methods of Soft PLC

在线阅读下载全文

作  者:高丽[1] 李忠琪[1] 陈雪[1,2] 

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

出  处:《组合机床与自动化加工技术》2011年第11期85-88,共4页Modular Machine Tool & Automatic Manufacturing Technique

基  金:"高档数控机床与基础制造装备"国家科技重大专项-开放式数控系统支撑技术创新平台建设(2011ZX04016-071)

摘  要:文章提出了一种软PLC编译技术。通过分析翻译型和解释型编译方法的不足,提出了一种将指令表程序转变为具有可移植性强的标准C程序作为目标语言,最终将其转换为运行系统可执行的目标逻辑组件的编译技术。此编译技术利用了功能强大的开源工具Flex和Bison进行词法和语法分析,并定义了抽象语法树的数据结构,提高了系统的开放性和执行效率。This paper presents a compiler technology for soft PLC.By analyzing the shortage of the translation-and interpretation-based compilation method,this paper proposes a new compiler technology that translates instruction list into the standard C program as the target language with better portability,and ultimately converts the C program to the executable objective logic components for operating system compiler technology.This technology uses the open-source tools Flex and Bison with powerful features for lexical analysis and syntax analysis,and defines the abstract syntax tree data structure,which improves the system's openness and implementation efficiency.

关 键 词:软PLC 编译技术 指令表 C程序 

分 类 号:TH16[机械工程—机械制造及自动化] TG65[金属学及工艺—金属切削加工及机床]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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