TwinCAT Module Class Editor (TMC)

The TwinCAT Module Class editor (TMC editor) is used for defining the class information for a module. It includes data type definitions and their application, provided and implemented interfaces, and data areas and data pointers.

To put it briefly: everything that is visible from outside must be defined with this editor.

The basic idea is:

  1. The TMC Editor can be used to modify the module description file (TMC file). This contains all information that is accessible in the TwinCAT system itself. These are for example symbols, implemented interfaces and parameters.
  2. The TwinCAT Code Generator, which can also be called from the TMC Editor, is used to generate all the required C++ code, i.e. header and cpp files.

Start the TMC editor

Open the editor by double-clicking on the TMC file of a module. The graphical editor opens:

TwinCAT Module Class Editor (TMC) 1:

Functionalities of the TMC editor:

User Help

The TMC editor offers user support for the definition of data types and C++ modules.

For example, in the event of problems (alignment, invalid standard definitions, ...) within the TMC, the user is guided to the relevant location via red flags within the TMC tree:

TwinCAT Module Class Editor (TMC) 2:

The user can nevertheless edit the TMCs directly, since they are XML files and can therefore be created and edited by the user.

Tools

The upper section of the TMC editor contains symbols for the required operations.

TwinCAT Module Class Editor (TMC) 3:

The editor will store the entered information in the TMC file. The TwinCAT TMC Code Generator converts this TMC description to source code, which is also available in the context menu of the TwinCAT C++ project.

TwinCAT Module Class Editor (TMC) 4: