beckhoff TE1000 TwinCAT 3 — 4.2.1 Accessing TwinCAT configuration

Configuration | Quickstart 4 Configuration | Configuration 4.1 Quickstart | Quickstart Because the TwinCAT Automation Interface provides a lot of possibility, it might sometimes be hard to understand where to start. This quickstart provides a step-by-step introduction into the TwinCAT Automation Interface and the different articles in this documentation. We recommend to read the following in-depth articles: After these basic articles, the Best Practice [ } 186] articles may be consulted for different topics like PLC or I/ O access via the Automation Interface.

4.2 Basics | Basics 4.2.1 Accessing TwinCAT configuration | Accessing TwinCAT configuration This chapter describes how to create and access a TwinCAT XAE configuration project via Automation interface. The objective of this creation process is to get access to a TwinCAT XAE project (formerly known as a TwinCAT System Manager configuration). The new TwinCAT XAE project is more sophisticated than the TwinCAT System Manager configuration known from TwinCAT2, which implies a slight concept change of project / configuration handling. TwinCAT 3 supports an extra hierarchical level combining several configurations into a Visual Studio solution container.

This can for example be used to organize the configurations of distributed resources into a solution or for packaging HMI projects together with the system configuration. The solution is able to bind together all types of Visual Studio and/or TwinCAT XAE projects. When using the TwinCAT XAE Automation inferface, this means an extra level of possiblities. Basic information TwinCAT 3 has been fully integrated into Microsoft Visual Studio ® to provide users with a standardized and flexible editor for creating and managing TwinCAT projects. When creating and/or accessing a TwinCAT configuration, Microsoft Visual Studio ® and the TwinCAT Automation Interface can be used in combination. Example:

If you want to create a new TwinCAT configuration via the Automation Interface, you must first call methods of the Visual Studio API to create a Visual Studio Solution Container and then add a TwinCAT project using the methods of the TwinCAT Automation Interface. This scenario is covered in some code snippets below. TE1000 22 Version: 1.7.0 Step Article Content 1 Visual Studio ProgIDs [} 32] Describes how different Visual Studio versions can be accessed via the Visual Studio API 2 Accessing TwinCAT configuration [} 22] Describes how to use the Automation Interface in order to create a new TwinCAT project.

It also covers the co-existence of Visual Studio API and TwinCAT Automation Interface and how they correlate with each other. 3 Navigating TwinCAT configuration [} 25] Describes how to navigate through an opened TwinCAT configuration by using different Automation Interface functionalities. 4 The necessity of a COM MessageFilter [} 28] Describes why every Automation Interface application should implement a custom COM MessageFilter. 5 Silent Mode [} 33] Describes how to turn the Automation Interface “silent”