Generate Structured Text Code by Using the Simulink PLC Coder App
Use the PLC Coder app to generate Structured Text code from Simulink® models, Stateflow® charts, and MATLAB® functions.
This tutorial shows you how to use the Simulink PLC Coder™ app to generate Structured Text code from a Simulink model. In this tutorial, you follow these steps:
Prepare Model for Structured Text Generation — Prepare the Simulink model for code generation.
Generate and Examine Structured Text Code — Generate Structured Text code and examine the generated code.
Import and Verify Structured Text Code — Import the generated Structured Text code into your target IDE.
Deploy Structured Text — Deploy the verified Structured Text code to your target PLC.
See Also
Simulink PLC Coder | plcgeneratecode