Skip to content
  • There are no suggestions because the search field is empty.

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:

  1. On the symbols: These correspond to the tags or tag groups. The filter MUST be here for the filtering to work properly.
  2. 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.
If there is a filter on both a symbol and its corresponding datatype they MUST match, or the filtering will not work.