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.
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.
Learn about the workflow for Ladder Diagram generation from Stateflow® charts.
Check Stateflow chart for unsupported features and add tests to chart for later validation of code.
Generate Ladder Diagram code from a Stateflow chart and test bench for validation.
View a Ladder Diagram and test bench in the IDE, and validate the diagram against an original Stateflow chart by using the test bench.
See which advanced Stateflow features are not supported for Ladder Diagram code generation.
Limitations that apply to ladder logic code generation.
Create model for simulation and code generation of motion instructions in the Rockwell Automation® RSLogix™ 5000 IDE.