r/PLC • • 14h 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).

9 Upvotes

18 comments sorted by

3

u/PLCGoBrrr 14h ago edited 14h 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 14h 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 12h 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 10h 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 13h ago

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

1

u/DiminishedSea 13h 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.

18

u/HeavyPersonality4428 14h 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.

5

u/tokke 13h ago

The only correct way. 

5

u/Zealousideal_Ad8770 11h ago

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

4

u/WeirdestHeadache 10h ago

SLC upload just called, said F your rung and operand comments

5

u/green_gold_purple 14h 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.

3

u/-xX--Xx- 14h 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/Constant_Barber_5198 13h 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 5h 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 45m 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/Flimsy-Process230 4h 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 49m 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 23m ago

You are right 👍🏼