r/PLC • u/SmokingTurkey • Aug 22 '19
What is good project documentation?
What do you include in your project documentation? (PLC Code? etc)
What do you use for project documentation? (software? etc)
Are there any standards or specifications that you use for documentation?
Current company I work at are shit at documentation, so here's to getting better at it through reddit.
21
Upvotes
15
u/camtarn Aug 22 '19
We use XWiki for documentation. It has users rights admin, so we can have a single wiki with sections for each client, and have client accounts with access to their individual sections. You can attach documents to wiki pages, which is good for e.g. IP address spreadsheets, and upload images for diagrams and so on.
My documentation includes an overview of the system, and a breakdown of the roles and responsibilities of each part. Other than that, it's mostly task-focused: how to restore a backup, how to perform a manual data backfill, how to add a new sensor to the system, what to do if an alarm fires, etc.
The documentation is structured to reflect this divide: there's a tree of pages breaking down the system and subsystems, then a separate tree with how-to guides. The two are heavily crosslinked to avoid duplicating data if possible.
Normally the docs would include a guide to the HMI as well, but for the projects where we've written docs, we developed the HMI alongside the clients and trained them in person.
Warnings are broken out using a custom box style, so actions which might break things are really obvious.
We haven't written any for our current clients, but in my previous job we also made heavy use of checklists and runbooks. If you're woken up at 4am due to an alarm firing, you really want a good diagnostic checklist with links to each diagnostic tool, then if it's a common problem, a runbook on how to solve it. (If it's actually a common problem, of course, development effort should go towards stopping it from ever happening!)
6
u/yer_muther Aug 22 '19
Documentation? Um our guys don't do that sort of thing. I find it hard to even get an electrical drawing let alone project documents. It's normally wrong too.
13
u/papakop AB Mercenary Aug 22 '19 edited Aug 22 '19
Such a catch 22. We engineers hate documenting , but want/need all the documentation to do our jobs.
What's worked for me is documenting what I do to solve an issue, while I'm working on it. Either in notepad or a word doc and plenty of screenshots. This is especially important when conducting a FAT or SAT. When the project is done, I don't have to write stuff from memory. The body of the document is already there.
Maybe I'd refer to the the following books for more info
11
u/kentkanifconnecticut Aug 22 '19
About to launch my own service doing design only.
I provide a detailed BOM of all panel components and field devices.
I write a project scope document which details the total overview and process sequence.
I provide an SCCR document which shows the component certifications (UL, CE, CSA etc.) And the total SCCR rating of the panel.
I provide a document which details the total power draw and the power draw per voltage level 600VAC/480VAC/120VAC then 24VDC.
I perform QC on my panels and provide a document which details all of my readings and general panel details.
If it's something like a conveyor system with lots of cables going to all different areas, I group them in an excel document and detail which cables are going to which area of the conveyor.
I also keep a folder which contains more folders that are sorted, the folders have every data sheet for every part on the project.
If there's an HMI - I create a document in word using snippets on how to use the software and what each screen displays and what each screen does.
I create a tag list in Excel of my tags with general descriptions.
An excel file with the ip addresses of all components.
A document which details step by step how my PLC software works as an algorithm, I should start showing this in a flow chart. For now it's numbered in a word document.
No company I've worked at does all of this, because I provide services I go the extra mile.
7
u/yuri_neko Aug 22 '19
New folders and Excel. Worked for me so far. Is a pain to keep revisions and up to date stuff
5
u/[deleted] Aug 22 '19
Comments on every bit/device used in PLC, with block comments describing the function and process flow of each individual block of code, stored in the PLC if possible. Descriptive tag names if you have a system that uses tags.
We make a new file that has the current date any time we save the program. All older revisions go into a "PLC Program Archive" folder in case a change made the machine do bad things.
Excel file kept at the top level (where the current PLC project is, with columns for Date, Program filename, Change(s) made, and a spot for the tech/engineer's name. This puts some liability on who did what changes. We have our own fileserver/mapped drive accessible from our laptops that is backed up every hour with differential back up methods, offsite.
5
u/linnux_lewis gotta catch 'em all, Poka-yoke! Aug 22 '19
Process Narrative + P&ID + IO Map + Schematics = Successful, maintainable automation project
4
u/b00c Aug 22 '19
Good project documentation is a documentation from which you understand what has been done, why it has been done and how they did it.
Good documentation is precise, concise and consist of only necessary documents, that can be tracked through some type of document control.
I use the client's standards and layouts. if they don't have one, I use our internal templates. they usually come with predefined structure that helps to make the docs complete.
If you don't know what documents are necessary, look at ISO 9001:2015. What goes into every document, that's more difficult. If you are doing simple, couple of hundreds IO project, the quality control V-model will be enough for you. It outlines how the testing is done, but you'll see there what docs are necessary.
3
u/ElderPraetoriate Upside-down Bucket Survivor Aug 22 '19
Most of the PLC programs we use (Systems Integrator for water/wastewater) have a project export straight from the PLC application that satisfies all of their submittal requirements. Typically includes rack, pcu, io card, variables, and the code itself. Perfect for putting into a binder and pdf upon delivery.