Smart Filter

For Rockwell Studio/RSLogix 5000 Smart Filter, please visit: Smart Filter

For Rockwell RS Logix 500 Smart Filter, please visit: Smart Filter

Overview

One challenge when comparing backups of a certain Project is managing project items whose values change for in every backup or that aren't necessary to track changes for across backups. Currently this feature is limited to Rockwell and Omron projects only.

For example, tag values such as timer accumulators and counters may change every backup, but these changes aren't significant enough to warrant a backup being counted as Modified. Or a non-data related value like "DateModified" might change inadvertently for a backup after transferring from an Omron controller.

With Copia's Smart Filter feature, you can apply various rules to your project to refine your backups to only keep track of changes that are relevant to you. Currently, for Omron Sysmac Studio, this feature is limited to XML-based files within Sysmac Studio project files.

Configuring the Smart Filter

The Smart Filter configuration file is located at .copia/smart-filter.yaml in your Source Control repository. To access the configuration file for a specific project, you can click Manage Smart Filter in the popup menu.

Before enabling the Smart Filter, you'll first need to declare your configurations. Choose the Add Config to Enable Smart Filter link.

This will take you either to the existing Smart Filter configuration file for this project or prompt you to create a new one depending on if there's already a configuration in the repo associated with your project.

The Smart Filter configuration file is a YAML file that applies a set of rules to the entire repo. It must live in the default branch of your repo (this is usually master or main). An example configuration file is as follows:

The version field specifies which version of the Smart Filter config you are using (currently, it should always be version: 1). The projects field is a list of XPaths (You can refer to the Mozilla documentation for assistance). Please note that each XPath query will apply to all Project Items with valid xml. To view a Project Item's xml, click the Show XML View Option in the file viewer.

If a Project Item does not source from a valid xml file, the Smart Filter will not apply.

✅ Smart Filter Will Apply
❌ Smart Filter Will Not Apply

If you'd like to pre-check your XPath entries xml files, you may visit this XPath Testing Website

Change Detection

The config for the Smart Filter will also impact whether the backup reports differences found in the Project. Any items that are filtered from the diff view will also be filtered when checking for differences between the Project in the repository and the Project on the Device.

Last updated

Was this helpful?