You can create user-defined instructions for your ladder models by using the Custom Instruction block. You can store these blocks containing custom instructions in a user-defined library named plcuserlib.slx. You can also import, simulate, and export your ladder instructions by using your c...
To create a user-defined instruction, use aCustom Instructionblock added to theSimulink®PLC Coder™Ladder Library. To open the Ladder Library, at the MATLAB®command line, enter: plcladderlib The Ladder Library opens all the blocks required for building the Ladder Diagram in Simulink. ...