Get Started with Simulink PLC Coder
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 3S-Smart Software Solutions 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).
Structured Text Code Generation From Simulink
Guidelines for setting up model and subsystem block parameters for Simulink PLC Coder structured text code generation.
Get started with structured text code generation from a simple Simulink model.
Open generated code directly in your IDE.
Ladder Logic Code Generation From Simulink
Create and simulate ladder Diagrams in Simulink.
Generate Ladder Diagram code (L5X) from Simulink.
Verify generated code against the original Simulink model in your IDE using a generated test bench.
PLC Model Advisor Checks
Overview of the Simulink PLC Coder checks in Simulink Model Advisor, how to run various checks, and fix warnings associated with the checks.
Overview of the PLC Model advisor, what the various checks are, and where to find information pertaining to the checks.
About PLC Code Generation
- PLC Code Generation in the Development Process
Learn about the benefits of designing PLC applications in Simulink and generating code.
- Supported IDE Platforms
See which IDEs are supported for structured text and ladder diagram generation.