Simulink PLC Coder

Generate Structured Text

Generate hardware-independent IEC 61131-3 Structured Text from your Simulink models containing blocks, Stateflow charts, and MATLAB code.

Generating a Ladder Diagram to import into an IDE.

Import and Generate Ladder Diagrams

Import Rockwell Automation® Studio 5000 Ladder Diagrams into Simulink for simulation and verification. Generate Ladder Diagrams from Simulink models for Studio 5000.

Third-party IDE hardware.

Support for Third-Party IDEs

Generate Structured Text in file formats used by third-party IDEs, including Siemens® STEP 7/TIA Portal, Rockwell Automation Studio 5000, Mitsubishi Electric MELSOFT GX Works3, 3S CODESYS®, and PLCopen XML.

Simulink PLC Coder generating optimized, well-integrated code for Simulink, Stateflow, and MATLAB functions.

Code Optimization

Apply optimizations that reduce memory size and increase execution speed of the generated Structured Text and Ladder Diagrams for your hardware and IDE.

Code generation and traceability report.

Commenting, Bidirectional Tracing, and Documenting Code

Add comments and bidirectionally trace model components to generated code for debugging and code reviews.

Code generated to verify that the model simulation results match the Structured Text and Ladder Diagram execution results with an acceptable tolerance.

Code Test and Verification

Generate a test bench to verify Simulink simulation results match results in PLC within an acceptable tolerance.

“Using Model-Based Design, we were able to immediately implement model predictive control into the PLC through automatic code generation.”