Getting code for PLC from MPC controler

조회 수: 32 (최근 30일)
Simion Goljovic
Simion Goljovic 2016년 5월 31일
댓글: Branislav 2021년 4월 19일
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
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
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:

Bill Chou
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:

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by