Murata Manufacturing Reduces Development Time for Energy Management System Control Software by More Than 50% with Model-Based Design

Challenge

为公司的第一届能源管理系统产品试验减少上市时间

Solution

Use Model-Based Design with Simulink to model the controller and power electronics, run simulations, and generate production code

Results

  • Control software development time reduced by more than 50%
  • 生成的无缺陷代码
  • 项目斜坡时间缩短了

“在Simulink上通过Simulation检查认证所需的每个需求在真实电路上验证 - 因为我们使用嵌入式编码器直接从我们的模型生成代码,我金宝app们的模拟与真实嵌入式软件之间没有间隙。”

Dr. Yue Ma, Murata Manufacturing Co., Ltd.

Murata柔性三相能源管理系统,锂离子电池。


As part of its smart home/office/factory initiative, Murata Manufacturing is developing an energy management system (EMS) that combines a solar panel, a battery controller, a grid-tied inverter, and an intelligent control system to optimize energy usage. When the solar panel produces more power than the user needs, the control system either uses the excess energy to charge the battery or feeds it back into the grid. Conversely, when the user needs more power than is being produced by the solar panel, the control system either discharges the battery or accesses power from the grid.

Murata engineers used Model-Based Design with Simulink®加快新EMS产品线的嵌入式控制软件的开发。

“EMS was a new market for us, and we needed to minimize risk,” says Dr. Yue Ma, energy technology development department manager at Murata. “Model-Based Design with Simulink enabled us to reduce time-to-market, which was a significant advantage for us. Because we were not expert programmers, modeling and simulating our control design and then generating quality C code from our models was essential to produce a working system as quickly as possible.”

Challenge

Because Murata had not previously developed an EMS product, the engineering team had to start from scratch. They needed a way to simulate the inverters, converters, and other power electronics hardware in the EMS in order to evaluate various hardware topologies. Since it would be difficult and costly to test the system with real hardware, they needed to model the control system and run simulations using a system model with a power grid model to verify the design under normal operating conditions as well as under abnormal and hard-to-test conditions such as grid power outages and surges.

由于竞争对手已经介绍了EMS产品,因此Murata希望通过自己的产品快速上市。下载188bet金宝搏为了缩短控制系统的开发时间,工程团队希望直接从其模型生成控制代码。在团队中没有超过三名工程师,并且以前的编程经验很少,他们认为手写和调试控制码的手写将花费太长并导致质量差。

Solution

Murata工程师使用基于模型的设计来设计和实现EMS嵌入式控制软件。

在开始项目之前,马博士参加了刺ee-day MathWorks training course on the fundamentals of Model-Based Design and code generation.

Ma和他的团队博士创造了一些主要系统组件的工厂模型,包括Simscape Electrical™的太阳能转换器,电池DC-DC转换器和三相网格逆变器。该模型可调整,以便它们可以测试不同的硬件拓扑。

在添加测量块后,以计算关键信号的总谐波失真(THD)和根均线(RMS),团队运行仿真以检查这些指标是否在可接受的范围内,并比较不同控制策略和硬件的性能拓扑。

Working in Simulink, the team modeled the system’s PI controller and then ran closed-loop simulations with the controller and the transfer function counterpart of the plant, using Simulink Control Design™ to tune control parameters.

Additional closed-loop simulations were performed to assess the design’s response to abnormal situations, including blackouts and phase unbalance of the grid, as well as some grid-tied requirements, including fault ride through (FRT) and maximum power point tracking (MPPT) for solar.

使用StateFlow.®,它们创建了状态转换图以模拟EMS启动,关机和异常序列以及系统各种操作模式的状态转换。

To implement the control logic on the micro-controller, they converted the floating-point design to fixed point using auto-scaling and other time-saving tools in Fixed-Point Designer.

接下来,它们使用嵌入式编码器生成C代码和代码Composer Studio™项目®。最后,他们将其部署到Piccolo™和Delfino™32位微控制器。

该团队将微控制器和EMS电路一起测试,以通过运行开环测试来验证生产硬件的代码,以执行基本检查,并通过验证系统闭环控制器和状态转换。

Murata has completed both the EMS project and a photovoltaic inverter project using Model-Based Design. The company is applying for JET certification for the grid connectivity, and the engineering team is preparing for long-term reliability testing.

Results

  • Control software development time reduced by more than 50%.“只有三个工程师,我们在大约六个月内完成了控制软件,”马博士说。“没有基于模型的设计,它将需要两三倍,或者我们需要雇用其他软件工程师。”
  • 生成的无缺陷代码。“因为我们的编程经验有限,我期待如果我们手工编码我们的控制器,我们会有很多错误,”马博士说。“生成100%的代码保证可靠性。我们读取输出,并在嵌入式编码器生成的代码中找到零虫。“
  • 项目斜坡时间缩短了。“在Mathworks培训课程中,我学到了很多实用技能和技术,然后我与我的其余部分分享,”马博士说。“这一切,随着我们发出问题的,与我们收到的强大支持相结合,帮助我金宝app们完成了我们的整个项目。”