Ladder Diagram is a graphical programming language that you use to develop software for programmable logic controllers (PLCs). It is one of the languages that the IEC 61131 standard specifies for use with PLCs. A program in ladder diagram notation is a circuit diagram that emulates circuits of relay logic hardware. The underlying program uses Boolean expressions that translate readily to switches and relays.
With Simulink® PLC Coder™, you can use ladder import to import ladder diagrams created with Rockwell Automation® IDEs, such as RSLogix™ 5000 and Studio 5000 into the Simulink environment as a model. You can create ladder diagrams in the Simulink environment as a model.
After importing or creating the ladder diagram models, you can:
Edit the imported Ladder Diagram model from within Simulink by using the
After importing the ladder diagram code into Simulink, simulate it.
Generate C code from the imported ladder diagram and integrate the code into your existing C language-based simulation environments.
Generate ladder diagram code from the imported ladder diagram and integrate the code into your Rockwell Automation IDE. You cannot generate structured text code from the Ladder Diagram blocks.
Generate PLC testbench code for the imported ladder diagram and verify the code in your Rockwell Automation IDE.
|Simulink PLC Coder||Generate structured text and ladder diagram code from Simulink models, Stateflow charts, and MATLAB functions|
Ladder features and elements that are supported by Simulink PLC Coder.
Import L5X ladder diagram files into Simulink.
Create and simulate ladder Diagrams in Simulink.
Generate Ladder Diagram code (L5X) from Simulink.
Generate C code from a Simulink Ladder Diagram Model.
Verify generated code against the original Simulink model in your IDE using a generated test bench.
Create user-defined instruction in PLC Ladder Diagram models.