《机电工程》杂志,月刊( 详细... )

中国标准连续出版物号 ISSN 1001-4551 CN 33-1088/TH
主办单位浙江省机电集团有限公司
浙江大学
主编陈 晓
副 主 编唐任仲、罗向阳(执行主编)
总 经 理罗向阳
出 版浙江《机电工程》杂志社有限公司
地 址杭州市上城区延安路95号浙江省机电集团大楼二楼211、212室
电话Tel+86-571-87041360、87239525
E-mailmeem_contribute@163.com
国外发行中国国际图书贸易总公司
订阅全国各地邮局   国外代号M3135
国内发行浙江省报刊发行局
邮发代号32-68
广告发布登记证:杭上市管广发G-001号

在线杂志

当前位置: 机电工程 >>在线杂志

一种避免PLC无效指令执行的编译优化方法*

作者:章航平,严义 日期:2009-04-21/span> 浏览:3774 查看PDF文档

一种避免PLC无效指令执行的编译优化方法*

章航平,严义
(杭州电子科技大学 智能与软件技术研究所,浙江 杭州 310018)

摘要:可编程控制器(PLC)在运行时有相当一部分处理器资源被对输出无任何影响的无效指令占用,这些无效指令的执行严重影响了系统的响应速度。针对这一问题,提出了PLC程序控制流程的理论优化方法,该方法避免了系统在运行时执行无效指令,并在此基础上进一步探讨了在有限代码空间限制条件下的实际工程优化方案。实验结果表明,这种编译优化方法可以有效缩短易产生无效指令PLC程序的扫描周期,提高系统的响应速度。
关键词:可编程控制器;编译器;编译优化;梯形图;指令表
中图分类号:TP332.3文献标识码:A文章编号:1001-4551(2009)04-0031-05

Method of compilation optimization for avoiding the execution of useless instructions in PLC
ZHANG Hang-ping, YAN Yi
(Institute of Software and Intelligent Technology, Hangzhou Dianzi University, Hangzhou 310018, China)
Abstract: CPU resources are always seriously occupied by useless instructions, when programmable logic controller(PLC)are on the run time, which seriously slow down the system responses. In order to solve this problem, a compilation method was proposed to optimize PLC programme, and the execution of useless instructions was avoided. Furthermore, the optimization method under the constraints of limited code space was discussed in detail. The result of experiments indicates that the performance of PLC system is improved by this method obviously.
Key words: programmable logic controller(PLC); compiler; compilation optimization; ladder diagrams; instruction list
参考文献(References):
[1]DONANDT J. Improving Response Time of Programmable Logic Controllers by Use of a Boolean Coprocessor[C]//Proceedings of VLSI and Microelectronic Applications in Intelligent Peripherals and their Interconnection Networks. Hamburg: IEEE Comput. Soc. Press,1989:167-169.
[2]KIM J. PARK J. KWON W H. Architecturc of a ladder logic solving processor for programmable controllers[J]. Microprocessor and Microsystems,1992,16(17):369-379.[3]KOO K, RHO G, PARK J, et al. Architectural design of an RISC processor for programmable logic controllers[J]. Journal of Systems Architecture,1998,44(5):311-325.
[4]OHMAN M, JOHANSSON S, ARZEN K. Implementation aspects of the PLC standard IEC 1131-3[J]. Control Engineering Practice,1998,6(4):547-555.
[5]JEONG S, KIM YS, KWON W H. Scheduling Algorithm for Programmable Logic Controllers with Remote I/Os[C]//Proceedings of Fourth International Workshop on Realtime Computing Systems and Applications. Washington: IEEE Computer Society,2002:87-94.
[6]PLAZA I, MEDRANO C, BLESA A. Analysis and implementation of the IEC 61131-3 software model under POSIX real-time operating systems[J]. Microprocessor and Microsystem,2006,30(8):497-508.
[7]KIM H S, KWON W H, CHANG N. A Translation Method for Ladder diagram with Application to a Manufacturing Process[C]//Proceedings of the IEEE International Conference on Robotics and Automation. Detroit: Robotics and Automation Society,1999:793-798.
[8]葛芬,吴宁.基于AOV图及二叉树的梯形图与指令表互换算法[J]. 南京航空航天大学学报,2006,38(6):754-758.
[9]李彪,杨纪春.PLC指令代码的文法分析和翻译[J].机电工程,1999,16(1):22-26.



友情链接

浙江机械信息网