Well to start, I am the contractor and I'm complaining about the company's lack of standards
But there are a bunch of things that are working for and against me in this project:
Against:
- I'm talking to Rx3i PLCs so there is no nice hierarchical OPC data. Instead all 3000 published variables are presented in a single list (which makes finding particular variables in Ignition fun)
- There are 10 to 15 different prefixes applied to these variables within the PLC, and for this project I need to pick things from about 12 different prefixes.
- For fun, in several cases the data I want is duplicated under different prefixes, but sometimes updated under slightly different conditions, so I have to be careful in which variable I use.
- There are multiple spellings for the same type of data in different functional locations. EG "WaitForThing" and "WaitThing2" are wait times for the same thing but in two different locations (and there is no "Wait" variable with a "1" suffix)
For:
- I am very familiar with the PLC code, so over the years I have learnt most of the in's and out's.
- I can change the PLC code and I am solving the "against" points in the PLC by installing a new block and mapping all of the required variables to a new set of names under (yet another) a new prefix
- This new block will become the standard for the interface to this set of data and eventually rolled out to at least 110 systems at just this one customer site.