Reading current Project file and path #232
Replies: 5 comments 1 reply
-
I doubt that the PLC has knowledge of the file path. Major/minor revision is easy, GetDeviceProperties will return the revision. Getting the controller name will take some additional code, I'll see if I can help with that here in a bit... |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response. If we could at least get the file name in that spot it would be awesome. I am currently online with the plc and will attach screenshot. When you click on Controller properties. |
Beta Was this translation helpful? Give feedback.
-
One attempt to find out for sure if that is actually stored in the PLC would be to run wireshark, then open controller properties, navigate to that tab. See if you see that data come across in wireshark. I doubt it is though, just because you see that there doesn't mean that it is actually being pulled from the controller. I think the controller is unaware of all of that information, that is being read from from the file and displayed. The time stamps are likely from the file metadata. Make changes while offline, that data changes along with it. When I said I might be able to get the name, I meant the controller name, not the file name. In your case: FL000510_72009TX |
Beta Was this translation helpful? Give feedback.
-
Yes I have already been able to get the Controller name. I will open wireshark and see if anything shows up when I do that. |
Beta Was this translation helpful? Give feedback.
-
I would probably go about a different direction for this versioning system. In most cases plants have engineering workstations, for this project I would probably setup one that no one can touch. Keep all plc acd's in this one pc, could make one folder for each PLC, etc, every week or so, use autoit to do automation so that rslogix/studio5k tries to go online, and if it can't then something has changed, then perform an upload. With both old backup and new upload, convert them to l5x, then you can easily make comparisons. Trying to fetch a file name is probably going to be a dead end. Though, if you have constant uncontrolled changes, I would say there is a break in the process already that needs fixing. Engineering changes should have a request, approval, backup before change, put backup in some safe location, test procedure, etc. I am sure all that's being done. |
Beta Was this translation helpful? Give feedback.
-
We are building a revision control system. We are wanting ping the current PLC's on the plantfloor and grab the project file and path that resides in the controller properties tab on the PLC.
Does anyone have any idea on reading this particular location?
We can get some of the properties, like revision-major/minor, name of the PLC ect.
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions