IMDTouchKnowledge BaseShop main store

How-to

Link Machine Expert variables into Vijeo Designer via XML

HMI and touchscreens Published 4 min read

Short answer

Select the variables in Machine Expert Symbol Configuration, run Build Code, then use Update Link on the Vijeo Designer Variables folder with the generated XML file. In the observed Machine Expert v2.6.0 project the two generated XML files were identical, so validate the file contents before blaming the version pair.

On this page
  1. What travels between the tools
  2. Select the export set in Symbol Configuration
  3. Build and inspect the XML
  4. Update the link in Vijeo Designer
  5. Verify before the station returns to the machine
  6. When Update Link fails
  7. Keep the link current after controller changes
  8. Questions asked

The exchange runs through an XML symbol file, not a live connection between the two tools. In EcoStruxure Machine Expert, select the variables in Symbol Configuration and run Build Code; the build writes two XML files into the project folder. In Vijeo Designer, right-click the Variables folder, choose Update Link, and point it at the generated <project>.<application>.xml. When the import fails, read the XML before you blame the version pair: in the observed Machine Expert v2.6.0 project both generated files were identical and listed every variable configured for export, so the file's contents are the first thing to verify and the version question is the last.

What travels between the tools #

Machine Expert writes a symbol file in XML format for each configured symbol set when the application builds. Update Link in Vijeo Designer reads that file and populates the variable list with the controller symbols, so the HMI references them instead of duplicating them as local variables. The file is the whole contract between the tools, which is why the diagnosis of a failed link starts inside the XML and not in any connection setting.

One distinction to keep while you work: the procedure below was observed working on one software and hardware combination, and a different combination was reported failing. The observed run proves the procedure; it does not certify the reported pair.

Reported failing setup Observed working run
Engineering software Machine Expert V2.0 and Vijeo Designer V6.2.1.2 Machine Expert v2.6.0 and Vijeo Designer
Targets TM241CEC24T controller and HMIGTO5310 panel HMISCU6B5 controller
Result Error during the XML link, message text not available Exported variables populated the Vijeo Designer variable list

Select the export set in Symbol Configuration #

  1. In the Machine Expert navigator, open the Tools tree at the bottom of the window and add, or open, the Symbol Configuration node of the application.
  2. In the symbol file configuration, clear the 'Export variable of objects' tick, then tick the individual variables the HMI needs. The observed project checked every box and exported the whole application, which is workable for a small project and noisy for a large one.
  3. Note the set you selected, because it is your acceptance checklist for the XML in the next step.

Build and inspect the XML #

  1. Run Build Code. The build generates two files, generally in the project folder: <project>.<application>.default.xml and <project>.<application>.xml.
  2. Open both files in a text editor. In the observed v2.6.0 project they were identical and listed every variable configured for export; treat that equality as an observation of that project, not a rule for every version. Your acceptance check is that every name you selected in Symbol Configuration appears in the file you will hand to Vijeo Designer.
  3. If a name is missing, the fault is on the Machine Expert side. Correct the selection, rebuild, and inspect again. Do not hand-edit the XML: it is a build output, and the next build overwrites the edit.
  1. In the Vijeo Designer project, right-click the Variables folder.
  2. Select Update Link.
  3. Browse to the generated <project>.<application>.xml and confirm.
  4. Verify that the controller symbols now appear in the variable list, and switch objects that used duplicated local variables over to the linked symbols.

Verify before the station returns to the machine #

Download the project, go online, and confirm each linked variable reads a plausible live value. Before the station goes back to the line, confirm every HMI write lands on the intended controller variable, because a stale symbol file can point a control at the wrong address. If this relink is one part of a larger migration, the checks in validating HMI variables during a software migration apply unchanged.

Work the failures in this order and commit to the branch you land in:

  • Names absent from the XML: the fault is in Machine Expert. Correct Symbol Configuration and rebuild; Vijeo Designer has nothing to import yet.
  • Names present and Update Link still errors: capture the complete error text before anything else. The reported V2.0 and V6.2.1.2 failure came without usable message text, and that text is what separates a file problem from a link problem.
  • Before condemning the version pair, rule out the simpler failure covered in fixing a Vijeo Designer project version mismatch by updating the build: a build mismatch in the HMI project behaves differently from a failed variable import.
  • If the XML is clean and your pair still refuses the link, stop pushing the symbol-file path: declare the HMI items as external variables over the Modbus driver instead, as covered in adding a Modbus RTU driver and external variables in Vijeo Designer. That route depends on the driver and the controller's Modbus mapping, not on the XML exchange.

The XML is a snapshot written at Build Code. Change a variable's name, type, or structure in the controller project and the panel still holds the previous export until you rebuild and run Update Link again; the symptoms are stale values or bad data quality on the affected tags. The same mechanism breaks SCADA links when controller symbols change, as explained in why PLC symbol changes break SCADA tags in OFS. Treat rebuild, relink, and verify as part of every controller-side change that touches exported symbols.

Questions asked

Which of the two generated XML files should Update Link use?

Use the generated file without .default.xml in its name. In the observed Machine Expert v2.6.0 project the two files were identical, so either file served once the contents were confirmed. Open both in a text editor and confirm that every variable you selected appears before you link.

Should I check every box in Symbol Configuration?

You can, and the observed project did. For a production application, clear the 'Export variable of objects' tick and select only the variables the HMI references: the XML stays smaller, the Vijeo Designer variable list stays readable, and a missing variable is easier to spot in a short file.

HMI variables went bad after an online change to the controller program. Is this related?

Yes. The XML file is a snapshot written at Build Code, so an online change never reaches the HMI by itself; the panel keeps references to the previous export and the affected tags read stale or bad quality. Rebuild in Machine Expert, run Update Link again, then verify live values on the panel.

Can I edit the generated XML by hand to add a missing variable?

No. The file is a build output: the next Build Code overwrites hand edits, so the change never persists. Add the variable in Symbol Configuration, rebuild, and run Update Link again, which is the only supported route from the controller project to the HMI variable list.

Does Update Link need the controller or the panel to be connected?

No. Update Link reads the generated XML from the project folder on the engineering workstation; the documented workflow connects the tool to a file, not to a device. Connections matter later, when you download the project and verify live values against the controller.

Keep reading

  • Troubleshooting

    Fix Vijeo Designer WebGate not working after an update

    Match the WebGate client version on the operator PC to the Vijeo Designer version that performed the last transfer to the panel, then open the session in Microsoft Edge. If it still fails, classify it by stage: unreachable page, client that will not load, authentication, or application without remote functions.

    HMI and touchscreens

  • Troubleshooting

    Fixing invalid PLC type in Vijeo Designer 6.2 SP12

    When Vijeo Designer 6.2 SP12 leaves %M and %MW exchanging but kills %I and %Q with Invalid PLC Family/Model/Type (ModbusEquipment01), the fault is the software build, not the addressing. Request the SP12 hotfix from Schneider Electric technical support — HF5, build 6.2.12.2056, or the earlier HF3, build 6.2.12.2052 — then rebuild, download, and verify each address class separately.

    HMI and touchscreens

  • Troubleshooting

    Getting the HMIGXO Family Into the Vijeo Designer Catalog

    The GXO family is missing because Vijeo Designer 6.2 gates the HMIGXO targets behind a license upgrade, not because the panel is unsupported: Schneider Electric documents HMIGXO as compatible with 6.2. Launch Vijeo Designer as Administrator, apply the GXO upgrade code through Help > About > License > Upgrade with a registered license, then select the exact HMIGXO3501 target. SoMachine 4.1 never adds HMI targets, and the M238 link is proven afterwards with one register test.

    HMI and touchscreens