首页 | 本学科首页   官方微博 | 高级检索  
     

用于PLC的华P语言编译器设计与实现
引用本文:郑阳,付丽君,黄志钢.用于PLC的华P语言编译器设计与实现[J].沈阳理工大学学报,2009,28(5):30-33.
作者姓名:郑阳  付丽君  黄志钢
作者单位:沈阳理工大学,信息科学与工程学院,辽宁,沈阳,110168
摘    要:PLC已广泛应用于工业领域中,PLC的软件设计大多采用梯形图编程,文中设计实现了一种新的PLC编程语言——华P语言,并采用自顶向下逐句分析的方法设计了相应的华P语言到8051汇编语言的编译器。通过该编译器,可直接编译生成底层CPU需用的hex格式的机器码文件。最后通过对比梯形图指令,以实例分析得出华P语言的优势及应用的可行性。

关 键 词:PLC  华P语言  编译器  语义分析

Design and Realization of the Hua-P Language Compiler For PLC
ZHENG Yang,FU Li-jun,HUANG Zhi-gang.Design and Realization of the Hua-P Language Compiler For PLC[J].Transactions of Shenyang Ligong University,2009,28(5):30-33.
Authors:ZHENG Yang  FU Li-jun  HUANG Zhi-gang
Affiliation:( Shenyang Ligong University, Shenyang 110168, China)
Abstract:PLC is widely used in the industry domain,The PLC software design mostly uses the ladder chart programming. A kind of new PLC programming language is designed and realized in this article, using the top-down sentence by sentence analysis method to design the corresponding hua-P language for 8051 assembly language compiler. Through the compiler, it can directly generate the bi- nary file of hex format required by the bottom CPU. Finally through contrasting the ladder chart instruction, the superiority and the application feasibility of hua-P language are obtained by the example analysis.
Keywords:PLC
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号