Simulink PLC Coder

Run Anywhere

Generate Structured Text and Ladder Diagrams. Deploy code royalty-free.

Support for Third-Party IDEs

Simulink PLC Coder generates Structured Text in a variety of file formats used by third-party IDEs, including Siemens® STEP 7/TIA Portal, Rockwell Automation® Studio 5000, 3S CODESYS®, and PLCopen XML. Simulink PLC Coder also generates Ladder Diagrams for Rockwell Automation Studio 5000.

Simulink PLC Coder supports many third-party IDEs, including Siemens STEP 7/TIA Portal, Rockwell Automation Studio 5000, 3S CODESYS, and PLCopen XML

Simulink PLC Coder supports many third-party IDEs, including Siemens STEP 7/TIA Portal, Rockwell Automation Studio 5000, 3S CODESYS, and PLCopen XML.

Generate Structured Text

With support for more than 180 Simulink blocks, all Stateflow constructs, and many MATLAB functions, Simulink PLC Coder generates Structured Text from your control system models comprising feedback loops, mode and state logic, and math-intensive algorithms.

More than 180 Simulink blocks, all Stateflow constructs, and many MATLAB functions are supported by Simulink PLC Coder.

More than 180 Simulink blocks, all Stateflow constructs, and many MATLAB functions are supported by Simulink PLC Coder.

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. Validate generated Ladder Diagrams by generating and executing the test bench running on the IDE’s emulator.

Generate a Ladder Diagram and import it into an IDE.

Generate a Ladder Diagram and import it into an IDE.

Code Optimization, Testing, and Verification

Ensure the generated code operates efficiently and correctly on the PLC.

Code Optimization

Simulink PLC Coder applies optimizations by default to reduce memory size and increase execution speed of the generated Structured Text and Ladder Diagrams. These optimizations include dead-code elimination, expression folding, and subsystem reuse.

Example of optimized Structured Text. Simulink PLC Coder generates optimized, well-integrated code for Simulink, Stateflow, and MATLAB functions.

Example of optimized Structured Text. Simulink PLC Coder generates optimized, well-integrated code for Simulink, Stateflow, and MATLAB functions.

Commenting, Bidirectional Tracing, and Documenting Code

Comments, user-specified block descriptions, and bidirectional links enable you to navigate and trace between Simulink model components and the generated code. The code generation report consolidates all information for code reviews and debugging.

Code generation and traceability reports enable you to navigate and trace between Simulink model components and the generated code.

Code generation and traceability reports enable you to navigate and trace between Simulink model components and the generated code.

Code Test and Verification

Generate a test bench to verify Simulink simulation results match results in PLC within an acceptable tolerance. Run hardware-in-the-loop testing in real time using Simulink PLC Coder together with Simulink Coder™Simulink Real-Time™, and a Speedgoat target computer.

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

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