Use PLC project as referenced library

Use PLC project as referenced library 1:

Available from TwinCAT 3.1 Build 4026

As of Build 4026, you can reference PLC projects in other PLC projects of the same TwinCAT project as a library. As a result you do not have to install a library project to test it. This makes library development easier and more efficient.

Reference PLC project as library

In order to be able to reference a PLC project in another PLC project as a library, both projects must be contained in the same TwinCAT project. To do this, you can create new PLC projects or add an existing library project or source library as a PLC project to the TwinCAT project.

A TwinCAT project with at least two PLC projects is open.
1. Enter a title, a version number and a company name in the project properties of the first PLC project (library project). Optionally, you can also fill in the remaining fields.
2. Check the box at Enable Referenced Library
3. Save the modifications.
The PLC project can now be referenced as a library.
4. In the second PLC project, open the dialog Add library via the Library Manager or the context menu of the object References in the PLC project tree.
The PLC project referenced as library is marked with square brackets. It can be selected like the installed libraries and added to the project via OK.

Use projects referenced as library

Change library reference