IMDTouchKnowledge BaseShop main store

Explainer

How One HMI Runtime Places Windows on Two Monitors

HMI and touchscreens Published 5 min read

Short answer

On an extended desktop, one HMI runtime places each window by its X coordinate: the left display starts at X=0 and the right display starts at X beyond the left display's width. A runtime that exits normally reopens at its saved position, so a boot-time layout comes from startup launch order plus per-monitor window coordinates.

On this page
  1. How the coordinates work
  2. The two architectures
  3. Making the layout come back after a boot
  4. Keeping dialogs on the right display
  5. The verification test
  6. The decision
  7. Questions asked

An operator station with two screens driven by one computer shows two plant views without a second runtime license: enable the extended desktop, place each project window by its X coordinate, and let the runtime's saved window position bring the layout back after every boot. The left display starts at X=0; the right display starts at X equal to the left display's width. Everything else is launch order, dialog management and a restart test.

How the coordinates work #

In extended-desktop mode, Windows presents one logical desktop spanning both displays, and the runtime draws its windows into that single coordinate space. For two 1280x1024 displays arranged side by side, the whole desktop is 2560 pixels wide: a window at X=0 lands on the left display, and a window at X=1280 or greater lands on the right display, as long as X stays below 2560 and Y stays inside the 1024-pixel height.

This is the mechanism behind the common recipe of setting X=0 for left-display windows and X=1280 for right-display windows in that arrangement. The rule is the arithmetic, not the 1280: with two 1920x1080 displays the right monitor starts at X=1920, and if Windows places the second display to the left of the primary, its coordinates are negative (for example X=-1920 to X=-1). Read the actual monitor layout from the display driver settings before assigning positions.

The two architectures #

Architecture Use when Key constraint
One runtime on the extended desktop One project must show different plant windows (status on one display, alarms on the other) Every window needs an assigned X position, and navigation must reopen the correct menu window for the display it lives on
Two runtime instances Each display needs its own independent project Enable the supported multiple-runtime option in the engineering tool, and give each project its own log files

The one-runtime method is simpler when machine status and alarms belong to the same project and share tags. Two instances add isolation but consume more workstation resources, and the vendor's own guidance for this option warns that if projects logging to trend, historic or operator files write to the same files, system instability or a crash can occur. Audit every file output before starting a second runtime, and test the full operator workload on the target computer.

Making the layout come back after a boot #

A runtime closed through its normal exit path writes its window position and maximized state, and Windows reopens it there. So the boot-time layout is built in three steps:

  1. Launch the runtime with the required project and move or maximize its window onto the assigned display.
  2. Exit the runtime normally so the position is saved.
  3. Relaunch and confirm it returns to the same display, then do a full workstation restart and confirm again.

The saved position survives a restart; what decides which project loads at boot is the startup mechanism you configure on the workstation. Some runtimes also store a startup project name in their configuration so a terminal with the exit function disabled still loads the right project.

Do not edit the vendor's registry values by hand to set window X/Y positions, maximized state or multiple-runtime flags. Where the product documents such a key, the supported path is the engineering tool's own settings; manual registry edits are for a controlled deployment procedure that specifically requires them.

Keeping dialogs on the right display #

The runtime window can hold its assigned monitor while its child windows behave differently. Text-entry boxes, alarm pop-ups configured to display a dialog, or event viewers typically open centered on the primary display, which puts an operator input out of reach on a touch station. Check whether your product documents a setting that keeps input boxes within the display where they were invoked; where it does not, the practical fix is a window-management utility that detects the dialog title and moves it to assigned coordinates. One documented setup for a three-display station used a startup sequencer to launch runtimes in a delayed order, plus a scripting tool that left touchscreen input boxes alone and recentered the same entry dialogs and alarm dialogs onto the assigned secondary displays.

The second piece is navigation. On one desktop spanning two displays, a screen-change button that opens a single window can pull the operator's view across to the wrong side. A pattern that works: reserve a slim menu window at the top of each display, give every project window its assigned X coordinate (X=0 for the left side, the left display's width for the right side in the worked arrangement above), and have each navigation button open the target window together with the menu window for its display. The operator always gets the process view and its local menu on the same screen. The trade-off is that you decide per button which side a window belongs to; a window is not freely draggable between displays by the operator.

Vendor tools take this further: some runtimes document explicit multi-monitor configuration, letting one runtime client open a separate screen window on each connected monitor rather than relying on raw coordinates.

The verification test #

Before the operator sees it, put the station through a full cycle on the bench:

  • Navigate to several screens on each display and confirm each opens at its assigned X position with its local menu.
  • Trigger a text entry and an alarm dialog and confirm both are reachable from the operator position.
  • Exit the runtime normally, relaunch, and confirm the saved positions.
  • Restart the workstation completely and confirm the startup mechanism loads the expected project into the expected layout.

If two runtime instances are in play, confirm the projects write to separate log files and that the workstation holds up with every runtime active.

The decision #

Run one project on an extended desktop with per-window X coordinates when status and alarms share tags and belong to one project; that is the simpler and cheaper architecture, and the saved window position plus your startup launcher gives the operator the same layout after every reboot. Run two runtime instances only when the displays truly need independent projects, with the multiple-runtime option enabled through the supported setting and log files split per project. If you are extending one PC's display across multiple physical touchscreens instead, the layout questions are the same and our article on running one HMI interface on multiple touchscreens from one PC covers the display-side setup.

Questions asked

How do I place an HMI window on the right-hand monitor of two 1280x1024 displays?

With the displays arranged horizontally in an extended desktop, the right monitor starts at X=1280. Give that window an X position of 1280 or more and keep it under 2560, with a Y value inside the 1024-pixel height. If Windows arranges the second monitor left of the primary, its coordinates become negative instead, so check the actual monitor layout before assigning positions.

Will the HMI runtime reopen on the same monitor after a restart?

A runtime that is positioned, maximized and exited normally saves its window position and reopens there, and this survives a full workstation restart. Windows tracks the saved location of a window closed normally; a runtime killed by power loss or a crash saves nothing, so the saved position is only as reliable as the shutdown.

Can I run two separate HMI runtime projects, one for each monitor?

Yes, when the two displays need independent projects, but each project must write its trend, historic and operator logging to its own files. Projects sharing the same output files can crash or destabilize the workstation. Enable the multiple-runtime option through the engineering tool's supported setting, not by editing the registry, and verify workstation performance with every runtime active.

Keep reading

  • Explainer

    Why one HMI password opens buttons at two security levels

    On a Delta DOP-B, security is one hierarchy from level 0 to level 7: a password registered at level 5 authorizes elements at level 5 and every level below it, including level 3. Two momentary buttons on this panel therefore cannot carry mutually exclusive passwords. Keep the ladder when a senior operator may press both buttons; move to a platform that assigns permissions per user when credentials must be exclusive.

    HMI and touchscreens

  • Explainer

    What an HMI Is and How a Touch Panel Runs One

    An HMI is the hardware or software through which an operator watches and commands a controller. It is not written in a general-purpose language: you configure screens in a vendor engineering editor, compile the project into a runtime, and the touch panel computer runs that runtime while exchanging variables with the control logic over a driver you verify first.

    HMI and touchscreens

  • Explainer

    Why two Vijeo Designer HMIs cannot share one user list

    No. Vijeo Designer 6.2 keeps its user list in each terminal's own runtime data, and no I/O Manager driver exposes accounts or passwords as variables, so an Ethernet link between two HMIG3U panels synchronizes variables and the clock, never users. Either download one identical list to both terminals at every change, or centralize authentication on panel PCs.

    HMI and touchscreens