IMDTouchKnowledge BaseShop main store

How-to

Why One FactoryTalk View ME Button Cannot Set a Tag and Navigate

HMI and touchscreens Published 8 min read

Short answer

A FactoryTalk View ME button carries one action, so one press cannot both set a tag and open a display. Build a macro that writes the tag, attach it to the target display's startup behavior, and let a plain Goto Display button open the screen; the macro runs on arrival.

On this page
  1. Can one FactoryTalk View ME button set a tag and navigate?
  2. How do you make one press do both jobs?
  3. How do you build the startup macro in FactoryTalk View Studio?
  4. Where does the macro attach so it runs when the display opens?
  5. How do you test the button before leaving the machine?
  6. What goes wrong when a startup macro runs on every display open?
  7. How do you keep the HMI from owning the mode?
  8. When does this recipe stop being the right fix?
  9. Questions asked

A FactoryTalk View Machine Edition push button carries exactly one action, so one button on the terminal cannot write the manual-mode tag and open a display at the same time. The working pattern splits the job: a plain Goto Display button opens the target screen, and a macro attached to that screen's startup behavior writes the tag the moment the display opens. To the operator it still looks like one press. This article builds the macro, wires it to the display in its behavior settings, tests it on the terminal, and then lists the surprises a startup macro holds — because it fires on every open of that screen, not only through your button.

Can one FactoryTalk View ME button set a tag and navigate? #

No — a FactoryTalk View Machine Edition button carries exactly one action type, so a button configured as a Goto Display button cannot also write a tag, and a button that writes a tag cannot also change the display.

ME buttons come in two families. Navigation buttons — Goto Display is the one you need here — open screens. The other family writes values into HMI or controller tags. Each button object carries one action, and FactoryTalk View Studio offers no field that combines the two on one object. FactoryTalk View SE buttons can stack several actions, which is why engineers moving between the two products keep looking for a field ME does not have; do not carry SE habits into an ME project. Machine Edition applications run on PanelView Plus terminals, and their buttons all follow this one-action rule.

The constraint is the documented button model, and the documented feature that beats it is the display's own behavior settings: a display can run a macro when it opens. That moves the set-value half of the job off the button, and the recipe below builds on it.

How do you make one press do both jobs? #

You move the tag write off the button and onto the target display: a macro that sets the tag is attached to that display's startup behavior, and a plain Goto Display button opens the screen, which then runs the macro on arrival.

Worked example — the names and values below are an illustration, not a real application. The controller holds its mode in a DINT tag named Mode_Request, and the running logic treats 0 as auto and 1 as manual. Three objects do the work:

  • Macro_Set_Manual, a macro carrying one command that writes Mode_Request.
  • Setup_Jump, a Goto Display button that opens the setup screen.
  • Setup_Screen, the target display, whose startup behavior field lists Macro_Set_Manual.

One press of Setup_Jump opens Setup_Screen and Mode_Request moves from 0 to 1 on arrival, so the controller enters manual mode without a second press.

The shortcut people try instead — stacking a set-value button on top of the Goto Display button in the same spot — puts two touch targets on one area with an unpredictable press order. The macro route is the clean one.

How do you build the startup macro in FactoryTalk View Studio? #

In the Explorer tree under Logic and Control > Macros, create a macro that carries one command writing the mode tag, because the macro is what performs the set-value action the button is not allowed to carry.

  1. Open the Explorer tree in FactoryTalk View Studio and select the application you are editing.
  2. Create a new macro under Logic and Control > Macros. Name it for what it writes — the worked example uses Macro_Set_Manual.
  3. In the macro editor, enter the command that writes the mode tag: the exact tag name the controller reads, and the value that activates manual — in the worked example, Mode_Request.
  4. Save the macro. What the display will reference is this macro's name, not the button.

Use the tag name and data type exactly as the controller program reads them. A macro that writes an HMI-local tag of a similar name changes nothing in the controller — that failure has its own row in the table below. A macro that writes a value into the controller is the same pattern as the recipe that sends the active HMI user to the PLC with login macros, worth copying when operator identity also has to reach the controller.

Where does the macro attach so it runs when the display opens? #

The macro goes in the target display's own settings: open the display, choose Display Settings, then Behavior, and select the macro in the startup macro field, so the terminal runs it every time that display opens.

Attach it to Setup_Screen — the display the button opens — and not to whatever screen the operator starts on. The button itself stays a plain Goto Display button with no value action added; one object, one action.

Then push the change to the panel. Saving the project in Studio changes nothing on a running terminal: validate the application, build and download the runtime, and test on the terminal. An ME project builds one runtime for one terminal, so every change reaches the panel through a fresh validate-and-download cycle; the One FactoryTalk View ME project builds one PanelView runtime page covers how that pairing works when you edit an application that is already deployed.

How do you test the button before leaving the machine? #

Watch the controller tag, not the screen: note its value before the press, press the button once, and pass the test only when the display opens and the tag reads the manual value — for the worked example, 1 — with the machine actually behaving as manual.

  • Watch the tag online in the controller programming software, or in a tag monitor on the terminal, so you see the write land rather than infer it from the screen.
  • Open the same display by a second route — another navigation button or the terminal's display list — and watch what happens: the startup macro fires there too, by design, and you now know it.
  • Leave the display and come back through the button; confirm the write repeats on every open, not only the first.
  • Confirm the controller program enters its manual behavior — drives stopped, speeds dropped — not just that a bit flipped.
  • Test on the terminal itself. Simulator presses do not reach the controller, which is its own trap covered by Why HMI simulation buttons do not change PLC tags.

What goes wrong when a startup macro runs on every display open? #

The startup macro belongs to the display, not to your button, so it runs on every open of that screen from any navigation path, and the recurring failures are a macro on the wrong display, a tag the controller never sees, or a mode change nobody pressed for.

What you see on the terminal What it means
Screen changes, the mode tag keeps its old value The startup field on the display you actually opened is empty, or the macro is attached to a different display.
Mode tag changes, the screen stays put The button is a set-value button. Rebuild it as a Goto Display button targeting this display.
Display opens, tag never moves although the macro is attached The macro writes an HMI-local tag instead of the controller tag, or the tag name does not match what the controller reads.
Mode flips to manual with no press Another route opened that display and fired the startup macro.
The terminal ignores the whole edit The application was saved in Studio but not validated and downloaded, so the runtime still runs the previous build.

Work the table top to bottom. The first two rows are the original complaint; the rest are macro-specific and usually cost one download cycle to clear.

How do you keep the HMI from owning the mode? #

Have the macro write a request and let the controller latch the mode under its own interlocks, because an HMI macro write is an operator request, not a safety function and not a replacement for the controller's mode logic.

In the worked example that means the controller reads Mode_Request, checks its own conditions, and only then enters manual. If the controller overwrites the tag because a condition is not met, that is the design working, not a bug in the macro. Keep the macro's single line a request, and keep every condition that makes manual safe on the controller side. Treat this button as an operator request only: the safe state lives in the controller program and the machine's hardware safety circuits, and no HMI macro belongs in that chain.

When does this recipe stop being the right fix? #

Use the startup-macro recipe when the target display is entered through that one button, keep two separate buttons when other navigation paths open the same screen, and let the controller gate the request whenever the mode change has to respect interlocks.

  • Screen reached only from that button — build the macro exactly as above; nothing else to change.
  • Screen reached from several routes — either accept that every open sets the mode, on purpose, or drop the macro and keep the two-button layout the terminal already had.
  • Mode change must respect machine conditions — keep the macro's write as a request and gate it in the controller logic, as the previous section describes.
  • Terminal not programmed in FactoryTalk View Studio — the Behavior page and its macro fields are Machine Edition features, so a PanelView 800 terminal, programmed in Connected Components Workbench, does not offer this route; check what one button can carry there before planning the same press.

Questions asked

Can the startup macro run more than one command when the display opens?

Yes. A macro is a sequence of commands and the terminal executes its lines in order, so a second tag write or command goes on its own line in the same macro. Every line runs again each time the display opens, not only on the first open.

How do I clear the mode tag when the operator leaves the display?

Build a second macro that writes the tag back to its normal value, then open the same display's Display Settings and Behavior page and put that macro in the shutdown field. The terminal runs it on every close of the display, from any navigation route, so it carries the same side effect as the startup macro.

Does the same trick work on a PanelView 800 terminal?

Not directly. PanelView 800 terminals are programmed in Connected Components Workbench rather than FactoryTalk View Studio, so the display Behavior page with its startup macro field is not part of that workflow. Check what one button object can carry in Connected Components Workbench before planning the same two effects on one press.

The macro is assigned and the tag is right, but nothing happens on the terminal, so what comes next?

Confirm the application was validated and downloaded, not only saved. Check that the terminal's firmware revision is compatible with the FactoryTalk View Studio version that built the runtime. If the startup macro still does not execute after a clean download, take the Studio version, terminal model and firmware details to the panel vendor's support.

Keep reading

  • Troubleshooting

    Fixing Goto Display Buttons Locked by HMI Global Connections

    While the Global Connections remote display number is active — its DINT tag still holding 21 — FactoryTalk View ME disables every other form of navigation, so Goto Display buttons stay dead whether or not the popup is visible. Write 21 with a one-shot on bit A and let a startup macro on display 21 reset the tag to 0; the popup stays up and the buttons respond.

    HMI and touchscreens

  • Explainer

    Where a FactoryTalk View ME Parameter File Links to a Faceplate

    The parameter file-to-faceplate link is not in the parameter file and not in the PLC program. Each overlaid Goto Display button holds it: on the General tab, the Display field names the popup faceplate and the Parameter file field names the value set passed into it. The faceplate display then consumes those values through its global object's parameter definitions.

    HMI and touchscreens

  • Troubleshooting

    Why FactoryTalk View Studio Cannot Save the Tag Database

    Build a small test project first. If it creates a runtime, the workstation is fine and the fault is in your application — most often a parameter-file name whose extra space does not match its GoToScreen button assignment, because saving a display never validates that reference. If every project fails, check the real project path for a OneDrive-redirected Documents folder, then write access, roll-up patches, a full shutdown, and finally a FactoryTalk Linx or RSLinx reinstall.

    HMI and touchscreens