# Document variables without a deploy

> Give eaxPLC variables and structure members a description, engineering unit, display format and notes in the tag database; the documentation is saved at once as a project revision, never linked into the program, so it needs no test, no deploy and no signature.

Product: eaxPLC · Type: How-to guide · Editions: Free, Pro
Source: https://eaxware.com/docs/eaxplc/how-to/document-variables/
Verified against commit 61fb2c8.

## Goal

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

- 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.

## Steps

1. Click **Tags** to open the tag database.
2. Double-click the **Description**, **Unit** or **Display** cell of a row and type. Display is a format such as `0.0` or `%d`.
3. The first edit of a POU offers to check it out. Accept.
4. 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

- 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`, `display` and `notes`, and PLCopen exports keep it.

## 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

| 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. |

## Related

- [Data model: why access is signed and descriptions are not](/docs/eaxplc/explanation/data-model/#why-access-is-signed-and-descriptions-are-not)
- [Export and import the tag database as CSV](/docs/eaxplc/how-to/export-and-import-the-tag-database/)
