The ladder import feature of Simulink® PLC Coder™ allows you to import Ladder Diagram created with Rockwell Automation® IDEs such as RSLogix™ 5000 and Studio 5000 into the Simulink environment as a model.
Simulink PLC Coder supports the following ladder elements:
Boolean variables
Data access to array elements, bus elements, bit, and constant variables.
Multiple rungs
Simple Jump
, Temporary End
, and other supported
execution control elements.
Ladder diagram blocks. See plcladderlib
.
Ladder Diagram Instructions. See Instructions Supported in Ladder Diagram
L5X Datatypes:
L5X Data Types | Simulink Types |
---|---|
BOOL | Boolean datatype |
SINT | Int8 datatype |
INT | Int16 datatype |
DINT | Int32 datatype |
REAL | Single datatype |
TIMER | Timer bustype |
COUNTER | Counter bustype |
CONTROL | Control bustype |
UDT | UDT bustype |
AOI | AOI bustype |
Ladder diagram tags
Controller Tags
Program Tags
AOI Tags such as Input, Output and InOut
plccleartypes
| plcgeneratecode
| plcgeneraterunnertb
| plcimportladder
| plcladderlib
| plcladderoption
| plcloadtypes