Linking via TMC editor (TcLinkTo)
Similar to the PLC, in TwinCAT C++ a link to the hardware, for example, can be predefined at the time of encoding.
This is done in the TMC editor at the symbol to be linked. A property TcLinkTo with the value of the target is specified. The screenshot below illustrates this:
Note that such an instruction applies to all instances of the module: