Troubleshooting
Why GRAPH instance DB tags are hidden from WinCC in TIA Portal
Short answer
A GRAPH instance data block inherits its visible-in-HMI and accessible-from-HMI attributes from its function block, so the DB check boxes stay greyed out and WinCC cannot select the sequencer tags. Enable the GRAPH parameters for HMI access in the FB editor, reassociate the instance DB and recompile; the tags then appear in the WinCC tag browser.

On this page
- Why can't I make a GRAPH instance DB visible in HMI?
- Where does an instance DB's HMI visibility setting come from?
- How do I expose the GRAPH parameters from the FB?
- How do I reassociate the instance DB and recompile?
- How do I select the GRAPH variable in WinCC?
- How do I read an optimized instance DB from a third-party HMI?
- Why does the same instance DB work on an S7-300?
- Questions asked
If WinCC will not let you select the variables of a GRAPH sequencer in TIA Portal, the problem is not in the instance data block and you cannot fix it there. On an S7-1500-class CPU the instance DB inherits its HMI visibility from the GRAPH function block, so the check boxes in the DB stay greyed out. The fix takes three steps: enable the GRAPH parameters for HMI access in the FB editor, reassociate the instance DB with the FB, and recompile the PLC software. After that the sequencer tags appear in the WinCC tag browser and connect like any other PLC tag.
Why can't I make a GRAPH instance DB visible in HMI? #
You cannot change it, and that is the expected behavior: on an S7-1500-class CPU the instance data block inherits its visible-in-HMI and accessible-from-HMI attributes from the GRAPH function block that generated it, so the corresponding check boxes in the DB stay greyed out. The DB editor is not broken and no license is missing; the setting simply does not live there.
The reported case matches this exactly: a T1500-series CPU on TIA Portal V13.0, a sequencer written with GRAPH inside an FB, and an instance DB whose HMI properties could not be edited. The symptoms to recognize are:
- The WinCC tag browser does not offer the sequencer fields under the instance DB, so you cannot point an HMI object at the step signal you need.
- The instance DB editor shows the visible-in-HMI and accessible-from-HMI settings as inactive and refuses edits.
- The identical FB-plus-DB combination on an S7-300 project lets you toggle those settings in the DB directly, which makes the 1500-class behavior look like a fault. It is not.
Copying the whole instance DB into a global DB, the workaround people reach for first, is unnecessary here: the FB-side option exposes the fields where they already sit.
Where does an instance DB's HMI visibility setting come from? #
An instance DB is not an independent collection of declarations: it is generated from its function block, so its structure and its declaration attributes, including HMI visibility and accessibility, follow the FB wherever the DB editor would otherwise let you set them. A function block declares input, output and static parameters, and a fresh FB typically has them set to not visible; every instance DB built from it inherits exactly that. The programming language used inside the FB does not influence this inheritance.
The same parent-defines-child pattern appears outside TIA Portal as well, for instance in how an Ignition UDT instance inherits or overrides its template configuration, and the practical conclusion is identical: edit the definition, not the instance. So when the DB check boxes are greyed out, read that as a pointer to the FB, not as a communication or licensing failure.
How do I expose the GRAPH parameters from the FB? #
Open the function block in the GRAPH editor and enable the Edit-menu option that makes the GRAPH parameters visible and accessible from HMI; the exact wording follows the interface language, so identify the option by function, check it and save the block. In the reported V13.0 installation this single switch was the whole difference: before it, no sequencer field was selectable; after it, the DB attributes flipped to accessible and visible.
Work in the GRAPH editor itself rather than hunting for a per-declaration setting in the DB. The steps in order:
- Open the GRAPH FB that contains the sequencer whose signal you need on the screen, and identify whether that field is a status you display or a command you write.
- In the FB editor's Edit menu, enable the option that makes the GRAPH parameters visible and accessible from HMI.
- Save the block and check its declaration attributes; the parameters should now carry the HMI flags.
The visibility principle here is the same one that decides object access elsewhere, for example when enabling object access on a KTP700 Basic panel through visibility settings: the engineering attribute gates what the HMI is allowed to reach, independent of the runtime connection.
How do I reassociate the instance DB and recompile? #
Changing the FB does not refresh an existing instance DB on its own: reassociate the instance DB with the modified FB through the project's update workflow, then compile the PLC software and confirm there are no FB-to-instance consistency errors before downloading. Only a recompiled DB carries the new attributes; a saved FB alone leaves the installed instance stale.
Sequence:
- Run the association or update step so the existing DB is rebuilt against the modified FB instead of deleting and recreating it.
- Compile the PLC software and read the diagnostics: expect no unresolved FB-to-instance consistency messages.
- Reopen the instance DB and verify that its HMI visibility and accessibility attributes now mirror the FB settings.
- Download the changed blocks under your site's change-control procedure.
One caution before the download: the instance DB holds live sequencer state, and a rebuilt or initialized DB can reset values to their start values. Review what the download will initialize and schedule it for a planned stop rather than mid-sequence.
How do I select the GRAPH variable in WinCC? #
Select the tag symbolically through the WinCC tag browser, not by address: for example, with an FB named ConvSeq called once and its instance DB named ConvSeq_DB, the compiled project offers the sequencer status fields under ConvSeq_DB, and a step-number field of data type Int binds to a display object. No global-DB copy is involved at any point.
Prove it on the bench with real values: run the sequencer to a known step, say step 3, and confirm the HMI display shows 3 within one display update cycle after the PLC and HMI projects are downloaded. If it does, the chain from FB attribute to compiled DB to symbolic tag to runtime value is intact. The symptoms that remain after the fix mean something different from the original fault:
| Observed condition | What it distinguishes | Next action |
|---|---|---|
| Field still missing from the tag browser | Engineering exposure is incomplete | Recheck the FB option, the DB association and the compilation |
| Field selectable but the value never arrives | Runtime communication, not visibility | Diagnose the configured PLC connection and its runtime diagnostics |
| Field communicates but shows another sequence's state | Wrong instance or wrong symbolic path | Compare the tag path with the FB call that actually executes |
Treat any writable field as a control interface: expose status freely, but route operator commands through validated PLC logic rather than raw writes to sequencer internals.
How do I read an optimized instance DB from a third-party HMI? #
HMI visibility does not give an absolute-address driver a stable interface: an optimized DB stores its data in a compiler-managed layout with no fixed offsets, so a third-party HMI that polls byte addresses cannot read it, and the integration choice depends on what your driver supports. Decide it in two steps:
- Driver supports symbolic access: use the exposed GRAPH fields through the driver's symbolic workflow and confirm live value discovery on the bench. This is the correct choice and needs no extra PLC code.
- Driver requires absolute addresses: build a small, dedicated interface DB, uncheck its optimized-block-access option so it gains fixed offsets, copy only the needed status values into explicitly declared fields, and point the driver there. Keep commands on the PLC side and validate every write in logic; do not hand out offsets into the instance DB.
When you uncheck optimized block access on that interface DB, the editor adds an Offset column showing each field's compiled byte address, which is exactly what an absolute-address driver consumes.
Why does the same instance DB work on an S7-300? #
On an S7-300 the instance DB of the same GRAPH FB toggles its HMI settings directly because legacy S7-300 blocks are not optimized, which is why the identical DB that cooperates on a 300-series CPU refuses on a 1500-class one; the FB-side fix works on both platforms. The 1500-class CPU introduces the optimized layout that forces the inheritance, while the 300 keeps per-DB addressing and per-DB settings.
So the decision for each case: on a 1500-class CPU, never edit the instance DB's HMI attributes — enable the option in the GRAPH FB editor, reassociate and recompile. On an S7-300, you may set the DB directly, but applying the same FB-side option keeps the project uniform across platforms. On a third-party HMI, use symbols if the driver has them and a dedicated non-optimized interface DB if it does not. In none of these cases copy the instance DB into a global DB as a first remedy; it duplicates live state and adds a synchronization problem you then have to maintain.
Questions asked
Does the FB programming language change this behavior?
No. The inheritance applies to function blocks regardless of the language they are written in, so an ordinary LAD or FBD FB behaves the same way as a GRAPH one. The only difference is the name of the editor option: in a GRAPH FB it is worded for the GRAPH parameters, while other languages expose the same per-declaration HMI attributes directly in the interface editor.
Will recompiling erase the current sequence state in the instance DB?
Possibly, depending on how the FB interface changed and whether the engineering system requires an initialization download. The instance DB holds live sequencer state, so treat a recreate-from-scratch as a last resort. Use the documented update workflow to reassociate and recompile, review what the download will initialize, and apply it under your site's change-control procedure during a planned stop.
The option is greyed out even in the FB editor. What now?
Then the fault is in the project configuration, not in the DB. Check the CPU selected in the project's device configuration and the update level of your TIA Portal installation: in one reported V14 case the HMI option stayed inactive until the project's PLC configuration was corrected. Compare a known-good project before changing anything on the target.
Can I expose only some GRAPH fields to the operator?
The FB option exposes the GRAPH parameters as a set; it has no per-field switch. To limit what reaches the operator screen, restrict which objects you place and bind, and use screen-level access control for anything sensitive. For an external driver, copy only the needed status values into a small interface DB instead of mirroring the whole instance.


