Re-import Kollmorgen UDFBs
- In the Project Explorer, expand Subprograms.
- Right-click the Kollmorgen UDFB with the improper syntax and click Delete.
- Click Yes to confirm deletion.
- Click the Libraries tab.
- Locate the UDFB that was just deleted.
- Drag and Drop the selected UDFB to any program in the PLC code.
- Compile the program and verify that the compilation error is resolved.
A confirmation message appears.
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.