Skip to main content

Creating and Updating Libraries

  • Create a new TwinCAT PLC ProjectScreenshot 2026-02-20 162955.png
  • Add in a Standard PLC project 
  • Your project should only contain References, DUTs, and Function Blocks. Only add in files that will not be edited in future projects. 

                                                                                  Screenshot 2026-02-20 162759.png


  • Right click on the project and select 'save as library and install'

image.png

You'll be prompted to add the following information.

  • Company Name (SilverHills Bakery)
  • Version Number
    • Note that version control is handled as such: 
      Example:  Version: 1.2.0
      1: Major version change that requires an update for the library to function correctly.
      2: Minor changes to a single file that will require an update for the library to function correctly 
      0:  Minor change to the project that does not require an update 
  • Title
  • A brief description of what the library is/does.
    • Note: The description is optional but is very helpful when creating our own libraries. 

wiki-screenshot.png 

Editing & Updating Versions

To edit the library make sure you have cloned the library repository from GitHub or have fetched and pulled any changes. Make the necessary changes following the same steps as updating any PLC project (saving, building, commit and push). 

Right click on the PLC project and go to properties. Similar to saving a new library you will need to update the version number in the properties. Be sure to check the 'released' box as well. 

WIKI_Screenshot_LibraryUpdate .png

wiki_screenshot_releasedlibrary.png

Save the file and once again right click on your PLC library project and 'Save as library and install' Make sure you're saving the .library file in the correct library Git location. 

image.png

Screenshot 2026-04-24 085617.png