Configuring and registering a TcCOM object

Registering in TwinCAT

The following data is used to register a TcCOM object (TcCncServices.h):

The Dynamic Contour Control object is registered via the following TcCOM interface which is defined in the file TcCncInterfaces.h:

Supplying the TcCOM object

After Dynamic Contour Control is generated, there should be 2 files available:

  1. TMC file
  2. Driver file

Dynamic Contour Control is described in the TMC file, e.g. TcCncMyDynContCtrl.tmc.

The file is located in the work directory of the solution.

The drive file directory is dependent on Release or Debug;

When the configuration is activated, the respective driver file is automatically copied to the directory <TwinCAT>\3.1\Driver\AutoInstall.

Based on the above example name: TcCncMyDynContCtrl.sys

You only need to trigger the generation (Debug/Release) and activate the associated configuration.

The procedure for debugging the created Dynamic Contour Control is analogous to debugging an McCOM transformation. This procedure is described in [McCOM transformation//Debugging the transformation].

Loading the object

Loading the object for Dynamic Contour Control is described in “Integrate Dynamic Contour Control object”.