Model Architecture and Design
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.
Simulink Configuration Parameters
Structured Text Code Generation Guidelines and Limitations
Guidelines for setting up model and subsystem block parameters for Simulink PLC Coder structured text code generation.
Configure model parameters and subsystem block parameters containing a fixed point data type for Simulink PLC Coder code generation.
Guidelines for setting up model and subsystem block configuration parameters for a multirate model Simulink PLC Coder code generation.
Describes support for, and limitations on, use of MATLAB Function block in Simulink PLC Coder code generation.
Limitations that apply to structured text code generation.
Range considerations for nonintrinsic math functions.
Improve traceability between your model and generated code, code reusability, and data sharing by using Simulink data dictionary.
IDEs which support enum data type.
Overview of code generation limitations for distributed systems.
Overview of the Simulink PLC Coder checks in Simulink Model Advisor, how to run various checks, and fix warnings associated with the checks.
Create a custom keyword list and generate code to meet target IDE requirements by using the customized keyword list.
To prepare your model for compatibility with PLC code generation, use the checks in this folder.
Ladder Logic Code Generation Guidelines and Limitations
Limitations that apply to ladder logic code generation.
Motion Instruction Simulation and Code Generation
Create model for simulation and code generation of motion instructions in the Rockwell Automation® RSLogix™ 5000 IDE.