How-to
Do-more Designer compare PLC project with disk project
Short answer
Open the controller project through COMM LINK in one Designer instance and the disk project in a second, release the shared link with PLC->Disconnect or a NEW LINK on Ethernet, and run the PROGRAM Designer's COMPARE from the disk project to walk the differences. Copy the reviewed changes into the controller instance and SAVE-AS the result as the original project name plus _ONLINE_EDITED.dmd. The comparison is interactive only — it writes no report file.
On this page
You compare the project running in a Do-more PLC with the edited project still on disk by opening both in separate Designer instances and running the PROGRAM Designer's COMPARE from the disk project. Open the controller project through COMM LINK in one instance, open the disk project from disk in the second, and free the link the first instance holds — PLC->Disconnect, or a NEW LINK on Ethernet — before the disk instance compares. The comparison is interactive: it walks the differences on screen and does not by itself write a report file, so keep your record of the changes yourself or check the installed Designer help for an export. Save the controller copy under its own name before you merge anything into it.
Which copy is which #
The controller holds the program running the machine. The disk file holds edits that were never downloaded — possibly improvements, possibly unfinished work, possibly edits whose purpose nobody remembers months later. Neither copy is automatically the right base for the next revision: a newer save date does not prove the disk logic is complete or suitable to run, and the controller copy is missing whatever the disk edits intended.
A file name and a save date identify a file, not the program executing in the PLC. The only project you can treat as the running baseline is one retrieved through COMM LINK from that controller. That retrieval decides provenance, and everything after it depends on one window holding the controller project while the other holds the disk revision. If both windows hold disk files, stop and retrieve the controller project first.
Two shortcuts are traps. Downloading the disk project just to bring the copies into agreement replaces the running baseline before anyone reviewed the differences. Saving the controller copy over the only disk file can destroy the undownloaded changes you were trying to recover. Keep every state of the project in its own file.
Compare the controller project with the disk project #
Two instances on one PC are enough — the same single-PC arrangement as when you run two TwinCAT PLC programs on one laptop. Work the steps in order:
- Open a first Designer instance and open the PLC project through
COMM LINK. Confirm the link targets the machine and controller you intend before treating the retrieved project as the running baseline. SAVE-ASthat retrieved project under a distinct name to keep the untouched baseline on disk, and leave the instance open as the working reference for the merge.- Open a second Designer instance and open the disk project from disk. Arrange the windows so the controller-derived project and the disk revision stay distinguishable for the whole session.
- Free the link. In the instance opened from the PLC, choose
PLC->Disconnectso the disk instance can re-use the link. On an Ethernet connection, create aNEW LINKinstead and use the new link when opening the PLC project, so each instance holds its own. - From the disk project's instance, run the PROGRAM Designer's
COMPAREon the disk project to navigate the differences against the controller project. - Work the differences one at a time. Copy the changes that pass review from the disk instance into the instance holding the controller project, together with the element definitions and surrounding logic the change depends on.
- Run the project checks Designer offers and resolve every reported error, invalid references included, before a transfer is considered.
SAVE-ASthe reconciled project under the original project name followed by_ONLINE_EDITED.dmd. For a baseline saved asLINE3.dmd, the reconciled file isLINE3_ONLINE_EDITED.dmd. The name documents where the logic came from; it does not mean the file has been downloaded.
Keep the two halves of this job separate in your head: communication access lets you retrieve and compare controller content, and moving reviewed logic into a project is a separate editing action.
Example: comparing a months-old disk edit against the running controller #
Inputs, and where each comes from: the controller runs a program last downloaded before a disk revision made several months ago, and new functions now need adding — the case to hand. Two Designer instances on one PC and one COMM LINK session to the controller are the arrangement the workflow calls for. The disk project holds edits that were never downloaded. The naming rule puts _ONLINE_EDITED.dmd after the original project name.
The rule in words: one instance holds the controller project, the other holds the disk project; the shared link is released once; COMPARE runs from the disk instance; changes that pass review are pasted into the controller instance; the result is saved as a new file. Nothing downloads until you decide.
The arithmetic, carried through: 2 instances open, 1 of them holding the link; 1 PLC->Disconnect frees it, leaving 0 instances on the link so the disk instance can re-use it — or, on Ethernet, 1 NEW LINK gives each instance its own session, 2 links in total. The COMPARE session walks the differences on screen and writes 0 files. The session ends with 3 project files on disk — the preserved controller baseline, the disk revision as found, and the reconciled copy — and 0 downloads performed, so the controller still runs its original program.
Result: a reconciled file named per the rule, sitting beside the untouched baseline and the disk revision as found.
Decision: build the new functions on the reconciled copy, because it holds the reviewed union of both revisions. Do not build on the disk file as found — it lacks whatever logic the controller picked up — and do not download the disk project first, which would replace the baseline before review.
Read every difference before copying it #
Treat each comparison finding as a change to evaluate, not an instruction to accept the disk version:
- No difference in the reviewed logic: nothing to reconcile; move on.
- Logic present only in the disk project: possibly an undownloaded improvement, possibly unfinished work; establish its purpose and its dependencies before moving it.
- Logic present only in the controller project: the running machine depends on logic the disk copy lacks, often the mark of an online edit that was never saved; find out why it exists before replacing it.
- The same function implemented two ways: either version can change machine behavior; compare execution conditions, outputs and fault handling before choosing.
Check past the visibly changed instruction. A pasted rung can reference elements that need matching definitions and can depend on logic elsewhere in the project: inspect the callers, the permissives, the reset paths and every other writer to the destinations the change touches. Keep a change register as you go — program area, intended behavior, version chosen, test that proves it. The same decision-per-finding discipline is what comparing two CLICK PLC programs for differences asks of you.
Getting a comparison file for your records #
The two-instance COMPARE navigates differences on screen and, in this workflow, writes no report file. If you need a file for your records, the session still leaves you three artifacts: the change register you kept while reviewing, the disk revision as found, and the reconciled copy saved under its own name. Between them they show what differed, what you decided and what the merged result is. Whether your installed Designer build can export comparison results to a file is documented in the help installed with that build — check there rather than assuming the interactive workflow produces one.
Merge, check and transfer #
The reconciled file is not in the PLC until you transfer it, and the transfer is a deliberate action of its own. Run the project checks, confirm every change-register entry has landed in the reconciled copy, then plan the download. One safety note: a download changes the program controlling a running machine, so if production is running normally, leave the controller unchanged until the transfer is approved for the machine's state.
After the transfer, run the comparison again, this time between the saved reconciled file and a fresh retrieval from the controller. Every difference should match an entry in the change register; a difference with no entry means a change was missed or another edit reached the controller. Keep the saved reconciled copy as the rollback reference: if the transfer misbehaves, recover from that file rather than editing the controller live or overwriting your reference.
Questions asked
Is it safe to run the comparison while the machine is producing?
Yes on the reading side. Opening the controller project, disconnecting and comparing change nothing in the PLC; the program that runs the machine is altered only when you download. Do the comparison whenever you need it, and schedule the download of the reconciled project for an approved machine state.
What does PLC->Disconnect change in the controller?
Nothing in the project. A disconnect releases the communication link the instance holds so another instance can re-use it. The PLC keeps scanning and its outputs keep following the running logic — dropping the programming link is not a stop. No logic, settings or data move in either direction while it is disconnected. Editing and downloading are separate actions you start deliberately.
The second Designer instance still cannot reach the link after the disconnect — what now?
Check the link the second instance is pointed at before touching any logic. A disconnect frees a link only for a session set to re-use it, and repeatedly opening project windows will not correct a connection aimed at the wrong controller. On Ethernet, create a NEW LINK in the second instance and open the PLC project with that new link so both instances hold their own sessions.
Why save the reconciled project under a new name instead of overwriting the disk file?
Because each file holds a different state of the project: the controller baseline as retrieved, the disk revision as last saved, and your reviewed result. Saving the reconciled work as its own copy keeps all three apart, so a review mistake costs rework instead of the only record of changes that were never downloaded. Overwriting the disk file with the controller copy can destroy those undownloaded changes outright.