The Retain data (in NOVRAM memory) can be used in a similar way from the PLC and also C++.
In addition to the TcCOM Module concept, the TwinCAT 3 type system is an important basis for understanding.
The following pages originate from the documentation for the Automation Interface. When using the Automation Interface please refer to the dedicated documentation.