User Stories

村田制造将能源管理系统控制软件的开发时间减少了50%以上,基于模型的设计

挑战

Reduce time-to-market for the company’s first energy management system product trial

解决方案

使用模型的设计使用Simulink模拟控制器和电力电子设金宝app备,运行模拟和生成生产代码

结果

  • 控制软件开发时间减少超过50%
  • Defect-free code generated
  • Project ramp-up time shortened

“We check every requirement needed for certification via simulation in Simulink before verifying it on the real circuit—and because we used Embedded Coder to generate code directly from our model, there’s no gap between our simulations and the real embedded software.”

岳马博士,村田制造有限公司
Murata flexible three-phase energy management system with lithium-ion battery.

Murata flexible three-phase energy management system with lithium-ion battery.


作为其智能家庭/办公室/工厂计划的一部分,Murata Manufacturing正在开发一种能源管理系统(EMS),该系统(EMS)结合了太阳能电池板,电池控制器,电压逆变器和智能控制系统,以优化能源使用情况。当太阳能电池板产生比用户需求的更多功率时,控制系统要么使用多余的能量,以对电池充电,或将其送回网格中。相反,当用户需要比太阳能电池板产生的功率更大,控制系统要么从电网中取出电量或访问电力。

Murata工程师用Simulink使用基于模型的设计金宝app®to speed the development of embedded control software for the new EMS product line.

“EMS是我们的新市场,我们需要尽量减少风险,”穆拉塔博士岳马博士说。“基于模型的设计与Simulink的设计使我们能够金宝app降低上市时间,这对我们来说是一个很大的优势。因为我们不是专家程序员,建模和模拟我们的控制设计,然后从我们的模型中生成质量C代码对于尽快生产工作系统是必不可少的。“

挑战

由于Murata先前没有开发EMS产品,因此工程团队必须从头开始。他们需要一种方法来模拟EMS中的逆变器,转换器和其他电力电子硬件,以便评估各种硬件拓扑。由于使用真正的硬件测试系统是困难和昂贵的,因此他们需要使用带电网模型的系统模型来模拟控制系统并运行模拟,以验证正常操作条件下的设计以及异常和硬测试条件,如网格停电和浪涌。

Because competitors had already introduced EMS products, Murata wanted to get to market quickly with its own offering. To shorten development time for the control system, the engineering team wanted to generate control code directly from their models. With no more than three engineers on the team, and with little previous programming experience, they felt that writing and debugging the control code by hand would take too long and result in poor quality.

解决方案

Murata engineers used Model-Based Design to design and implement the EMS embedded control software.

在开始项目之前,MA博士在模型的设计和代码生成的基础上参加了为期三天的数学工作培训课程。

马博士和他的团队创造了一些植物模型(t)he major system components, including the solar converter, battery DC-DC converter, and three-phase grid-tied inverter using Simscape Electrical™. The model was adjustable so that they could test different hardware topologies.

After adding measurement blocks to compute the total harmonic distortion (THD) and root-mean-square (RMS) of key signals, the team ran simulations to check that these metrics were within acceptable ranges and to compare the performance of different control strategies and hardware topologies.

在Simulink中工金宝app作,该团队模拟了系统的PI控制器,然后使用Simulink Control Design™与植物的控制器和工厂的传输功能对应进行闭环模拟。

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.

Using Stateflow®, they created state transition diagrams to model EMS startup, shutdown, and abnormal sequences as well as state transitions for the system’s various operating modes.

为了在微控制器上实现控制逻辑,它们使用固定点设计器中的自动缩放和其他节省时间工具将浮点设计转换为固定点。

Next, they generated C code and Code Composer Studio™ projects from the controller model with Embedded Coder®。Finally, they deployed it to Piccolo™ and Delfino™ 32-bit microcontrollers made by TI.

The team tested the microcontroller and EMS circuitry together to verify the code with the production hardware, by running open-loop tests to perform basic checks and by verifying system closed-loop controller and state transitions.

Murata使用基于模型的设计完成了EMS项目和光伏逆变器项目。本公司申请网格连接的Jet认证,工程团队正在准备长期可靠性测试。

结果

  • 控制软件开发时间减少超过50%。“We completed the control software in about six months with just three engineers,” says Dr. Ma. “Without Model-Based Design it would have taken two or three times longer or we would have needed to hire additional software engineers.”
  • Defect-free code generated.“Because our programming experience was limited, I expect there would have been many more bugs if we had hand-coded our controller,” says Dr. Ma. “Generating 100% of our code guaranteed reliability. We read the output and found zero bugs in the code we generated with Embedded Coder.”
  • 项目斜坡时间缩短。“During the MathWorks training class, I learned a lot of practical skills and techniques that I then shared with the rest of my team,” says Dr. Ma. “That, combined with the strong support we received from MathWorks whenever we had an issue, helped us get our whole project done.”