Simulink PLC Coder

MAJOR UPDATE

 

Simulink PLC Coder

Generate IEC 61131-3 Structured Text and Ladder Diagrams for PLCs and PACs

Simulink PLC Coder™ generates hardware-independent IEC 61131-3 Structured Text and Ladder Diagrams from Simulink® models, Stateflow® charts, and MATLAB® functions. The Structured Text and Ladder Diagrams are generated in PLCopen XML and other file formats supported by widely used integrated development environments (IDEs), including 3S-Smart Software Solutions CODESYS®, Rockwell Automation Studio 5000, Siemens TIA Portal, and Omron® Sysmac® Studio. As a result, you can compile and deploy your application to numerous programmable logic controller (PLC) and programmable automation controller (PAC) devices.

Simulink PLC Coder generates test benches that help you verify the Structured Text and Ladder Diagrams using PLC and PAC IDEs and simulation tools. It also provides code generation reports with static code metrics and bidirectional traceability between model and code. Support for industry standards is available through IEC Certification Kit (for IEC 61508 and IEC 61511).

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, 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.

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.

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.

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 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.

Success Stories

Learn how engineers in a variety of industries use Simulink PLC Coder to generate Structured Text for their applications.

ENGEL injection unit. MATLAB and Simulink helped speed the development of the injection molding machine controllers.

Latest Features

Ladder diagram import

Import Studio 5000 ladder diagrams for simulation and code generation

Modeling and simulation of ladder diagram in Simulink

Run Studio 5000 ladder diagrams imported into Simulink

Ladder diagram code generation

Generate ladder diagram code for Studio 5000

Ladder diagram testbench generation

Generate testbench to verify accurate results of ladder diagram code for Studio 5000

See release notes for details on any of these features and corresponding functions.

Get a Free Trial

30 days of exploration at your fingertips.

Download now

Ready to Buy?

Get pricing information and explore related products.

Are You a Student?

Get MATLAB and Simulink student software.

Learn more