Alias
Requirements This functionality is only available for Data Access devices based on TwinCAT 3 and the import of TMC symbol files, as well as the online symbolism. |
With the following pragma, a symbol can have a different name in the OPC UA address space.
{attribute 'OPC.UA.DA' := '1'}
{attribute 'OPC.UA.DA.Alias' := 'MyFancyOpcUaAlias'}
nMyCounter : INT;
The NodeID as well as the BrowseName and DisplayName are set to the alias value accordingly.
In the case of TwinCAT 3 C++, you can also use this pragma in the TMC Code Generator to set an alias for the node. Please note that this feature is only available under TwinCAT 3 C++ when using online symbolism.