河北大学学报(自然科学版) ›› 2022, Vol. 42 ›› Issue (1): 91-97.DOI: 10.3969/j.issn.1000-1565.2022.01.013

• • 上一篇    下一篇

恒压供水装置嵌入式控制MBD方法

常广晖,李雁飞,刘树勇   

  • 收稿日期:2020-11-20 发布日期:2022-02-22
  • 作者简介:常广晖(1979—),男,河北衡水人,海军工程大学副教授,博士,主要从事计算机仿真与机舱自动化方向研究.
    E-mail: cgh_navy@163.com
  • 基金资助:
    国家自然科学基金资助项目(51579242)

MBD method of embedded control for constant pressure water supply device

CHANG Guanghui, LI Yanfei, LIU Shuyong   

  1. College of Power Engineering, Naval University of Engineering, Wuhan 430033, China
  • Received:2020-11-20 Published:2022-02-22

摘要: 变频恒压供水装置目前在新型舰船上获得广泛应用,普遍采用进口PLC作为其控制器.为了研制拥有自主知识产权的嵌入式控制系统,本文提出一种基于模型设计(MBD)的变频恒压供水装置嵌入式控制系统快速开发方法.首先通过实验辨识建立与真实变频机组特性基本一致的数学模型;其次在Simulink统一仿真环境下根据模型设计开发模糊自适应PID稳压控制器和基于stateflow有限状态工况切换逻辑控制器,联合2者进行了动态控制仿真实验;最后利用embedded coder自动生成高效率嵌入式控制C代码,在uCOS-Ⅱ实时系统下进行软件多线程代码集成并部署到基于STM32自行设计开发的嵌入式控制电路板中实现嵌入式控制系统的快速开发.最终通过实际装置运行实验,验证了利用该方法进行嵌入式控制系统设计开发的有效性和便捷性.

关键词: 模型设计, 变频恒压供水, 嵌入式控制, stateflow有限状态

Abstract: The variable frequency constant pressure water supply device has been widely used in the new type ship. In order to develop an embedded control system with independent intellectual property rights, a rapid development method-model based design(MBD)for embedded control system of variable frequency and constant pressure water supply unit is proposed in this paper. Firstly, a mathematical model consistent with the characteristics of real frequency conversion unit is established through experimental identification. Secondly, under the unified simulation environment of Simulink, the fuzzy self-adaptive PID voltage regulator and the switching logic controller based on Stateflow finite state condition were developed according to the model design, and the dynamic control simulation experiment was carried out by combining the two. Thirdly, the embedded control C code was automatically generated using Embedded Coder,and the embedded control system was integrated and deployed into the embedded control board based on STM32 to realize the rapid development of embedded control system. Finally the effectiveness and convenience of the embedded control design and development using this method are verified through the actual device operation experiment.

Key words: model design, constant pressure water supply, embedded control, stateflow finite state

中图分类号: