instructions supported in ladder diagram
the supported ladder diagram instructions are useful while importing the ladder into simulink. the instructions can be categorised 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