IMDTouchKnowledge BaseShop main store

How-to

Direct Window popup from a Modbus PLC bit trigger

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Place a Direct Window object on the Common Window, set its Trigger to ON and its Style to Popup window, and point the Read address at the Modbus bit your PLC drives. When that bit turns ON, the selected popup window opens on any screen in the project; when the bit returns OFF, the popup closes.

On this page
  1. Can a Modbus bit from the PLC open a popup on any screen?
  2. Where does the Direct Window go so the popup works on every screen?
  3. How do I set up the Direct Window object?
  4. How do I point the trigger at the right Modbus bit address?
  5. Can I choose where the popup appears and add a title bar?
  6. How do I test the popup before it goes on the machine?
  7. Why does the popup not appear when the bit is ON?
  8. Questions asked

A Modbus bit from the PLC can open a popup window on every screen of an EasyBuilder Pro project. Place a Direct Window on the Common Window, set its Trigger to ON and its Style to Popup window, select the popup under Window no., and point the Read address at the bit your PLC logic drives. When the bit turns ON, the popup opens over whichever window is displayed; when the bit returns OFF, the popup closes. The walkthrough matches EasyBuilder Pro 6.05.02.712 or later, one connected Modbus device and a popup window that already exists in the project, with no macro and no register-driven window change involved.

Can a Modbus bit from the PLC open a popup on any screen? #

Yes - place a Direct Window on the Common Window, set its Trigger to ON and its Style to Popup window, and select the Modbus bit in the Read section; the popup you choose under Window no. then opens on every project window when the PLC sets that bit ON.

The panel does the work; the PLC only sets a bit. The HMI reads the selected bit through the project's normal device connection, and the EasyBuilder Pro manual defines the Direct Window as an object that opens or closes a popup assigned to a designated bit register when that register's state changes. Nothing is pushed from the device: no window command travels over Modbus, the bit is polled like any other tag. Keeping that direction straight decides the troubleshooting order later, because a popup fault is either a bit that never changes at the device or an object that never sees the change.

Where does the Direct Window go so the popup works on every screen? #

Place the Direct Window on the Common Window: that window is shared by every screen in the project, so an object on it is present on all of them, while a Direct Window on a single screen fires only while that screen is open.

Open the Windows Tree on the left side of EasyBuilder Pro and select the Common Window. If the Windows Tree panel is hidden, restore it before continuing - the option that shows it sits with the software's view settings, and the Common Window is easy to miss without it. The Direct Window is an embedded-window object: it draws a region on the Common Window and carries its own settings, so the project-wide placement and the popup's on-screen location are two separate decisions, made in different tabs.

How do I set up the Direct Window object? #

Select Direct Window from the Embed Window drop-down list on the Object tab, then on the General tab set Trigger to ON, choose the popup under Window no., set Style to Popup window, and pick the connected Modbus device and bit address in the Read section.

  1. Create the popup window first and note its number in the Windows Tree - window 15 in the worked example below.
  2. Select the Common Window in the Windows Tree, restoring the panel first if it is hidden.
  3. On the Object tab, choose Direct Window from the Embed Window drop-down list and place the object on the Common Window.
  4. Open the object's properties and, on the General tab, select ON in the Trigger drop-down list.
  5. Under Window no., select the popup window number noted in step 1.
  6. Set Style to Popup window so the window displays as a popup over the current screen instead of replacing it.
  7. In the Read section, select the connected Modbus device by its project name and enter the bit address your PLC logic drives.
  8. Save and download the project to the panel using the project's normal download procedure.

Trigger also offers OFF for the inverted case; this setup uses ON because an alarm or ready condition normally drives its bit high.

How do I point the trigger at the right Modbus bit address? #

Select the device name the project already uses for the Modbus connection and enter the bit address of the coil or register bit your PLC logic drives - a bit address, not a 4-prefixed holding-register number, because the trigger watches a single bit.

The Read section takes what the device driver's address table calls a bit, and the arithmetic behind the numbers comes from the Modbus data model: documented coil numbers start at 1 while frame addresses start at 0, so coil 217 travels in the request frame as reference 216 (217 - 1 = 216). Which form the entry field expects depends on the driver, and the same convention gap is why some software rejects a register entry until the 400001-series offset is added - the failure mode shown in the walkthrough on why Modbus error 8189 needs 400001 added to the register address. If the entry is rejected outright as a bad bit address, the fix for invalid bit address errors when adding HMI tags lists the causes to check first.

Can I choose where the popup appears and add a title bar? #

Yes - the Position tab sets where the popup displays relative to the region enclosed by the Direct Window object, and the Title Bar Setting… button on the General tab adds a title bar; both apply wherever the popup opens.

The two settings are independent. Selecting the correct window under Window no. does not decide where it appears; the Position tab does, relative to the region the Direct Window encloses on the Common Window. Choose a placement that keeps the popup clear of the operator's working controls on every screen, because the same placement applies wherever the popup opens; centered over the object's region keeps it predictable from any screen. The title bar is optional: without Title Bar Setting… configured, the popup has none.

How do I test the popup before it goes on the machine? #

Test on the bench with known tag values: confirm the trigger bit reads OFF in the device monitor, force it ON from the PLC, and expect the selected popup to open on whichever project window is displayed; then return the bit OFF and confirm the popup closes.

  • Confirm the configured bit reads OFF at the device before starting.
  • Force the bit ON from the PLC and watch the device status change; if the status does not change, correct the PLC logic or the connection before touching any popup setting.
  • Confirm the popup opens over the current screen at the Position-tab placement, then open a different project window, force the bit again and confirm it opens there too - that is the Common Window behavior working.
  • Return the bit OFF and confirm the popup closes; the ON trigger drives both the open and the close, so prove the close before relying on it.

Worked example, with example values: popup window 15, trigger coil 217, placement centered on the Direct Window region. The frame reference for coil 217 is 216 (217 - 1), whatever form the entry field takes. Device monitor OFF: no window 15 anywhere in the project. PLC forces the coil ON: the monitor flips to ON and window 15 opens over the screen that is up, at the chosen placement. PLC returns the coil OFF: window 15 closes. One safety note: if the popup announces a condition that can injure, the PLC-level stop or interlock stays independent of this display - the popup is an operator indication, not a safeguard.

Why does the popup not appear when the bit is ON? #

Work the signal path in order: confirm the bit is really ON at the device, then check the Direct Window's device and read address, then Trigger, Window no. and Style, then Common Window placement - a wrong device or address leaves the object idle even when the PLC logic looks right.

  • Device monitor stays OFF: the fault is upstream of the HMI, so correct the PLC logic or the connection and retest before changing any popup setting.
  • Monitor shows ON but no popup opens: confirm the object sits on the Common Window, then check its selected device and read address against the bit you forced, and confirm Window no. points at the intended popup with Style set to Popup window.
  • Popup opens on one screen only: the object sits on that screen instead of the Common Window - move it.
  • Popup opens in the wrong place: set the placement again on the Position tab; the window number never controls placement.

In every case the decision follows the same order - prove the bit at the device, prove the object reads that bit, prove the placement - because each step gates the one after it.

Questions asked

Which software version do I need for a bit-triggered Direct Window popup?

This setup was built against EasyBuilder Pro 6.05.02.712 and applies to later builds. The Direct Window object is a standard embedded-window object: if it does not appear in the Embed Window drop-down list on the Object tab, bring the engineering software to a current build before rebuilding the project.

Do I need a macro or a register write from the PLC to open the popup?

No. The panel reads the trigger bit through the project's normal device connection and the Direct Window object acts on the bit state by itself. Changing the displayed window from a register value is a different window-control method, and driving windows from a macro is another; neither is required for a bit-triggered popup.

What happens to the popup when the trigger bit returns OFF?

The bit state drives the popup in both directions: the object's documented behavior is to open or close the assigned popup when the designated bit register changes state, so a bit returning OFF removes the popup. If the popup must stay up until an operator acknowledges it, keep the bit ON in the PLC logic until the acknowledge condition clears it.

Can one Direct Window object trigger several different popups?

One Direct Window reads one designated bit register and displays the one window selected under Window no., so a single object cannot switch between popups. Give each popup its own Direct Window on the Common Window with its own read address and window number; the objects then trigger independently of each other.

Can a Modbus TCP device trigger the popup the same way as serial RTU?

Yes. The trigger only needs a bit at a device the project already reads, so connection type plays no part: select the Modbus TCP device by its project name in the Read section and enter the bit address, exactly as for a serial RTU device. The popup follows the bit state over either transport.

Keep reading

  • How-to

    Why a WinCC Unified live bit needs two scheduled tasks

    A live bit pair proves the partner's code is executing, not just that the link is up: each side increments an integer counter and the partner checks it changed within a window at least twice the increment period, for example 1 s increments against a 2 s or longer evaluation. In WinCC Unified the HMI half is two time-triggered scheduled tasks, one to increment and one to evaluate.

    HMI and touchscreens

  • 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

    Displaying a PLC Real Value Over Modbus on an HMI

    An INTEGER display that reads the register proves the link, station and address, so a blank REAL display is a 32-bit mapping fault. Declare the HMI variable as a 32-bit float on the register pair (40064/40065), set the device double-word order to Low Word First to match the PLC, and give the numeric field six integer digits for 628402.0.

    HMI and touchscreens