节点文献

PLC仿真技术研究

Simulation Research of PLC

【作者】 郑健

【导师】 徐世许;

【作者基本信息】 青岛大学 , 控制理论与控制工程, 2007, 硕士

【摘要】 可编程序控制器(PLC)是一种通用的控制微机,广泛应用于工业生产的各个领域,是实现工业控制首选的控制器。然而,传统的PLC控制系统设计和调试均离不开硬件PLC,如果能够利用计算机构造一个虚拟的PLC,模拟实现其功能,即利用计算机仿真PLC,则会给PLC控制系统的开发带来极大的便利。本课题研究PLC仿真的基本内容及实现方法,讨论了利用计算机串口实现PLC串行通信仿真的方法,并设计了PLC仿真软件。首先,分析OMRON现有仿真软件CX-Simulator的功能特点,总结PLC仿真的基本内容,主要包括:PLC内部元件的仿真、PLC输入输出仿真、PLC指令仿真以及PLC通信功能仿真等。其次,基于面向对象的程序设计思想,研究PLC仿真的实现方法。讨论PLC程序编辑、仿真运行的实现方法;给出基本顺序指令和应用指令的仿真方法以及通过编程实现虚拟开关盒仿真输入信号、虚拟面板指示灯仿真运行结果输出的方法;并根据OMRON PLC Link、HOST Link的通信原理,探讨了这两种PLC串行通信的仿真方法。然后,以OMRON小型机CPM1A/CPM2A为仿真对象,利用Visual C++6.0的开发环境设计PLC仿真软件——SPLC。SPLC支持CPM1A/CPM2A所有基本顺序指令和常用的应用指令的仿真,可以实现PLC语句表程序的编写、导入、编译和离线仿真,虚拟开关盒仿真输入信号,虚拟面板指示灯仿真输出结果以及寄存器、内存区数值的查看和修改等功能。除此之外,还具有PLC Link、HOSTLink通信仿真的功能。最后,以两台PLC对两台电梯的并联控制为例,应用SPLC具有的PLC Link通信仿真功能对双梯并联控制系统进行仿真,证明了所设计的仿真软件SPLC的有效性。

【Abstract】 The programmable logical controller (PLC) is a general controller, which is used more widely in industrial control fields. It has become a principal controller in realizing the industrial control. However, the traditional design and debugging of PLC control system can not be separated from the hard PLC. If a virtual PLC is constructed and simulated by the computer which has the ability to realize main functions of PLC, that will be more convenient to design the PLC control system.Primary content of PLC simulation technology and realization are researched. The method of PLC communication simulation using computer serial port is also provided, and the simulation software is designedFirstly, CX-Simulator, the simulation software of OMRON is analyzed. It is generalized that primary content of PLC simulation includes PLC component simulation, I/O simulation, instruction simulation and communication simulation.Secondly, the simulation realization method is researched according to the object-oriented program (OOP) design’s ideology. Program editing, offline simulating and simulation of basic sequential instructions and application instructions are discussed. The program is designed to realize simulating input signal with analog switch box and simulating output with analog PLC panel. Moreover, the simulation approach of serial communication based on the mechanism of OMRON PLC Link and Host Link is developed.Thirdly, consider OMRON CPM1A/CPM2A as simulative object, a soft named SPLC by Visual C++ 6.0 is designed, which can simulate all sequential instructions and commonly used instructions, realize statement table list editing and guiding, simulate input signals by analog switch box and output results by analog PLC panel. Furthermore, SPLC posseses other functions such as monitor and modification of register and memory, PLC Link and Host Link communication simulation.Finally, using the function of PLC Link communication in SPLC, the simulation of two elevator parallel system by two PLC is finished.This proves the validity of the simulation soft SPLC.

  • 【网络出版投稿人】 青岛大学
  • 【网络出版年期】2008年 01期
  • 【分类号】TP391.9;TM571.61
  • 【被引频次】6
  • 【下载频次】1345
节点文献中: