What changed between two versions of the program?
After a service visit or a commissioning trip there are often two .smc2 files with nearly the
same name and no record of what was changed. Sysmac Studio has a compare function, but it needs
the software and a licence. Upload both files here: the older one first, the newer one under
"Second version to compare".
What is compared
- POUs: programs, function blocks and functions that were added, removed or changed in language, comment or protection, and the order of ladder sections.
- Ladder logic: rungs are matched by their elements, so an inserted rung does not mark every rung after it as changed. Each added, removed or changed rung is drawn as it was and as it is.
- Structured text: changed, added and removed lines with their line numbers.
- Variables of every POU and the global variables: added, removed, a new data type, AT address, initial value, retain or constant flag, and changed comments.
- Data types: added, removed and changed structures, unions and enumerations.
- Configuration: tasks and their programs, EtherCAT slaves (added, removed, readdressed or moved to another port), their PDO mapping and slave parameters, NX units, the I/O map, every axis setting, cam tables, libraries and controller settings.
Reports
The comparison comes as a PDF for printing, an HTML page for reading in a browser and an Excel sheet with one row per difference that you can filter. The result page shows the number of differences by area and the first ones, so you can tell at a glance whether the two files hold the same program.
Tips
- Compare two exports of the same project. Comparing unrelated projects works but mostly lists everything as added and removed.
- Rungs inside protected POUs cannot be compared; a change of protection is reported.
- The full documentation of the newer project (printout, viewer and tables) comes with the comparison.
More about what this tool reads and writes: Omron Sysmac Studio Project Viewer (SMC2 to PDF).