Properties
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. |
The display of PLC properties in the server namespace has been supported since TwinCAT 3.1 Build 4024. All you need to do is set two special PLC attributes on the Property so that the Property is imported into the namespace and represented there as a UA Property. Sample:
{attribute 'OPC.UA.DA.Property' := '1'}
{attribute 'monitoring' := 'call'}
PROPERTY Property_1 : BOOL
The function block on which the Property is defined must contain the normal PLC attribute for enabling symbols.
In the configuration file TcUaDaConfig.xml the handling of PLC properties can be defined globally. The "ImportPlcProperties" flag is used for this purpose.
Value | Description |
---|---|
false | Displays all properties in the OPC UA namespace for which both the OPC.UA.DA.Property and the monitoring attribute have been set. |
true | Displays all properties in the OPC UA namespace where the monitoring attribute has been set. |