IMDHMIControls LibraryShop main store

Troubleshooting

Why TIA Portal shows no tag comments above operands

PLC programming Published 5 min read

Short answer

TIA Portal draws a tag comment above an operand only when tag information under Options > Settings > PLC programming is set to Tag information with hierarchical comments and the comment exists at the declaration — tag table, DB element, UDT member or block interface. If the setting is right and the display is unchanged, close and reopen the editor, then restart TIA Portal. A blank line then means the comment is empty or sits at another structure level.

On this page
  1. What the tag information setting controls
  2. Turn the display on
  3. Check the comment where the operand is declared
  4. Worked case: Motor_Start stays blank after the setting is changed
  5. Questions asked

In TIA Portal, the comment line above an operand appears only when two things are true: the user setting Tag information with hierarchical comments is selected under Options > Settings > PLC programming, and the operand's tag carries a comment at its declaration — the Comment column of the PLC tag table, the element row of a data block, the UDT member, or the block interface. The setting belongs to the user profile on each engineering PC, not to the project, so a colleague's station keeps its own value. If you select the setting and nothing changes, close and reopen the block; if the display is still unchanged, restart TIA Portal. A line that stays blank after that means the comment is empty at the declaration or sits at a different structure level. The checks below run in that order and end with a decision for each outcome.

What the tag information setting controls #

The tag information entry in the PLC programming settings selects what text TIA Portal draws with each operand. Show draws the tag's own comment. Tag information with hierarchical comments also draws the comments of the higher structure levels for structured tags, so a data block element is drawn with its structure's comment alongside its own. With tag information off, the operand is drawn bare.

Classic STEP 7 drew the symbol comment with the address in the network view. TIA Portal keeps that text on the tag and draws it only when tag information is switched on, which is the behavior Classic users miss first. If it is unclear which generation a project belongs to, what STEP 7 is in a PLC project, and which one you need sorts that out before you change any setting.

These comments are project data drawn by the editor offline; no connection to the PLC is involved. If TIA Portal cannot reach the controller at all, that is a different fault — S7-1200 shows link lights but TIA Portal cannot connect covers that case.

Turn the display on #

  1. Open Options > Settings in TIA Portal.
  2. Select the PLC programming group in the settings tree.
  3. Set the tag information entry to Tag information with hierarchical comments. Choose Show instead when you want the tag's own comment without the parent-structure lines.
  4. Confirm the dialog, then close the open block editor tab and reopen the block from the project tree. An editor that was already open when the setting changed keeps drawing the old view — the usual reason a freshly selected setting appears to do nothing.
  5. If the comment line is still missing after the reopen, exit TIA Portal completely and start it again, then check the same block.

Check the comment where the operand is declared #

The setting only decides whether stored text is drawn; it cannot create text. Read the declaration that owns the operand:

  • Global tag: the Comment column of its row in the PLC tag table. Empty there means nothing can be drawn in any block.
  • Data block element: the comment field on that element's row. With hierarchical comments on, the enclosing structure's comment is drawn with it, so a missing parent comment leaves a partial line.
  • UDT member: the comment belongs in the UDT type definition, and editing the DB instance does not change it. After a UDT edit, the DB instances and their calling blocks must be recompiled before the editors show the new text. A UDT fix ends in a recompile and a download, so make that download from a machine state you control. Array members have their own handling for member comments — resolving the TIA Portal array member comment limitation walks through that case.
  • Block-local variable: the comment column in the block's own interface. The PLC tag table never covers these.

When a similarly named tag carries a comment but the operand stays blank, confirm which tag the operand resolves to in the project's cross-reference list before changing anything.

Worked case: Motor_Start stays blank after the setting is changed #

Inputs, each with its source: the reproduced report is the one where Tag information with hierarchical comments was selected under Options > Settings > PLC programming and the open block did not change; the project facts are illustrative — a global tag Motor_Start in the PLC tag table with the comment Starts conveyor motor, a block Main that was open before the setting changed, and a data block element Conveyor1.Cmd with a comment on the element row but none on the parent structure Conveyor1.

The rule in words: the editor draws a comment only when the stored setting asks for it and the text exists at every level of the operand path, and an editor keeps the view it had when it was opened.

Run the checks in order and stop at the first change:

  1. Reopen Main. The Motor_Start comment line appears: the cause was the stale editor, done.
  2. If not, restart TIA Portal and reopen the same block. The line appears: same cause, settled by the restart.
  3. If Motor_Start is still blank while its tag table row shows Starts conveyor motor, open the PLC programming settings again and read the tag information entry back. A reverted value means the dialog was never stored; select it again and confirm.
  4. Look at Conveyor1.Cmd in a reopened block. It shows the element's own comment with no parent line: that is the display working correctly against a missing structure comment, not a broken setting. Enter the comment on the Conveyor1 structure row and recompile.

Result: with the setting stored, the editor reopened, and text present at each declared level, every operand draws its comment line.

The decision: blank after a reopen — stale editor, fixed without touching project data. Blank after a full restart — the Comment column at the declaration is empty, so enter the text there. A structured operand with partial text — a missing comment at a higher structure level, not a display fault.

Questions asked

Does the tag information setting travel with a project archive?

No. TIA Portal keeps it with the user profile of each engineering installation, so a colleague's PC or a replacement station shows operands without comments until someone selects Tag information with hierarchical comments in the PLC programming settings there. What the archive does carry is the comment text itself, because that part is project data in the tag tables, data blocks and UDTs.

Can one comment serve every block that uses the same tag?

Yes. The text is stored once at the declaration — in the PLC tag table for a global tag, in the UDT for a shared type — and every block that references it draws the same text once tag information display is on, with nothing to maintain block by block. The only comments you keep per block are those on local interface variables, which live in each block's own interface.

Why does a UDT member show its comment in one data block but not another?

The comment belongs to the UDT type definition, so every instance draws it once they are current. When one block stays blank, that instance was compiled before the comment was added: update and recompile the affected data block and its calling blocks, reopen the editors, and check again. Also confirm the text was entered on the UDT itself and not on an identical structure declared locally inside the data block.

Keep reading

  • Explainer

    What STEP 7 is in a PLC project, and which one you need

    STEP 7 is the engineering software you use to program, configure, diagnose and download to SIMATIC PLCs — a workstation tool, not a part of the PLC itself. SIMATIC Manager, also called STEP 7 Classic, configures S7-300 and S7-400 CPUs; STEP 7 inside TIA Portal configures S7-1200 and S7-1500. Read the CPU family from the module label or the existing project, open the matching environment, and confirm the project's hardware configuration matches the installed CPU before you edit or download.

    PLC programming

  • Troubleshooting

    SLC 5/03 pulse sequence logic will not run

    Your sequence logic is probably fine: the ladder file holding it is never called from File 2, and green highlighting on both OTL and OTU shows the bit's state, not that both rungs execute. Call the file, one-shot I:8.78 with OSR, latch a sequence bit, and clear it only after the last pulse on O:7.4.

    PLC programming

  • Troubleshooting

    When a CODESYS TON works in structured text but not ladder

    The structured text routine counts because its four statements run in sequence inside one scan; the ladder version fails when the reset network clears Timer.Q before the addition samples it, or an unconditional reset restarts the timer every cycle. Put the call, the Q test, the addition and the reset of the same TON instance in one ladder network, left to right in that order, and it counts exactly one B per interval.

    PLC programming