Back to top

Subprogram (UDFB) Creation in KAS IDE

The following video goes through the steps needed to create a subprogram (sometimes called User Defined Function Block or UDFB), call the UDFB in another PLC program, and monitor code inside the UDFB while a project is running. This is useful for when similar or identical code needs to be called in multiple locations or for multiple axis.

This process is very useful because it is more efficient to write a subprogram which can be called multiple times. Then when you are troubleshooting, or changes need to be made, you only have to edit one section of code instead of making changes everywhere it is used. Additionally, you can import/export subprograms for use in multiple projects.