Main Content

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 InstructionsLadder Model Blocks
ADDADD Block
AFIAFI Block
ANDAND Block
CLRCLR Block
COPCOP Block
CTD CTD Block
CTUCTU Block
DIVDIV Block
EQUEQU Block
FBCFBC Block
FLLFLL Block
GEQGEQ Block
GRTGRT Block
JMPJMP Block
LBLLBL Block
LEQLEQ Block
LESLES Block
MCRMCR Block
MOVMOV Block
MULMUL Block
NCPNCP Block
NEQNEQ Block
NOTNOT Block
OROR Block
OTEOTE Block
OTLOTL Block
OTUOTU Block
RESRES Block
RTORTO Block
SUBSUB Block
TNDTND Block
TOFTOF Block
TONTON Block
XICXIC Block
XIOXIO 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