Re-import Kollmorgen UDFBs

  1. In the Project Explorer, expand Subprograms.
  2. Right-click the Kollmorgen UDFB with the improper syntax and click Delete.
  3. A confirmation message appears.

  4. Click Yes to confirm deletion.
  5. Click the Libraries tab.
  6. Locate the UDFB that was just deleted.
  7. Drag and Drop the selected UDFB to any program in the PLC code.

    • This step copies the latest UDFB subprogram from the Kollmorgen library to the PLC code.
      Press the Escape key or click the X in the popup to avoid creating an instance of the function block in the program and delete the new code that was added here.
  8. Compile the program and verify that the compilation error is resolved.