Using the example project/template
Example projects are also supplied.
ExtComp0.h
Header file of the compensation object. The interfaces that the object inherits are declared here. The following are particularly important for the compensation object: ITcCncBase for the version check and IITcMcComExtComp for the methods.
ExtComp0.cpp
Source file of the compensation object. This is where the compensation methods are implemented.
Configurations can be loaded here in the previous status until the object is loaded in the RT context.
ExterneKompensation.tmc
This specifies which interfaces provided by the TwinCAT3 are to be loaded and it also defines the types.