摘要
可编程控制器(PLC)在运行时有相当一部分处理器资源被对输出无任何影响的无效指令占用,这些无效指令的执行严重影响了系统的响应速度。针对这一问题,提出了PLC程序控制流程的理论优化方法,该方法避免了系统在运行时执行无效指令,并在此基础上进一步探讨了在有限代码空间限制条件下的实际工程优化方案。实验结果表明,这种编译优化方法可以有效缩短易产生无效指令PLC程序的扫描周期,提高系统的响应速度。
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.
出处
《机电工程》
CAS
2009年第4期31-35,共5页
Journal of Mechanical & Electrical Engineering
基金
浙江省重大科技攻关资助项目(C11211)
关键词
可编程控制器
编译器
编译优化
梯形图
指令表
programmable logic controller(PLC)
compiler
compilation optimization
ladder diagrams
instruction list