File Description

During the development of TwinCAT C++ modules, files in the file system can be handled directly. This is of interest, either to understand how the system works or for specific use cases such as manual file transfer, etc.

Here is a list of files related to C++ modules.

File

Description

Further Information

Engineering / XAE

*.sln

Visual Studio Solution file, hosts TwinCAT and non-TwinCAT projects

 

*.tsproj

TwinCAT project, collection of all nested TwinCAT projects, such as TwinCAT C++ or TwinCAT PLC project

 

_Config/

Folder contains further configuration files (*.xti) that belong to the TwinCAT project.

See menu Tools| Options| TwinCAT| XAE-Environment| File Settings

_Deployment/

Folder for compiled TwinCAT C++ drivers

 

*.tmc

TwinCAT Module Class file (XML-based)

See TwinCAT Module Class Editor (TMC)

*.rc

Resource file

See Setting version/vendor information

*.vcxproj.*

Visual Studio C++ project files

 

*ClassFactory.cpp/.h

Class Factory for this TwinCAT driver

 

*Ctrl.cpp/.h

Upload and remove drivers for TwinCAT UM platform

 

*Driver.cpp/.h

Upload and remove drivers for TwinCAT RT platform

 

*Interfaces.cpp/.h

Declaration of the TwinCAT COM interface classes

 

*W32.cpp./.def/.idl

 

 

*.cpp/.h

One C++/Header file per TwinCAT module in the driver. Insert user code here.

 

Resource.h

Required by *.rc file

 

TcPch.cpp/.h

Used for creating precompiled headers

 

%TC_INSTALLPATH%\Repository\<Vendor>\<PrjName>\<Version>\<Platform>\*.tmx

Compiled driver that is loaded via the TcLoader.

C:\TwinCAT\3.x\Repository\C++ Module Vendor\Untitled1\0.0.0.1\TwinCAT RT *\Unititled1.tmx

See Versioned C++ Projects

%TC_INSTALLPATH% \CustomConfig\Modules\*

Published TwinCAT driver package
usually C:\TwinCAT\3.x\CustomConfig\Modules\*

See Export to TwinCAT 3.1 4022.xx

 

Runtime / XAR

%TC_BOOTPRJPATH% \CurrentConfig\*

Current configuration setup

Windows: C:\TwinCAT\3.x\Boot

TwinCAT/BSD: /usr/local/etc/TwinCAT/3.x/Boot

 

%TC_DRIVERAUTOINSTALLPATH% \*.sys/pdb

Compiled, platform-specific driver that is loaded via the operating system.

Windows: C:\TwinCAT\3.x\Driver\AutoInstall (system loaded)

TwinCAT/BSD: <not available>

 

%TC_INSTALLPATH%\Boot\Repository\<Vendor>\<PrjName>\<Version>\*.tmx

Compiled platform-specific driver that is loaded via the TcLoader.

Windows: C:\TwinCAT\3.x\Boot\Repository\C++ Module Vendor\Untitled1\0.0.0.1\Untitled1.tmx

TwinCAT/BSD: /usr/local/etc/TwinCAT/3.x/Boot\/Repository\C++ Module Vendor\Untitled1/0.0.0.1/Untitled1.tmx

 

%TC_BOOTPRJPATH% \TM\OBJECTID.tmi

TwinCAT Module Instance file

Describes variables of the driver

File name is ObjectID.tmi

Windows: C:\TwinCAT\3.x\Boot\TMI\OTCID.tmi

TwinCAT/BSD:
/usr/local/etc/TwinCAT/3.x/Boot/TMI/OTCID.tmi

 

Temporary files

*.sdf

IntelliSense Database

 

*.suo / *.v12.suo

User-specific and Visual Studio-specific files

 

*.tsproj.bak

Automatically generated backup file from tsproj

 

ipch/

Intermediate directory created for precompiled headers