摘要
以电梯控制为例,介绍了一种新的PLC控制系统的开发方式:基于模型的设计。先用Simulink/Stateflow建立了四层电梯模型,然后用MATLAB自带的代码自动转换工具Simulink PLC Coder将模型转换为符合PLC编程标准的结构化文本,导入到PLC编程软件RSLogix 5000中,得到电梯模型的功能块,并以此为基础编写电梯的控制程序。实验结果证明了这种PLC控制系统开发方式的可行性及高效性。
By an example of elevator control,this paper introduces a new method for developing a PLC control system:model-based design. Firstly,we create a 4-floor elevator model by using Simulink/Stateflow,and converted it to structural text by means of automatic code-converting tool Simulink PLC Coder brought by MATLAB.Then,we import the code to the PLC programming software RSLogix 5000 to get a function block of the elevator model.Finally,the elevator control program is formulated on this base.The test result shows that the new method for developing PLC control systems is practicable and efficient.
出处
《电气自动化》
2014年第2期86-88,共3页
Electrical Automation
关键词
PLC
基于模型的设计
电梯控制
代码自动转换
PLC
Simulink PLC Coder
PLC
model-based design
Simulink PLC coder
elevator control
automatically code transformation