Working with the TcCOM module

Insert TcCOM in TwinCAT

1. Open TwinCAT (TwinCAT XAE or TwinCAT in a Visual Studio environment).
2. Instantiate a new TcCOM object.
Working with the TcCOM module 1:
3. Select the desired object.
Working with the TcCOM module 2:
4. Create a cyclic task.
Working with the TcCOM module 3:
5. Assign the created task to your TcCOM instance.

Note that the cycle time of the task and the SampleTime in Simulink® (here 5 ms) match.

Working with the TcCOM module 4:
6. Activate the configuration.
Working with the TcCOM module 5: