自动化与仪表2024,Vol.39Issue(1) :148-151.DOI:10.19557/j.cnki.1001-9944.2024.01.032

基于MBD的PLC运动控制系统设计与应用

Design and Application of PLC Motion Control System Based on MBD

闫亚宾 白扬 李磊
自动化与仪表2024,Vol.39Issue(1) :148-151.DOI:10.19557/j.cnki.1001-9944.2024.01.032

基于MBD的PLC运动控制系统设计与应用

Design and Application of PLC Motion Control System Based on MBD

闫亚宾 1白扬 1李磊2
扫码查看

作者信息

  • 1. 江苏师范大学科文学院 智能制造系,徐州 221000
  • 2. 徐州重型机械有限公司,徐州 221000
  • 折叠

摘要

针对复杂算法在PLC运动控制系统中难以工程实现的问题,该文提出了一种基于MBD(model based design)的系统设计和应用方法.首先,利用MATLAB/Simulink建立控制模型并仿真验证,预留变量接口,正确匹配参数定义和数据类型;然后,基于Simulink PLC Coder将模型转换为符合IEEC 61131-3标准的结构化文本ST(structure text)代码,根据集成开发环境CoDeSys定制文件格式;最后,将生成代码以功能块FB(function block)的形式导入CoDeSys,实现算法与应用程序的集成.某型起重机回转控制系统的应用证明了MBD方法可有效解决复杂算法工程实现难的问题.

Abstract

Model based design(MBD)method is proposed to solve the difficulty on engineering realization of complex algorithm in PLC motion control system.Firstly,control model is established and verified based on MATLAB/Simulink,variable interface is reserved,parameter definition and data type are correctly matched.Then,the model is converted into structure text(ST)code conforming to IEC 61131-3 standard by Simulink PLC coder,file format is customized according to integrated development environment CoDeSys.Finally,the code is imported into CoDeSys in the form of function block(FB)to integrate algorithm and application program.Application of crane slew control sys-tem shows that MBD method can effectively solve the problem on engineering implementation of complex algorithm.

关键词

MBD/PLC/运动控制/代码生成

Key words

model based design(MBD)/PLC/motion control/code generation

引用本文复制引用

基金项目

2022年江苏省高校实验室研究会立项资助研究课题(GS2022BZZ16)

2022年江苏省高等学校大学生创新创业训练计划项目(202213988014Y)

出版年

2024
自动化与仪表
天津市工业自动化仪表研究所 天津市自动化学会

自动化与仪表

CSTPCD
影响因子:0.548
ISSN:1001-9944
参考文献量8
段落导航相关论文