Wizards | TwinCAT Module Class Editor (TMC) 11.3.3.3 Add / modify / delete Interfaces | Add / modify / delete Interfaces Interfaces of a TwinCAT module can be added, edited and deleted with the help of the TwinCAT Module Class (TMC) editor. This article describes: Step 1: Create a new interface [ } 97] in the TMC file. Step 2: [ } 97]Add methods [ } 97] to the interface in the TMC file. Step 3: Use the interface [ } 99] by adding it to the "Implemented Interfaces" of the module. Step 4: Start the TwinCAT TMC [ } 101] Code Generator to generate code for the module description. Optional change of the interface [ } 101] . Step 1: generate a new interface 1.
After starting the TMC Editor, select the Data Types node. 2. Click on Add a new interface to extend the list of interfaces by a new interface. р A new entry IInterface1 is then listed: 3. To open the details you can either select the appropriate node in the tree or double-click on the row in the table. 4. Enter a meaningful name - in this sample "IStateMachine". Step 2: add methods to the interface 1. Click on Edit Methods... to get a list of the methods of this interface: TwinCAT 3 97 Version: 1.19.1