IMDTouchKnowledge BaseShop main store

Troubleshooting

Why an HMI rejects PLC user-defined data types on import

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

A Studio 5000 UDT fails to import into C-more because the HMI tag database stores only atomic types and has no structure type to map a UDT to. Address the members you display as individual atomic tags — Tag.Member or ArrayTag[n].Member — and, when only one or a few units show at a time, copy the selected array element into one PLC holding instance and tag its members once.

On this page
  1. Why does C-more reject a Studio 5000 UDT on import?
  2. Which rows did the import reject, and why?
  3. How do I tag UDT members instead of the whole structure?
  4. When is a holding instance better than tagging every member?
  5. What does the copy logic in the PLC look like?
  6. How do I verify the member tags on the machine?
  7. Why do HMI edits revert or land on the wrong unit?
  8. Questions asked

A Studio 5000 UDT fails to import into C-more for one reason: the HMI tag database stores only atomic types and has no user-defined data type, so a structure-typed controller tag has nothing to map to and the import drops it. The fix is not a better import. Address the members you actually display as individual atomic tags — Tag.Member, or ArrayTag[n].Member for an array of structures — and, when only one unit shows at a time, copy the selected array element into a single holding instance in the PLC and tag its members once. This article gives the triage for a failed import, the decision between member tags and a holding instance with the arithmetic, the copy logic, and the checks that prove the result.

Why does C-more reject a Studio 5000 UDT on import? #

C-more's tag database stores only atomic types — bits, integers, floating point and strings — so a controller UDT has no type to map to, and the import rejects every row typed as a structure; no import option changes that.

Atomic here means the tag database holds single values: BOOL, integer, floating point, string. A structure is none of those, and the C-more software offers no editor that creates one, which is why re-running the import, toggling its options, or typing the UDT name into the data type field all fail identically. What survives is the member: every branch of a structure ends in an atomic type, and the driver can address that element directly. C-more is not the only package built this way — EasyBuilder Pro imports no user-defined tags, and that article shows where its limit sits. Build the screen on member tags first; decide whether a holding instance saves rows afterwards.

Which rows did the import reject, and why? #

Open the import report and compare it against the controller tag list: only rows typed as UDTs missing means the type limit described above, while missing atomic tags point to driver, path or spelling trouble instead.

  • Only structure-typed rows are missing while BOOL, INT, DINT and REAL rows came in: that is the type limit, and member addressing is the fix.
  • Atomic rows are missing too: the UDT is not the problem. Check the driver selection, the controller path and the tag spelling against the controller before anything else.
  • A UDT tag name imported, but its objects show a communications error or stale values: the tag points at the whole structure. Delete it and address a member as in the next section.

Case one goes to member addressing; cases two and three go back to the driver and the tag list before you touch the screen. Re-running the import against the same type limit returns the same rejections.

How do I tag UDT members instead of the whole structure? #

Address each member as its own atomic tag — Tag.Member for a single instance, ArrayTag[n].Member for an element of an array of UDTs — and build the rows in a spreadsheet when the list is long.

  1. Add one member tag by hand: pick the Allen-Bradley driver, enter the address as Tag.Member with the member's atomic type, and confirm it reads live data. If that first entry comes back as an invalid bit address, Fixing Invalid Bit Address Errors When Adding HMI Tags covers that error specifically.
  2. Export the C-more tag database to a spreadsheet; the row you just added is the format template.
  3. Copy that row for every member and index the screens need. Follow the controller's own spelling exactly: Tag.Member for a single instance, ArrayTag[n].Member for an array element.
  4. Set each row's data type to the member's atomic type: REAL becomes floating point, DINT a 32-bit integer, BOOL discrete.
  5. Name each HMI tag for its purpose and its index, so screen objects stay easy to assign later.
  6. Import the spreadsheet and read the report row by row. Bringing rows into a database that already has tags follows the same merge rules as Importing a PLC Tag CSV into an Existing HMI Tag Database.

Stop on any rejected row whose member is itself a structure: address down to the atomic element, as in Tag.SubStruct.Member. A member that is a structure fails for the same reason its parent did.

When is a holding instance better than tagging every member? #

Count the instances the screen shows at once: every unit visible on one overview needs a member tag for each displayed member of each unit, while a detail popup that shows one selected unit needs those members tagged once against a holding instance.

What the operator sees at once Route HMI tag count PLC change
Every unit live on one overview or alarm list Member tags Displayed members multiplied by the unit count None
One selected unit at a time in a detail popup Holding instance Displayed members, tagged once Selector tag, load copy, write-back on save
Overview and detail popup together Both Both counts Holding-instance logic only

Worked example with illustrative numbers: the structure has 12 members, the overview displays 4 of them, and the line runs 8 units. Branch A: 4 × 8 = 32 member tags. Branch B: the same 4 members tagged once on the holding instance, plus the selector, last-index, save-bit and holding tags in the PLC — 4 rows instead of 32, and the HMI side stops growing with unit count.

Tag only the members the screens use. A structure with dozens of members may need three of them on screen; tagging the rest buys tag rows and polling load for nothing. The decision is made by the screen, not the PLC program: count simultaneous instances, then pick the row.

What does the copy logic in the PLC look like? #

Each direction is one COP rung with Length 1: with a UDT as the destination type, COP counts destination elements, so a length of 1 moves one whole structure.

Range-check the selector against the array bounds before the indexed copy runs — an out-of-bounds index can major-fault the controller with the machine running.

// Illustrative names, replace with your own controller tags:
// Selector: DINT, starts at 0, written by the HMI
// LastIndex: DINT, starts at 0, remembers the loaded element
// ArrayMax: DINT, holds the UDT array's highest index
// Hold: a controller tag of the same UDT type
// Save_Bit: BOOL, set by the HMI save button

// Load on selection change
NEQ Selector LastIndex -> LIM 0 Selector ArrayMax -> COP Array[Selector] Hold Length 1 -> MOV Selector LastIndex

// Write back only on the HMI save bit, then reset it
XIC Save_Bit -> COP Hold Array[LastIndex] Length 1 -> OTU Save_Bit

If live process values must keep updating while the popup is open, copy those members every scan instead of on selection only, and keep operator-writable setpoints on the save path. Continuous copying in both directions is what makes HMI edits revert.

How do I verify the member tags on the machine? #

Prove the path in both directions before the screen goes to the operator: change a member value in Logix Designer and watch the C-more object follow it, then write from the HMI and watch the value land in the right member and the right array index.

  1. Go online with the controller, change a displayed member's value in Logix Designer, and confirm the C-more object follows it.
  2. Write the same value from the HMI and confirm it lands in the correct member — and, on the holding-instance branch, in the correct array element after the save.
  3. Step the selector through every index, first and last included, and confirm the displayed data changes each time and the controller takes no fault.
  4. Open the busiest screen with every member tag on it active and judge the update speed before the operator does.

Why do HMI edits revert or land on the wrong unit? #

Reverting edits almost always mean the load copy runs every scan and overwrites the holding instance; trigger it with a one-shot on selector change instead, and write back only on the save event.

Symptom after the fix Cause Correction
HMI edits revert immediately The load copy runs every scan and overwrites the holding instance Trigger the load with a one-shot on selector change
An edit lands in the wrong unit Write-back used the new selector before the save completed Write back to the last loaded index and block selector changes during a save
Controller major fault on selection The selector went outside the array bounds Range-check or clamp the selector before the indexed copy
Member tags show errors after a PLC download A member was renamed or its type changed Re-export the spreadsheet, correct the addresses, re-import
Slow screen updates Too many member tags polled at once Drop unused members or move detail data to the holding instance

Every correction in this table is PLC logic or tag data; none of them is a screen setting.

Questions asked

Does the L5K import change the answer?

No. The C-more software has no editor for user-defined data types, and the Allen-Bradley driver documentation describes its L5K import as bringing the predefined data types. Claims about structure members coming through L5K or L5X depend on driver version and file content, so treat your import report as the verdict for that combination and build the screen on member tags either way.

Does addressing members individually raise communications load?

Yes, in a way you control. Each member tag is its own polled item and its own row in the tag database, so a screen that shows three members of a ten-member structure should carry three rows, not ten. Tag only what the display uses, keep detail-screen data behind the holding instance, and re-check update speed on the busiest screen after the change.

Does a holding instance work when two units must show side by side?

One holding instance serves one displayed unit at a time. Two detail windows running side by side need two holding instances, two selectors and two load copies, which is usually the point to switch back to direct member tags. Decide by what is on screen at the same moment: one detail popup favors the holding instance, a multi-unit detail view favors member tags.

What happens to unsaved edits when the operator changes screens?

They stay in the holding instance and disappear at the next load copy, because nothing has written them back to the array. If that would lose real setpoints, trigger the write-back from the screen-change event as well, or block the load until the save bit has been processed. Pick the trigger deliberately; both behaviors are correct for different machines.

Keep reading

  • How-to

    Relaying serial PLC data through a C-more HMI to SCADA

    The C-more EA9 is a communications client: it polls the PLCs it is configured for and exposes nothing for Ignition or KepServer to browse. Make the panel the relay instead — add a Modbus TCP server as a second PLC device and copy FX3 tags into it with Tag Copy events triggered from the system clock tags, since scheduled copies run at best once per minute.

    HMI and touchscreens

  • Troubleshooting

    Why EasyBuilder Pro imports no user-defined tags

    When an EasyBuilder Pro CSV import finishes but the user-defined tags stay absent, the file's columns do not match the address tag library format, and in this case the project also carried the Yaskawa MP Series Ethernet extension driver where an MP2600iec Modbus TCP connection needs the Modbus TCP/IP driver. Switch the driver, export a few manually created test tags as a CSV template, move the source values into the matching columns, re-import, and confirm the entries in the address library.

    HMI and touchscreens

  • How-to

    How to Create and Export GX Works3 Labels for a C-More HMI

    Define the name as a global label in the GX Works3 label editor and give it a device target such as Y5; typing the name on a coil only creates an untargeted entry. Export the global label CSV, then hand-map each row into the C-More tag import template, because the two CSV schemas do not match. Separately, confirm the C-More Mitsubishi driver covers the FX5 before trusting any serial retry.

    HMI and touchscreens

Why WinCC Runtime mouse pointers differ per Windows user