Mapping is lost with Reload TMI/TMC

Challenge:

You have already TcCOM objects in your TwinCAT solution, which you have created with the Target for Simulink® version 1.2.xxxx.x. You now want to create a new TcCOM object with the Target for Simulink® version 2.x.x.x and replace the newly created TcCOM with Reload TMI/TMC File... in your existing TwinCAT solution.

In the default settings, you lose the mapping information by doing this.

Solution:

Under TC TcCOM Interface, set the "mapping between variable names and ADS symbol names" to "Classic" and use this to create the new TcCOM object.

Mapping is lost with Reload TMI/TMC 1:

This means that the mapping is retained if you now replace your old TcCOM object in TwinCAT with Reload TMI/TMC File....