How to set OPC filters in TwinCAT symbol files
I am trying to import tags into the TOP Server Beckhoff TwinCAT driver using an OPC filter. I am able to import the tags with no filter, but it is not working when a filter is used.
In the .tpy file, you can set OPC filters in two ways:
- On the symbols: These correspond to the tags or tag groups. The filter MUST be here for the filtering to work properly.
- On the datatypes: For complex datatypes consisting of more than one field, the filter can be set on each field within the data type, allowing certain fields to be filtered. Setting a filter on the datatype is optional. If there is no filter here, symbols using the filter will work fine.