Create TwinCAT 3 C++ project

After creating a TwinCAT 3 project, open the C++ node and proceed as follows:

1. Right-click C++ and select Add New Item....
If the green C++ symbol is not listed, this means that either a target device is selected that doesn't support TwinCAT C++ or the TwinCAT Solution is currently open in a version of Visual Studio that is not C++-capable (cf. Installation).
Create TwinCAT 3 C++ project 1:
The TwinCAT C++ Project Wizard is shown and all existing project templates are listed.
2. Select TwinCAT Versioned C++ Project, optionally enter a related project name and click on OK.
Alternatively, use the TwinCAT Static Library Project, which provides an environment for programming static TwinCAT C++ libraries (see Sample 25).
Create TwinCAT 3 C++ project 2:
The TwinCAT Module wizard is displayed.
3. In this case, select TwinCAT Module Class with Cyclic IO and click on OK. If you want to use the Online Change capability, select the TwinCAT Module Class Online Changeable.
Create TwinCAT 3 C++ project 3:
4. Enter a unique name in the TwinCAT Class Wizard dialog box or continue with the "Module1" suggestion.
Create TwinCAT 3 C++ project 4:
A TwinCAT 3 C++ project will then be created on the basis of the selected template:
Create TwinCAT 3 C++ project 5: