Main Content

Model Architecture and Design

Design models intended for Simulink® PLC Coder™ code generation

When developing Simulink models for generating structured text or ladder logic code, consider:

  • Blocks and libraries for which code generation is supported. For a list of Simulink blocks supported for PLC code generation, see Simulink Block List (PLC Code Generation).

  • Setting up a model for fixed point data type code generation.

  • Setting up a multirate model for code generation.

  • Setting up a MATLAB Function for code generation.

  • Existing limitations when using Simulink PLC Coder to generate either structured text or ladder logic code.

Topics

Structured Text Code Generation Guidelines and Limitations

Ladder Logic Code Generation Guidelines and Limitations

Motion Instruction Simulation and Code Generation