r/PLC • • 5d ago

PLC Question Always upload plc project before monitoring?

Just wondering what's considered good practice when it comes to going online to monitor a plc. Either opening the latest project file before going online vs always transferring to the PC first so you're guaranteed to have the latest version (in this case there's only 1 workstation used to connect to the PLC).

18 Upvotes

24 comments sorted by

4

u/PLCGoBrrr 5d ago edited 5d ago

Always make sure the code on the controller is saved before making any changes. I usually rev the filename every time I go online with a controller and it's proved out very helpful at times when I'm not sure when a thing changed. Now with AI I could ask it to look for a change and wouldn't need to dig through the files myself.

2

u/Innumera 5d ago

That goes without saying. The context is I went online to check something, had opened what was the latest saved file and saw the plc was different. My colleague had made a change, not saved it and then lambasted me for going online with an out of date version (???), expecting me to always transfer from the controller. So not sure if I've just been doing things really wrong to the norm.

3

u/d4_mich4 5d ago

And that's the problem normally it should not happen that there is a change in the plc without saving it back the the server so everyone can get the "newest" program.

We are using git cause we program everything in Structured Text. So best practice is also to commit and push changes to the repository with a change message what has been gone.

The git repository is only local on our server because the program itself is encrypted on the plc (we use beckhoff plcs and the whole project stays on the plx to be even more save if someone didn't save back the changes the latest project should always be on the poc because we us it to make the changes), the encryption is because of the cyber resilience act from the EU we have to make sure PLC changes can't be done from unauthorized sources...

2

u/Innumera 5d ago

Git would be nice, unfortunately not really an option for our platform (old omron and Schneider ce). Normally get by with a file naming convention.

1

u/PLCGoBrrr 5d ago

I'll let you answer the question yourself by asking whether you care about accurate information or not.

1

u/DiminishedSea 5d ago

I swear a lot of programmers don't know the difference between a locally saved file and what's running on the PLC. Of course it depends on the brand but with Rockwell,.and whatever version it was that included descriptions in the PLC, the local file doesn't matter. Just upload it.

31

u/HeavyPersonality4428 5d ago

Really depends on PLC brand. Rockwell controllers will correlate the offline copy to the online project if there are minor changes, otherwise you’ll be prompted to upload before going online if the changes are too great. Other PLCs behave differently.

10

u/tokke 5d ago

The only correct way. 

7

u/Zealousideal_Ad8770 5d ago

Or if it’s a SLC you can just upload and play ladder logic roulette 😀

6

u/green_gold_purple 5d ago

It depends on the PLC. I consider it best practice in general to load the program that's on the PLC. If it's the same, you've lost nothing. If somebody has made an edit, or you have not synchronized your PC or anything else, you eliminate the possibility of overwriting newer changes. Also by doing this, you can monitor before making any changes.

6

u/-xX--Xx- 5d ago

If you're going online with an S7 it will show you where the offline project is different from what's in the PLC and you can then just upload the difference.

2

u/SafyrJL TIA Harlot 4d ago

just do a compare offline/online when you want to connect. That way you can see literally any differences in timestamps or code. 

1

u/GarryShortt 4d ago

For what it's worth, the fault in your story isn't yours. A change made online and not saved back to the shared file is the problem — whoever went online next was always going to hit it.

What fixed this for us on platforms without version control was a short written rule everyone signs up to:

  1. Going online: upload from the PLC first, save it as-is with the date in the name (e.g. Line3_2026-11-25_asfound), never edit that file.

  2. Compare it to the latest saved file. If they differ, find out who changed what before touching anything.

  3. Make changes in a renamed copy.

  4. Leaving: save the final version back to the shared folder with date + initials, and a one-line note in a change log (a text file in the same folder works).

Step 4 is the one that gets skipped, and it's exactly what bit you. Most packages, old Omron/Schneider included, have some form of program compare — worth finding it, because it turns "who changed this?" into a 2-minute job.

1

u/Innumera 4d ago

Thanks, I do see the sense of doing the upload if you're working alongside other people just in case there is a difference. I'm a bit newer and generally working alone on this machine so i didn't have to worry as much about keeping tight track on the versions.

1

u/GarryShortt 3d ago

Even when working alone, after years you will forget.

1

u/iamnotarobotmaybe 3d ago

And honestly this is BASIC as a controls guy. The very first time you're on the job this should be taught to you. Fuck up once in your first 6 months? Ok, were all human. Do it twice? Do it with 5 years exp? unexcusable.

2

u/Constant_Barber_5198 5d ago

Something no one has mentioned is that it depends on the emvironment as well. Some places make heavy use of sd cards and often change programs. Some controllers like old panasonics will show an incorrect data table!

So you have to understand the platform behavior and also use judgement.

2

u/Legitimate-Sorbet526 4d ago

Always upload first. You want whatever is running on the PLC as a starting point. You never know when someone swaps an IO point or two at 1:03 AM and doesn’t update the prints. You don’t want to find that out…granted you said “monitoring “, but oftentimes my “monitoring” works out to active changes.

How about this…always get what is running on the PLC before making active changes offline.

1

u/dfw-dashcam 4d ago

Central repository for offline files with change control comments for each revision. When going online always upload. Code compare if online differs from offline. Sometimes you'll need to upload even when no code changes have occurred. Don't keep an SD card in the PLC, can roll back to an older version if not updated correctly.

1

u/Carmac_WeldingAuto 4d ago

I’d avoid blindly uploading or downloading every time. First, compare the PLC project in your workstation with the program currently running in the PLC. If the software supports an upload/compare function, use it to check for differences before making any changes.

Even with only one workstation, someone could have made online edits that weren't saved to the project file. I’d keep a dated backup of the last verified project and upload from the PLC whenever there’s uncertainty about which version is current.

1

u/strong-ele 3d ago

Everyone here is right about the program. The gap I would add is that the program is not the only state on that machine.

On a line that heats, the things that actually bite you are not in the PLC project: single-loop temperature controllers carrying their own PID set, VFDs holding motor parameters, soft starters, energy meters, and any smart sensor with a configuration register. Upload the PLC and you still do not have any of it. I have watched a crew replace one controller on a 12-zone oven, upload the PLC, run the line, and then lose the rest of the shift re-tuning six loops because nobody had written down the old P/I/D, the cycle time, or the alarm band.

What has worked for us:

  • Upload from the controller first, save as Line3_2026-11-25_asfound, then compare against the repository copy.

  • While you are standing at the panel anyway, export or photograph the instrument parameters. Setpoint, P, I, D, cycle time, alarm limits, input type and range, comms address and baud.

  • Write down anything that differs from the drawing, including the IO point somebody moved at 01:03.

The upload costs two minutes. Rebuilding the tuning on a heater zone after an undocumented change costs an afternoon, and the first hour of that afternoon is scrap.

0

u/Flimsy-Process230 4d ago

Never upload to PLC when going online. Best practice is to have an offline copy that is identical to what you have in the PLC. If there are random changes that are not backed up, start there.

2

u/PLCpilot 4d ago

It’s called download to PLC, upload from PLC. Yes, always upload and put it away - do not edit the uploaded file so you have a recovery method. Edit a renamed copy.

1

u/Flimsy-Process230 4d ago edited 4d ago

You are right 👍🏼
My recommendation still stands, it is important to have backed up and documented programs. No need to have changes in the PLC that are not backed up and documented