IMDHMIControls LibraryShop main store

Troubleshooting

Why structure tags are missing from HMI tag import on an NJ

Industrial networks Published 7 min read

Short answer

EasyBuilderPro's online tag-information command over EtherNet/IP returns only standalone NJ variables; structure members never appear, and the controller's Publish only setting does not change that. Export the tag list from Sysmac Studio with Tools > Export Global Variables > CX-Designer, paste it into a text file, import the file into the HMI project, and confirm each imported member with a live read against Sysmac Studio.

On this page
  1. Why the tag-information command stops at standalone variables
  2. Prove the connection with a standalone tag first
  3. Check the structure instance, not just the type definition
  4. Export the tag list from Sysmac Studio
  5. Example: counting the tag list for a BOOL-only structure before import
  6. Import the file and prove the members with live reads
  7. Questions asked

If the tag-information command in EasyBuilderPro talks to your Omron NJ-501 over EtherNet/IP but loads only the PLC's simple variables while every structure stays missing, the cause is not a setting you have overlooked on either side. Online discovery on the NJ/NX EtherNet/IP family returns standalone variables and omits structure members, and setting the variables to Publish only does not change that. The documented fix is to stop browsing and import a file instead: in Sysmac Studio, select Tools > Export Global Variables > CX-Designer, paste the clipboard into a text file, save it, and import that file into the HMI project. Then prove each imported member with a live read against Sysmac Studio. The sections below take the fault in order: connection, instances, export, count, import, verification.

Why the tag-information command stops at standalone variables #

The command behind the button that pulls tag names from the controller does not read your project file; it browses the running controller through the EtherNet/IP driver. On the NJ/NX family that browse returns the controller's standalone variables and leaves structure members out of the list, including structures whose members are all BOOL.

Publish only is still the right publication setting for a variable the HMI will read, so set it once and leave it alone. It governs what the controller publishes on the network, not what the browse enumerates, which is why the structures stayed invisible with it set correctly. There is no switch on the HMI side that adds structures to that list either. Stop treating discovery as the goal: as soon as standalone variables appear and structures do not, the diagnosis is finished and the export route is the fix.

Missing-from-browse shows up on other platforms for other reasons too — ControlLogix tags missing from an Ignition OPC UA browse is the same symptom class with its own causes — but on the NJ the answer is simpler: the browse never carried structures, so no amount of work on the discovery side will produce them.

Work the fault in this order:

  1. Read one standalone variable live through the HMI to prove the connection.
  2. Confirm each structure the HMI needs exists as a global-variable instance in the project the controller is running.
  3. Export the tag list from Sysmac Studio to a text file.
  4. Count the entries in that file against the project before importing.
  5. Import, then prove one flat member and one nested member with live reads.

Prove the connection with a standalone tag first #

Do the structure work on a connection you have already proven, or you will chase two faults at once. Run the tag-information command with the HMI project and device settings that already talk to the NJ-501 and look at what comes back. Standalone variables in the list mean the driver, the controller address and the discovery path all work well enough for the export route. An empty list means the fault is the connection, not the structures: check that the device entry uses the Omron NX/NJ driver and the controller's IP address before anything else.

Then put a display object on one standalone variable and compare it with the same variable monitored in Sysmac Studio. A matching live value proves runtime access, which a name list never does; a browse that succeeds can still sit on top of a runtime path that reads nothing. Move on only when a known standalone variable reads live on the HMI.

Check the structure instance, not just the type definition #

In Sysmac Studio, a structure data type defines a layout; the HMI addresses a variable that instantiates it. Before exporting, open the controller project's global variables and confirm that every structure the HMI needs exists there as an instance, with its network publication set as intended, and confirm the connected controller is running that project rather than an older download.

Start with the simplest case: one flat structure whose members are all BOOL, which the reported project contains. Record its instance name, member names and member types exactly as Sysmac Studio shows them. Leave nested structures until that flat member has passed import and a live read, so a nested failure then tells you something about nesting rather than about everything at once. If the instance exists as a global variable, the running project carries the publication setting and the tag still never appears in discovery, you have confirmed the browse limitation, and the export in the next section is the fix.

Export the tag list from Sysmac Studio #

This is the route the controller and HMI manufacturers document for the NJ/NX EtherNet/IP pairing, and it moves tags through the clipboard rather than writing a finished file for you.

With the controller project open and the address tags created as global variables, select Tools > Export Global Variables > CX-Designer. The tag list is copied to the clipboard. Open a plain-text editor and paste with Ctrl+V, then look at what arrived before saving: an empty clipboard produces an empty file, and a half-edited project produces a stale list. Save the pasted content as a text file without renaming members or reordering fields, and keep an unchanged copy so a later edit can be told apart from the export itself.

Sysmac Studio does not write a tag file in each HMI brand's own format; what it produces is this CX-Designer-format import list, which is why the import procedures other HMI tools document pass through the same file. The export reads the engineering project while the browse reads through the driver, so changing routes fixes the missing-name problem without touching the PLC program, the variable layout or the network settings. It does not by itself prove the HMI can read every nested member — the live reads at the end do that.

Example: counting the tag list for a BOOL-only structure before import #

Run this count on your own project before importing. The figures below are illustrative counts for a project shaped like the reported fault; substitute your own.

Inputs:

  • 4 standalone variables returned by online discovery — an example count for a project like the reported one, where simple variables such as pippo appear and no structure does.
  • 3 members in HMI_Cmd, a BOOL-only structure instance defined as a global variable — an example count; the reported project includes structures whose members are all BOOL.
  • Rule: the saved file carries one entry per exported tag, so the entries it must contain equal the standalone variables plus the members of every structure instance defined as a global variable.

Arithmetic: 4 + 3 = 7 entries expected in the saved text file. Discovery delivered 4, so the file must supply 7 - 4 = 3 entries the browse cannot. After a clean import, the HMI project holds 4 + 3 = 7 tags for that device.

Decision: if the saved file holds fewer than 7 lines, the export is incomplete — check that HMI_Cmd exists as an instance, not only as a type definition, and re-export. If the file holds 7 lines but the device still shows 4 tags after import, the import ran against the wrong device — repeat it on the device that uses the Omron NX/NJ driver. If 7 tags import and a member still read-errors at runtime, the names are fixed and the addresses are not yet proven: go to the live-read step below.

Import the file and prove the members with live reads #

Save a copy of the HMI project before you touch its tags. Select the device that communicates with the NJ — the entry using the Omron NX/NJ driver — and run the tag import that belongs to that device, then choose the saved text file and read the messages. A rejection means the file no longer matches a clean export or the import function does not fit the driver; re-export rather than repair the file by hand.

Find the flat BOOL member in the imported list and compare instance name and member hierarchy against your Sysmac Studio notes. Assign it to a read-only display object that matches its type and confirm EasyBuilderPro accepts the address before you download anything. Only then configure one nested member, keeping the hierarchy the import supplied instead of inventing member-address syntax.

Download and run the project against the controller. Pick a member you are permitted to toggle without the machine moving — a lamp or a spare status bit, not a drive command — watch it in Sysmac Studio and on the HMI, and for a BOOL confirm the display follows the monitored state in both directions. A match on a value that never changes is weak proof. Keep the first pass read-only: an imported name and a publication setting do not prove writes are permitted. If reads work and a write does not, that is a different fault, covered in why explicit writes to Omron assemblies fail over EtherNet/IP.

After any project edit — a new variable, a new member, a rename — re-export and re-import, because the file comes from the project and discovery will not pick structure members up later.

Questions asked

Does this export route cover NX controllers too, or only the NJ?

The reported controller is an NJ-501, and the export procedure is documented for the NJ/NX EtherNet/IP series, with the NX102 shown step by step in the controller-to-HMI connection guides. Any controller in that family follows the same steps: Export Global Variables, CX-Designer, paste into a text file, save, import. The browse limitation is the same class on NX, so prove a standalone tag first and finish with live reads.

Will members inside nested structures survive the import?

The file carries what the project defines, including members that sit inside further structures. Import them exactly as the file presents them instead of retyping member addresses by hand, and prove the deepest member a screen actually displays with a live read, because a successful import proves names and addresses but never the runtime path.

Do I need to re-export after editing the controller project?

Yes. The file is generated from the engineering project and online discovery will not pick structure members up later, so every new variable, new member or renamed member needs a fresh export and a fresh import. Keep the unchanged copy of each export with its date so a tag that stops working after a revision can be traced to a project change rather than an import fault.

Should I keep changing Publish only until the structures appear?

No. In the reported fault the structures stayed invisible with Publish only correctly set, because the setting governs what the controller publishes on the network, not what the browse enumerates. Set it once, correctly, for the variables the HMI will read, then get the names from the export file. Time spent toggling it only delays the fix that works.

Keep reading

  • How-to

    Configure a PowerFlex 525 on EtherNet/IP from an Omron NJ301

    The tag data link fails after a good ping because the NJ, as the EtherNet/IP originator, must send the drive's chosen output assembly plus a 32-bit Run/Idle header: error 0x0127 means the output connection size is wrong. Import the revision-matched EDS, select the target assemblies it lists, create Input and Output network variables of exactly those sizes with the header included, and register them on the Tag Set tab.

    Industrial networks

  • Troubleshooting

    Fixing a TwinCAT EtherNet/IP slave connection from an Omron PLC

    The CIP1 fault is a Forward Open mismatch: each Omron direction must carry the full serialized TwinCAT assembly, not the process variables alone. With 2 bytes in and 2 bytes out, the 4-byte ConnCtrl on outputs and ConnState on inputs make each direction 6 bytes, and the instances must follow producer and consumer roles. If a capture shows the request and a rejection, read the sizes and instances the originator actually serialized.

    Industrial networks

  • How-to

    Connect an Omron PLC to Smart Function Kit Pressing

    Use EtherNet/IP between the Omron NX/NJ/NY PLC and the Smart Function Kit Pressing: Omron's EtherCAT runs CoE, the kit's runs SoE, and the two profiles cannot exchange data. Load the Sysmac Studio example project and drive the kit with the SFK_Command, SFK_Fast_Variable_Access, SFK_SerialNumberConverter and SFK_GetNotification blocks.

    Industrial networks