王新华, 周峰, 孙树文, 李剑锋. 软PLC编译系统的开发与实现[J]. 北京工业大学学报, 2008, 34(11): 1139-1144.
    引用本文: 王新华, 周峰, 孙树文, 李剑锋. 软PLC编译系统的开发与实现[J]. 北京工业大学学报, 2008, 34(11): 1139-1144.
    WANG Xin-hua, ZHOU Feng, SUN Shu-wen, LI Jian-feng. Development and Implementation of Soft PLC Compiling System[J]. Journal of Beijing University of Technology, 2008, 34(11): 1139-1144.
    Citation: WANG Xin-hua, ZHOU Feng, SUN Shu-wen, LI Jian-feng. Development and Implementation of Soft PLC Compiling System[J]. Journal of Beijing University of Technology, 2008, 34(11): 1139-1144.

    软PLC编译系统的开发与实现

    Development and Implementation of Soft PLC Compiling System

    • 摘要: 为了配合在PC机上运行的软PLC编辑开发系统,使PC机完成相应的控制功能,设计和开发了软PLC编译系统,简述了软PLC编译系统的组成以及软PLC梯形图和指令表的遍历算法,介绍了软PLC梯形图与指令表程序相互转换的实现过程,通过实例,分析了软PLC程序的指令表文法设计过程,给出了PLC文法预测分析器模型及控制程序,详细介绍了软PLC程序语法分析的过程,仿真结果表明,开发的软PLC编译系统能实现软PLC梯形图与指令表程序的相互转换,完成软PLC程序的文法设计和语法分析,并对软PLC程序的运行指令作出正确解释,使PC机完成相应的控制功能。

       

      Abstract: In order to coordinate with Soft PLC developing system running on PC to accomplish corresponding control function, compiling system of Soft PLC was developed. Firstly, the paper briefly described the constitution of soft PLC compiling system as well as ergodic algorithm of soft PLC ladder diagram and instruction list. Secondly, it introduced interconversion implementation process of soft PLC ladder diagram and instruction list. Via examples, it expounded design process of instruction list grammar of soft PLC, PLC grammar predictive analysis sheet, predictive resolver model as well as its control program algorithm. In addition, the process of soft PLC program syntax analysis was elaborated and interpretation process of several common instructions was illustrated. The emulation results show that the compiling system developed can fulfill interconversion between ladder diagram and instruction list, and complete grammar design as well as syntax analysis of soft PLC program and give correct interpretation of program instructions, which can make PC carry out corresponding control.

       

    /

    返回文章
    返回