Instructions Supported in Ladder Diagram
The supported ladder diagram instructions are useful while importing the ladder into Simulink. The instructions can be categorized into two:
Instructions that are implemented in Simulink® using ladder diagram blocks with same name
Instructions that are implemented in Simulink using other ladder diagram blocks.
The table lists the instructions that map to blocks in Simulink
| L5X Instructions | Ladder Model Blocks |
|---|---|
| ADD | ADD Block |
| AFI | AFI Block |
| AND | AND Block |
| CLR | CLR Block |
| COP | COP Block |
| CTD | CTD Block |
| CTU | CTU Block |
| DIV | DIV Block |
| EQU | EQU Block |
| FBC | FBC Block |
| FLL | FLL Block |
| GEQ | GEQ Block |
| GRT | GRT Block |
| JMP | JMP Block |
| LBL | LBL Block |
| LEQ | LEQ Block |
| LES | LES Block |
| MCR | MCR Block |
| MOV | MOV Block |
| MUL | MUL Block |
| NCP | NCP Block |
| NEQ | NEQ Block |
| NOT | NOT Block |
| OR | OR Block |
| OTE | OTE Block |
| OTL | OTL Block |
| OTU | OTU Block |
| RES | RES Block |
| RTO | RTO Block |
| SUB | SUB Block |
| TND | TND Block |
| TOF | TOF Block |
| TON | TON Block |
| XIC | XIC Block |
| XIO | XIO Block |
The special instructions that are implemented using another block in Simulink are:
JSR instruction is implemented by using a Subroutine block.
AOI call instruction is implemented by using an Inline AOI block