IMDTouchKnowledge BaseShop main store

Explainer

S7CommPlus UDT and Array Support on an HMI Driver

HMI and touchscreens Published 7 min read

Short answer

Arrays of UDTs and nested structs imported and communicated successfully on one reported S7-1200 G2 and cMT2108X2 v2 bench pair over the S7CommPlus symbolic-addressing driver, but that result proves only the exact structures tested. The driver guide's support tables remain the documented limit: release against the tested layout, retest after any structural, driver, or firmware change, and get a written vendor statement before relying on a layout the guide does not list.

On this page
  1. Are arrays of UDTs supported on the S7CommPlus driver?
  2. Why did my bench test pass when the guide's table says no?
  3. What does a successful tag import actually prove?
  4. What must a bench test cover before I release the project?
  5. When must I retest HMI communication after a change?
  6. What do I do if the guide lists my layout as unsupported but it works?
  7. How do I record the result so the next engineer can release?
  8. Questions asked

On the S7CommPlus symbolic-addressing driver, arrays of UDTs and nested structs are neither blanket-supported nor blanket-blocked: support is whatever the driver's connection guide documents, plus exactly what you have proven on your own hardware. One reported bench result — a Siemens S7-1200 G2 with a Weintek cMT2108X2 v2 — imported and communicated both array-of-struct and nested-struct tags successfully, while the guide's support tables at the end of the document (pages 15–16 in the current 16-page edition) do not list those layouts. This article resolves that conflict as a release decision: what a passing test proves, what the guide governs, what a bench test must cover, and which changes force a retest. The decision up front: release against the tested layout, retest after any structural, driver or firmware change, and get a written vendor statement before relying on any layout the guide does not list.

Are arrays of UDTs supported on the S7CommPlus driver? #

Treat array-of-UDT support as proven only where you have proven it: on the reported S7-1200 G2 and cMT2108X2 v2 bench pair, both import and live communication of array-of-struct tags succeeded, and that result is valid for that exact structure and no other.

The documented half of the answer is the HMI vendor's PLC connection guide for the driver entry Siemens S7-1200/S7-1500 (S7CommPlus, Symbolic Addressing) (Ethernet). Its supported-data-type tables sit at the end of the document (pages 15–16), and they are the only statement you can put in front of a customer, an auditor or a service contract. A bench pass is real evidence, but it is not in the guide, so it cannot widen what the guide documents.

The two facts answer different questions: the tables say what the vendor commits to across models and firmware; the bench says what your build did on the day you ran it. The working rule has two halves. A layout the guide lists still needs your bench pass before release, and a layout the guide does not list carries only the bench pass, scoped to the exact structure that passed.

Why did my bench test pass when the guide's table says no? #

A working structure and a documented one are different claims: the tables state what the vendor commits to across model and firmware ranges, while a bench pass proves one PLC build, one HMI build and one project layout, so both facts can hold at once.

The material in front of you identifies no failing structure, no error code, no size limit and no firmware boundary, so the gap between table and bench cannot be closed from the outside. The tables might be conservative, your layout might match a case they allow, or the pass might ride on the specific builds you happen to run; only the vendor can say which. Do not guess. Keep the bench result, label it project-specific validation, and request a compatibility statement through the HMI vendor's official support channel when a customer or a validation plan needs the layout documented as well as working. Until that statement exists, the tables govern what you call supported and the bench governs what you call tested.

What does a successful tag import actually prove? #

An import proves only that the tag list transferred, never that the runtime path works; the reported pair passed both stages — EasyBuilder read the symbolic tags and live values then moved — and only import plus runtime read plus runtime write on the physical pair counts as a tested layout.

The flow the guide documents is: create the program and tags in the S7-1200 programming software, download the project to the PLC, go offline, then let EasyBuilder connect and pull the tag data into the HMI project. That produces a tag database, and a tag database is a list, not a working path. Import can succeed while a nested member or a single array element fails at runtime, which is precisely the intermittent, hard-to-trace fault you fear when a structure is undocumented.

A simulator session belongs to development, not to release evidence; the split between the two is the subject of testing HMI simulation against a live PLC. Check every required member at runtime rather than the parent structure alone, because a parent that reads correctly proves nothing about the leaves underneath it.

What must a bench test cover before I release the project? #

Release requires four things on the physical pair: every required leaf member readable, every required leaf member writable, values confirmed in the PLC after each write, and the driver entry, firmware builds and structure recorded with the result, because anything less leaves the layout untested somewhere you cannot see.

Run the checks on an isolated bench with verified test tags, because a test write moves a real value inside a real PLC; that isolation is the one safety rule the test plan needs. Then work the structure leaf by leaf, and count the leaves before you start.

Worked example, with an illustrative layout: say Station_Data is a UDT holding Setpoint (Real), Status (Int) and a nested UDT Axis_Data that contains Pos (Real) and Alarm, a Bool array of 4, with the HMI referencing an 8-element array of Station_Data. Leaves per element: Setpoint, Status, Axis_Data.Pos and Alarm[0] through Alarm[3], so 2 + 1 + 4 = 7 leaves. Across the 8 elements that is 7 × 8 = 56 leaf paths. If the operator edits the setpoint on every station, 8 of those paths are writes and the remaining 48 are reads. The test matrix is all 56: read every leaf, write the 8 setpoints, confirm each written value in the PLC, and only then call the layout tested. These names are an example structure, not a documented one; substitute your own hierarchy and bounds and recompute the count.

When must I retest HMI communication after a change? #

Retest on any of five triggers: a change to the UDT or struct definition, new or changed array bounds, deeper or shallower nesting, a different driver entry or EasyBuilder version, and any PLC or HMI firmware update, because a tested layout carries only until one of them moves.

Structural edits are the obvious triggers; the quiet ones are software. Changing the driver entry forces the tags to be re-imported into the HMI project, and the driver choice is deliberately kept separate from the way the project reaches the controller — separating HMI transfer method from PLC driver selection covers that split. Firmware updates change either end silently, and the guide itself gets revised, so re-read its tables as part of the same retest. Keep the 56-check matrix, or your own count, in the project folder, so a re-run is a bounded task rather than a rediscovery.

What do I do if the guide lists my layout as unsupported but it works? #

Run it as tested-but-undocumented and do not widen it: keep the exact structure that passed, note the driver entry and firmware builds beside the result, and request a compatibility statement through the HMI vendor's official support channel before any new project relies on the layout.

The statement is the gate because the fault you are guarding against — an intermittent communication failure that surfaces only after some future change on either end — is exactly what an undocumented path can produce. If the vendor confirms support, file the statement with the project record and the layout becomes documented as well as tested. If the vendor answers that the layout is unsupported, plan the fallback now: hand the HMI the members it needs as scalars in a plain exchange area, or flatten the array into individual tags, so the driver never has to interpret a nested or arrayed path. Make that call at design time, not during commissioning.

How do I record the result so the next engineer can release? #

Record five things with the project — the full UDT hierarchy with member types, every array bound, the driver entry name, the PLC and HMI firmware builds and the EasyBuilder build — then attach the bench matrix and its pass date so the next engineer inherits a decision instead of a rumor.

Keep the record beside the HMI project so a tag re-import or a conversion cannot drift away from it, and reduce the release decision to the evidence in hand:

Evidence in hand Decision
Guide lists the layout and the bench pass exists Release; supported and tested
Guide is silent and the bench pass exists Release scoped to the tested layout, retest on any structural, driver or firmware change
No bench pass Do not release; run the leaf-by-leaf matrix first

The middle row is where the reported S7-1200 G2 and cMT2108X2 v2 result stands today; the bottom row is where every new layout starts.

Questions asked

Why can't an absolute-addressing driver reach my optimized data blocks?

Optimized data blocks on an S7-1200 or S7-1500 have no fixed byte offsets, so an absolute driver has no address to point at. Symbolic access by name through the S7CommPlus entry is the documented route, which is why the driver selection decides which structures are reachable before any test starts.

Can I import tags from the TIA project instead of reading them from the PLC?

Yes; the vendor's quick-start guide documents both paths, pulling tag data from the physical PLC after you go offline or importing tags from the TIA project. Either way the import only builds the HMI tag database, and the physical read and write checks on the real pair still decide the release.

Is the older S7-1200 symbolic driver entry still a valid choice for a new project?

The HMI vendor's guidance describes the entry named Siemens S7-1200 (Symbolic Addressing) (Ethernet) as legacy and points new projects to the Siemens S7-1200/S7-1500 (S7CommPlus, Symbolic Addressing) (Ethernet) entry. Check which entry your project actually uses before comparing its behavior against a guide, because the two entries carry different support tables.

Should I flatten the structure into separate tags to avoid the question entirely?

Flattening is the low-risk fallback when a layout stays undocumented: scalar tags on basic types give the driver no nested or arrayed path to interpret, at the cost of a longer tag list and more tags to maintain. Decide it as the planned fallback at design time, not as a mid-commissioning rescue.

Keep reading

  • Troubleshooting

    Why EasyBuilder Asks for a Tag CSV for a Mitsubishi Q PLC

    EasyBuilder asks for a tag CSV because the selected Mitsubishi driver is the label-based one, and GX Developer cannot export labels in that format - its converter refuses label-based projects. Switch the project to the Q-series Ethernet driver and address D, X and Y devices directly, with no CSV at all. If you want symbolic names, open the Q project in GX Works2 and export the label CSV from there.

    HMI and touchscreens

  • Troubleshooting

    Reading Twido %MF floating values on an XBTGT HMI

    The XBTGT shows nothing valid for a Twido %MF because the tag is typed as a word: a %MF holds a 32-bit REAL across two 16-bit words. Set the HMI variable to Float on the exact %MF address with Low byte first word order, or publish a scaled %MW in the PLC and divide by the scale factor in the HMI.

    HMI and touchscreens

  • Troubleshooting

    When an HMI and PLC ping but will not communicate

    A ping proves only IP reachability. Build a minimal test project with one online-imported tag: if it shows live values, the network, the Put/Get permission and the access level are good, and stale tag references in the production project are the fault. Re-import the tags online, correct the flagged entries, recompile and download.

    HMI and touchscreens