Getting code for PLC from MPC controler
10 次查看(过去 30 天)
显示 更早的评论
Hi everyone. I'm kind of rookie here.
I developed and tuned MPC controler in Simulink for a given tf of my system and it works great. Now I have to implement that MPC controler in Siemens PLC S7 1200. I don't know how to get code that I can write in TIA Portal. How can I do it, can someone help me?
1 个评论
Branislav
2021-4-19
Hi,
I have recently encountered to this discussion. Are you willing to share your work? Thanx in advance.
回答(2 个)
Raphael Agner
2019-12-4
As this is still getting some views:
You can deploy it using the Simulink PLC Coder.
Here is the general Workflow:
0 个评论
Bill Chou
2020-4-28
Yes, you can generate either structured text or C/C++ code from MPC controller. Here's an example that walks through the process:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Code Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!