Document variables without a deploy
Operators and other engineers read what a variable means, in which unit, and how to show it, without a change to the running program.
Before you start
Section titled “Before you start”- You are an engineer, and can check out the declaring POU (a global variable list or a program). Documentation is saved under the POU’s lock, like its text.
- Documentation is kept per POU, beside its text. It is never linked into the program and never part of the program hash: saving it changes nothing that runs.
- Click Tags to open the tag database.
- Double-click the Description, Unit or Display cell of a row and type. Display is a format such as
0.0or%d. - The first edit of a POU offers to check it out. Accept.
- Press Enter. The cell is saved at once: there is no draft mark and nothing to test or deploy.
For a structure or function block variable, click the row: the member panel shows each member with its offset, live value and documentation. The panel is read-only. Member documentation is keyed by path (RECIPE.TEMP_SP); it arrives with a PLCopen import, or through the route PUT /api/project/tagdoc/{pou}, which replaces the POU’s whole documentation file (an entry left out is removed).
Result
Section titled “Result”- The documentation is a new project revision, audited
PROJECT_TAGDOC_SAVE, with its own revision number per POU. The program hash does not change. - It is committed to the PLC’s version history with the next deploy or accept. A documentation file that does not match its recorded hash is left out of that commit, never blocking the deploy.
- CSV exports carry it in the columns
description,unit,displayandnotes, and PLCopen exports keep it.
Orphan descriptions
Section titled “Orphan descriptions”Documentation is attached to a variable by name. When you rename a variable in the text, its old entry stays and the tag database lists it as an Orphan description (an amber row warning). Click Re-attach on that row and choose the variable it now belongs to.
Troubleshooting
Section titled “Troubleshooting”| Message | Fix |
|---|---|
| you do not hold the lock of GVL_Line | The POU is checked out by someone else. Ask them to release it. |
409, the documentation changed |
Someone saved documentation of the same POU meanwhile. Reload the view and edit again. |
| Documentation ignored (row warning) | The POU’s documentation file could not be read. Save a description again to rewrite it. |