Main Content

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. Structured Text is generated in PLCopen XML and other file formats supported by widely used integrated development environments (IDEs) including CODESYS, Rockwell Automation® Studio 5000, Siemens® TIA Portal, and OMRON® Sysmac® Studio. Ladder diagrams are generated in file formats supported by Rockwell Automation Studio 5000. 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).

Get Started

Learn the basics of Simulink PLC Coder

Model Architecture and Design

Design models intended for Simulink PLC Coder code generation

Ladder Diagram Integration

Import, simulate, and validate your existing ladder diagrams. Model, simulate, and generate code using the provided Ladder Diagram blocks and functions.

Code Generation

Configure code generation for PLC IDEs, generate structured text, configure code structure and elements

Deployment to Programmable Logic Controller (PLC) Targets

Deploy generated structured text and ladder logic to PLC IDEs and integrate external code

Verification

Show equivalence between model and generated code

Tool Qualification and Certification

Qualify Simulink PLC Coder for IEC Certification