Data Types

The user can define data types via the TwinCAT Module Class (TMC) editor.

These data types can be type definitions, structures, areas, enumerations or interfaces, e.g. methods and their signatures.

The TwinCAT Engineering system (XAE) publishes these data types in relation to all other nested projects of the TwinCAT project, so that they can also be used in PLC projects, for example (as described here).

Note

Name conflict

A name collision can occur if the driver is used in combination with a PLC module.

  • Do not use any of the keywords that are reserved for the PLC as names.

This chapter describes how to use the capabilities of the TMC editor for defining data types.