Generate IEC 61131-3 Structured Text 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).


Support for Third-Party IDEs

Generate Structured Text in a variety of file formats used by third-party IDEs.

Learn more

Generating Structured Text and Ladder Diagrams

Generate Structured Text, import it into an IDE, and verify the generated code in a test bench running on the IDE’s emulator.

Learn more

Code Optimization

Reduce the memory size and increase the execution speed of the generated Structured Text.

Learn more

Code Test and Verification

Simulate the model prior to Structured Text generation and package the results into a test harness.

Learn more

Product Resources

Discover more about Simulink PLC Coder by exploring these resources.


Explore documentation for Simulink PLC Coder functions and features, including release notes and examples.


Browse the list of available Simulink PLC Coder functions.

Technical Articles

View articles that demonstrate technical advantages of using Simulink PLC Coder.

User Stories

Read how Simulink PLC Coder is accelerating research and development in your industry.

Community and Support

Find answers to questions and explore troubleshooting resources.

Product Requirements

View product requirements for the latest release of Simulink PLC Coder.

Hardware Support

Connect Simulink PLC Coder to hardware platforms.

Supported Blocks

View a Simulink library of blocks that Simulink PLC Coder supports.

Try or Buy

Get a Free Trial

Test drive Simulink PLC Coder.

Get a trial

Ready to Buy?

Purchase Simulink PLC Coder and explore related products.

Contact sales
Pricing and licensing

Have Questions?


Contact Bill Chou,
Simulink PLC Coder Technical Expert

Email Bill

Simulink PLC Coder requires: Simulink, MATLAB

Related Solutions

Use Simulink PLC Coder to solve scientific and engineering challenges:

News and Events

Using Model-Based Design, MathWorks engineers will showcase how to develop and test a supervisory control module. The workflow spans the software development process from modeling and simulation of...
This presentation shows how Tetra Pak is using Model-Based Design to simplify, test, and evaluate solutions for packaging equipment.

Designing Supervisory Control for Safety-Critical Systems