A machine starts behaving differently, and nobody remembers changing the code. Before you can get back to a known-good state, you need to know exactly what is different between the version that is running and the last version that worked. Copia’s visual diffs render that comparison for PLC code, so you can see the changed logic between any two versions without opening both projects side by side.
As these users get more comfortable with Git, it’s useful to dig a little deeper to leverage the maximum benefit possible from the tools at their disposal. Let’s take a closer look at one of those fundamental tools in Copia’s built-in version control, Diffs.
The Basics
A Diff is a comparison between two commits, or project snapshots. A Diff contains concise information about what exactly is different between the two versions. Traditionally, a Diff is purely text-based, and can only be effectively leveraged for text-based files.

Copia developed Visual Diffs, or VisDiffs, to overcome this limitation for PLC code. With VisDiffs, Copia’s built-in version control makes it easy to see what changed from one version to the next, just by clicking on a commit, either in Copia’s Desktop App, or in a web browser, on Copia’s Web App.
View Options
When viewing a Diff in Copia, it’s usually most helpful to view only the parts of the PLC code which have changed. By default, Copia hides things that haven’t changed, but it’s easy to show unchanged elements with the View Options dropdown menus.

Digging Deeper
Along with giving the ability to easily see what changed in a single commit, Copia also allows users to compare non-sequential commits, with just a couple extra clicks.

This makes it easy to see changes in bulk, allowing users to compare, for example, the current version of development code to the last major release version.
This ability extends further, and allows users to even compare commits across different branches, allowing users to easily compare any two versions of a PLC project, even, for example, two coexisting, current versions of a PLC project undergoing parallel or multi-user development.


