Troubleshooting
Why Ignition imports S7-1500 structs as JSON document tags
Short answer
Ignition imports an S7-1500 struct as a document tag holding JSON when the connection in use cannot decode Siemens compound types; browsing only proved the endpoint was reachable. Install the Siemens Enhanced driver for native struct and UDT import. On a direct OPC UA connection, enable Deprecated Data Type Dictionary Support, reimport, and if the value is still one document, keep it and derive the members you need.
On this page
Ignition imports an S7-1500 struct as one document tag whose value is JSON when the connection you browsed with cannot decode Siemens compound types. The data in the PLC is intact. Browsing the data block proved only that the endpoint is reachable and the namespace lists the nodes; importing is what tests whether the client side can decode the compound type into member tags, and that is exactly where this fault sits. The fix is by path: install the Siemens Enhanced driver for native struct and UDT import, or on a direct OPC UA connection enable Deprecated Data Type Dictionary Support and reimport — and if the value is still one document, keep it and derive the members you need as scalar tags.
What a JSON document tag means here #
A compound type here means a Struct or a UDT instance: one PLC object with named members. To build usable tags from it, Ignition needs the value plus enough type metadata to reconstruct the member list. When that metadata is missing or cannot be decoded, the connection can still deliver the aggregate value, and Ignition stores it as a document tag: a JSON object carrying the members inside it. The member data is packaged, not lost. What the import leaves behind matches the reported symptom: the DB's macro area, plus a JSON value you cannot use as tags.
| Connection used | Import result reported on this fault | What it tells you |
|---|---|---|
| Standard S7-1500 driver | DB area imports; struct and UDT members do not map | The driver carries no compound-type mapping |
| Direct OPC UA | One document tag per struct, its value is JSON | The client has no usable type description |
| Siemens Enhanced driver | Structs and UDTs import with usable members | Symbolic import decoded the structure |
The three rows are the whole diagnosis, and the connection record in the Gateway tells you which row you are in before anything in the PLC project is touched.
First checks before you touch the PLC #
- Read the driver or connection type on the device or OPC UA connection record in the Gateway configuration. The name there is the diagnosis: a standard S7-1500 entry is not the enhanced driver, whatever the browse shows.
- Confirm the device reports a connected state, so a decode problem is not hiding behind a dead link.
- Pick one small DB that holds a known Struct or UDT instance and compare the browsable member names with the declaration in TIA Portal.
- Import that one object into a scratch tag folder, not the whole DB. That separates type decoding from import scope.
- Record what lands: named member tags, or one document tag whose value is JSON.
Browsing and importing test different operations. The browse tree reads the namespace; the import asks Ignition to create a persistent tag structure. A connection can pass the first and fail the second, which is precisely the pattern of this fault.
The driver path: install the Siemens Enhanced driver #
On the installation where this fault was reported, Ignition 8.3.3 was running and the enhanced driver was not present; it had been assumed to ship with the release, and on that installation it had not. Verify the module inventory before rebuilding tags or touching the PLC program:
- Open the Gateway configuration pages and review the installed modules and the driver types a new device connection can use.
- Look for the Siemens Enhanced driver specifically. Similar wording on the standard S7-1500 driver is a different row of the table above.
- If it is absent, obtain the module through Ignition's own distribution channel and install it, then confirm the Gateway reports it active, not merely uploaded.
- Create a new device connection with the enhanced driver against the same PLC endpoint. A connection created with the standard driver does not convert when the module arrives.
- Reimport the smallest Struct into a fresh folder. A clean import expands named members matching the TIA Portal declaration; stale tags from the failed attempt blur that check.
Two cautions belong next to this. Changing the connection type can change tag paths, so prove the enhanced connection on a contained DB before repointing production tags. And once structures decode, the imported members can be saved as a UDT definition in Ignition and instanced elsewhere, which is the second thing native decoding buys beyond the tags themselves.
The OPC UA path: data type dictionary support #
OPC UA describes structured values through type metadata, and one documented supply route for those definitions is the older data-type dictionary mechanism. Ignition's OPC UA connection carries a compatibility setting for exactly that case, named Deprecated Data Type Dictionary Support, documented on the OPC UA Connections page of the Ignition user manual. When the client cannot decode that metadata, the struct arrives as one document tag; the failure sits in the type description, not in the values. The same class of failure appears on other processor families: why a ControlLogix OPC UA struct reads Bad_DecodingError in Ignition is this metadata problem on ControlLogix tags. What the client is failing to read, node by node, is what troubleshooting a Bad_DecodingError during type dictionary decode walks through.
On the PLC side, firmware V2.6 or later with the OPC UA server enabled is the documented working floor for structured data over the S7-1500's own server, and the connection steps are the same as when connecting an S7-1500 to SCADA over OPC UA from TIA Portal.
Test the setting by comparison on the same node:
- Import one representative Struct into a test folder and record the connection settings.
- Enable Deprecated Data Type Dictionary Support on that OPC UA connection.
- Reconnect the session so the client re-reads the namespace and the type metadata.
- Reimport the same Struct into a separate fresh folder and compare.
If members now expand, you are done. If the value is still one document, the server is not supplying a dictionary this client can use: keep the document tag and build the member interface with derived tags. Keep those derived tags read-only until write behavior has been verified against the PLC, because a derived tag is an Ignition-side view of the document and does not convert the server's underlying OPC UA type.
Worked example: deriving two members from an eight-member UDT in DB10 #
Inputs, and where each comes from:
- Ignition 8.3.3 with a direct OPC UA connection to the S7-1500 — the installation this fault was reported on.
- PLC firmware V2.6 or later with the OPC UA server enabled — the documented floor for structured data.
- DB10 holds one UDT instance with eight members — an example declaration: four Real process values and four Bool statuses.
- The import produced one document tag whose JSON value carries all eight members — the reported import behavior.
- The screen needs two of them: one Real speed and one Bool running status — an example requirement.
Rule in words: a derived tag takes the document tag as its source and exposes one member pulled from the JSON as a scalar tag, so every member you need as a tag costs exactly one derived tag, while the document remains the single subscription to the PLC.
Arithmetic:
- 8 members in the document − 6 members not needed = 2 derived tags
- 1 document tag + 2 derived tags = 3 tags in the tag provider for that UDT instance
- 3 of the 8 tags a native import would create = 37.5% of the native tag count
Result: the whole structure is reachable through three tags instead of eight.
Decision, with its threshold: when a minority of the members is needed — 2 of 8 here — keep the document tag and derive, because that beats a module install for one screen. When more than half the members must be scalars, install the Siemens Enhanced driver and import natively: the structure then follows the PLC declaration, and new members appear on the next import instead of costing one more transform each.
The decision for each case #
- The whole DB imports as an area plus a JSON document → the connection cannot decode compound types. Do not rebuild the DB or the UDTs; the fault is on the Ignition side.
- Native struct and UDT tags are the requirement → confirm the Siemens Enhanced driver is installed and active, create the connection with it, import one Struct, then scope up to the DB.
- Direct OPC UA is the only path → hold the firmware floor stated above, enable Deprecated Data Type Dictionary Support, reconnect, and reimport the same Struct into a fresh folder.
- The value is still one document after the toggle → keep the document tag and add one derived tag per member you need, read-only until writes are proven against the PLC.
- Browse shows members but import still collapses them → check which connection the import actually used; installing a module does not convert an existing standard-driver connection.
Questions asked
Does a successful browse prove Ignition can import the struct?
No. Browsing reads the OPC UA namespace and shows node names, while importing asks the client to decode the compound type and create member tags. A connection can pass the browse and still deliver every struct as one document tag with a JSON value. Always test the import on one small struct before you scope up to the whole DB.
Do I have to change the PLC program to fix this?
No. The struct and UDT declarations in TIA Portal stay as they are, and the data block keeps its members. The fault is on the Ignition side: either the driver the connection uses, or the OPC UA type-metadata compatibility setting. Only the connection, the module or that setting changes.
Is the JSON in the document tag the same JSON Ignition uses to export tags?
No, they are different things. Ignition's tag export and import use JSON files that define tag configurations, documented on the JSON format page of the user manual. The document tag's value is runtime data: the PLC structure's members encoded as JSON inside that one tag. Do not try to import the document value as a tag configuration file.
Which S7-1500 firmware supports structured data over OPC UA?
Firmware V2.6 or later with the OPC UA server enabled is the documented working floor for structured data over the S7-1500's own server. Below that floor, treat the PLC firmware as the first suspect before changing client settings, because no compatibility toggle on the Ignition side substitutes for a server build that exposes the structured types.
Why did importing the whole DB give me only the top-level area?
The import reached the first compound type, could not decode it into members, and still created the area node with the document value beneath it. A whole-DB import also mixes two problems: type decoding and import scope. Import one struct by itself first; once that expands correctly, repeat the import at the DB scope you need.