Referenced Models
You can generate IEC 61131-3 Structured Text code for a model reference hierarchy to achieve:
Incremental code generation — Generate code only if the model has changes since the code was previously generated
Modular development — Develop and maintain referenced model independently from the models that use it
Code reuse — Generate reusable code from a referenced model
To learn how to generate code for a referenced model, see Generate Structured Text Code for Model Reference Hierarchy.
Topics
- List of Files Generated for Model Reference Hierarchies
Learn about the files generated from a model reference hierarchy. (Since R2025a)
- Share Structured Text Code by Using Simulink Cache Files
Share Simulink® cache files in a team-based development to reduce build time and avoid unnecessary code regeneration. (Since R2025a)
- Set Configuration Parameters for Code Generation of Model Hierarchies
Satisfy the model reference hierarchy requirements for Structured Text code generation. (Since R2025a)
- Import Structured Text Code Generated from Model Reference Hierarchy
Import Structured Text code generated from a model reference hierarchy. (Since R2025a)