r/PLC • u/Innumera • 6d 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).
19
Upvotes
4
u/PLCGoBrrr 6d ago edited 6d 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.
31
u/HeavyPersonality4428 6d 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.
6
u/green_gold_purple 6d 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- 6d 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.
1
u/GarryShortt 5d 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:
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.
2
u/Constant_Barber_5198 6d 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 5d 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 5d 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 5d 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 4d 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:
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 5d 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.