摘要
研究了软件PLC中梯形图的逻辑化表达以及编译为指令表的实现方法,对梯形图元素之间的串并联关系进行了深入探讨,在此基础上给出了基于C++的梯形图逻辑表达模型,实现了梯形图到指令表的转换。该实现在可扩展性以及支持复杂梯形图转换方面具有一定优势。
The logic expression of the ladder diagram(LD) and the realization method of compiling the LD to the instruction list(IL) in soft PLC were studied.The series-parallel connection between the LD elements was thoroughly analyzed.Based on this work, the logic expression model of the LD based on C++ was given and the conversion from LD to IL implemented.The implementation has certain advantages in its expansibility and in supporting complicated LD conversion.
作者
袁春华
石静
薄占春
YUAN Chun-hua, SHI Jing, BO Zhan-chun(Dept.of Automobile and Digital Control, Shanghai Xinqiao Vocational and Technical College, Shanghai 201806, China)
出处
《电脑知识与技术》
2008年第11X期1399-1401,1420,共4页
Computer Knowledge and Technology