摘要
针对控制系统的设计和开发中,手工方式编写代码存在开发周期延长、效率低下且容易出错的问题,提出一种基于模型设计思路实现控制程序的自动生成方法。以嵌入式光电运动控制系统为实验对象,利用Simulink的工具箱设计控制器以及搭建系统模型,并由框图模型生成产品级代码;通过对比半实物仿真系统和嵌入式系统对电机速度控制的不同效果,对系统进行验证。实验结果显示:由Simulink模型快速生成的代码能有效地完成直流电机速度控制功能,控制程序的开发时间缩短50%以上,证明基于模型设计方法在伺服系统开发中的有效性和快速性。
In terms of the disadvantages of long development period and inefficiency by manual programming during designing and developing control system, this paper presents a model-based design method with automated code generation. Regard the electro-optical control system as the object of research, use Simulink tools to design controller and build system model, and then generate code automatically. Conduct the experiment and compare the different control effect between semi-physical simulation system and embedded system. The result of experiment demonstrates that the code generated from Simulink model can realize the function of motor speed-control, time consumed in development progress of control program is reduced by 50% or more, indicating that model-based design method is efficient and rapid in development of servo control system.
出处
《兵工自动化》
2016年第3期48-53,共6页
Ordnance Industry Automation
基金
装备预先项目支持资助(40401020101)
关键词
光电伺服系统
基于模型的设计
代码自动生成
直流伺服电机
electro-optical servo system
model-based design
code generation automatically
DC servo motor