Getting code for PLC from MPC controler

32 vues (au cours des 30 derniers jours)
Simion Goljovic
Simion Goljovic le 31 Mai 2016
Commenté : Branislav le 19 Avr 2021
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 commentaire
Branislav
Branislav le 19 Avr 2021
Hi,
I have recently encountered to this discussion. Are you willing to share your work? Thanx in advance.

Connectez-vous pour commenter.

Réponses (2)

Raphael Agner
Raphael Agner le 4 Déc 2019
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 le 28 Avr 2020
Yes, you can generate either structured text or C/C++ code from MPC controller. Here's an example that walks through the process:

Catégories

En savoir plus sur Code Generation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by