IMDTouchKnowledge BaseShop main store

How-to

Controlling 100 Motors From One Reusable WinCC Flexible Screen

HMI and touchscreens Published 8 min read

Short answer

Build one motor screen with Start, Stop and Alarm buttons bound to PLC-connected tags, then reuse it across the 100 motors through an indirect-addressing method your flexible runtime target actually supports. The classic WinCC PictureWindow TagPrefix recipe does not exist in WinCC flexible, so prove one motor screen first and read the installed help for the target's screen-reuse features before choosing shared or fixed bindings.

On this page
  1. Why can't I find a PictureWindow in WinCC flexible?
  2. What belongs in the STEP 7 PLC and what belongs on the screen?
  3. How do I build the first motor screen?
  4. Do the Start, Stop and Alarm buttons need a script?
  5. How can one screen command 100 different motors?
  6. How do I check the screen writes to the right motor?
  7. Does a plant with 100 motors need more than one panel?
  8. Questions asked

Build one motor screen with Start, Stop and Alarm buttons bound to PLC-connected tags, prove it on a single motor, then reuse it across the 100 motors through an indirect-addressing method your runtime target actually supports. The PictureWindow-and-TagPrefix recipe you were given is a classic WinCC technique; that object does not exist in WinCC flexible, and no search will find it. Keep mode selection, interlocks and permissives in the STEP 7 program, write only requests from the screen, and read the running state back as feedback. The sections below follow the order the work arrives in.

Why can't I find a PictureWindow in WinCC flexible? #

Because PictureWindow and its TagPrefix property belong to classic WinCC, and WinCC flexible is a different engineering environment with a different object set; the recipe you were handed describes the wrong product, not a control hidden somewhere in the toolbox.

In classic WinCC you draw the motor face once, host it in a picture window, and give each window a TagPrefix that maps the window's internal object tags onto one motor's process tags. The scheme works only when every motor's tags differ by a predictable prefix, Motor07 and Motor08 style naming (illustrative names, not a documented convention). One documented limit of that world: classic WinCC does not support bundled structure tags, so a child picture window must not be given an additional prefix.

WinCC flexible is engineered for operator panels, and its screens, navigation, events, scripting and addressing are properties of the configured target device, documented in the help installed with the engineering tool. The transferable part of the classic recipe is the naming discipline, not the object. If the project turns out to be classic WinCC after all, setting the TagPrefix on a PictureWindow with VBScript is a legitimate route.

What belongs in the STEP 7 PLC and what belongs on the screen? #

Every decision — mode, permissives, interlocks, fault handling — stays in the STEP 7 program; the screen writes requests and displays feedback, which on this interface means six signals per motor.

A tag is a named HMI variable, and a PLC-connected tag exchanges data with a controller address over a configured connection. Keep three concepts apart: the command (a Start or Stop request), the acceptance (the PLC evaluating mode, permissives and interlocks), and the feedback (running state reported by the equipment). Animate the run indicator from feedback, never from the button. That command-versus-feedback split is also why HMI operation records miss PLC start stop transitions when the log watches the button instead of the contactor.

Treat mode the same way: a selected mode is the operator's request, actual mode is the PLC's accepted state, and the display should show actual mode so a rejected request is visible. In automatic, the existing sequence may own the run command, so read how the PLC treats local Start and Stop before assigning behavior to the buttons.

Disabling or hiding a button is operator guidance, not enforcement — the interlocks live in the PLC, where they hold regardless of which screen is open. One safety line: an on-screen Stop request is an operational command, not an emergency-stop function, and required safety functions belong to the machine's safety design rather than to any screen, navigation action or script.

How do I build the first motor screen? #

Build it for one motor, with three command objects — Start, Stop, Alarm — and the feedback indicators, all bound to PLC-connected tags, and prove it end to end before you copy or share anything.

  1. Confirm the target. Read the configured device and software version in the project; the help installed with the engineering tool documents objects, events, scripting and addressing per target, and it is the acceptance test for every step below.
  2. Map one motor's PLC interface. In the STEP 7 program, locate the start request, stop request, mode request, run feedback, fault state and actual-mode signal, and note whether each command is accepted as a pulse or as a level.
  3. Create or import the tags. Check each tag's connection, address, data type and permitted direction: command tags must land on request variables, feedback tags on status variables.
  4. Draw the screen. Three buttons — Start, Stop, Alarm — plus a run indicator, a fault indicator, an actual-mode display and a field for the motor name.
  5. Bind each button's event to a configured action that writes its request tag; a script is not needed for a plain tag write.
  6. Decide how the screen opens — from a motor symbol, from a button, or by changing WinCC flexible screens from the PLC — and keep that navigation separate from the command bindings.
  7. Resolve the Alarm button. Displaying faults, acknowledging an HMI alarm and writing a PLC fault-reset request are three different functions; if the PLC exposes a fault-reset input, bind reset plus acknowledge, otherwise the button acknowledges and the fault indicator displays.
  8. Bench-test the loop. Press Start, watch the request arrive in the PLC, then watch run feedback return only after the PLC accepts it; repeat for Stop and for mode.

Do the Start, Stop and Alarm buttons need a script? #

No — a button whose whole job is to set one tag does not need a script; bind a configured action to the button's event, and reserve scripting for the one place logic is genuinely needed, routing the selected motor on a shared screen.

The C-script recommendation you were given is classic WinCC advice. Whether a flexible target runs scripts at all is a per-target property, so the target's help decides it before any script is designed around. The same holds for presentation: creating a small screen does not make it a popup, because the display and navigation types a target supports are documented functions, not a matter of window size. Reach for a script only where no configured action can do the job — routing the selection, or building a label from the selected motor's name.

How can one screen command 100 different motors? #

Through indirect addressing — one screen whose bindings resolve through a motor-selection value — and at 100 motors the arithmetic settles the design: 600 fixed bindings on copied screens against 6 bindings plus routing on one shared screen.

Indirect addressing means the data destination is chosen through another value, such as an equipment selector, an index, or an address held in a tag, instead of every object being permanently bound to one motor. The exact mechanism depends on the WinCC flexible version, the runtime target and the tag features that target supports, which is why the installed help is where the choice gets made: build the 100-motor reuse only around a method that help lists for your target.

Naming is the other half. The classic prefix trick and every flexible equivalent depend on motor data following one predictable structure; on larger WinCC projects the same discipline is what makes binding PLC tags from different DBs to a WinCC HMI UDT work at all.

Worked example, using the six-signal interface from the build steps (start request, stop request, mode request, run feedback, fault, actual mode):

  • Copied screens: 100 motors × 6 signals = 600 tag bindings spread over 100 screen copies, and one display correction means editing 100 screens.
  • Shared screen: 6 bindings on one screen plus one selection mechanism that routes them, and the same correction means editing 1 screen.

Decision: for the roughly 100 similar motors, build the shared screen whenever the target supports any routing method its help documents, and reserve copied screens for the few motors whose interface genuinely differs. On a shared screen, motor identity is part of the command path — name, mode, feedback, fault and command destinations must all follow the same selection, because a screen that displays one motor while writing another's commands is a control defect even when every tag communicates.

How do I check the screen writes to the right motor? #

Select two motors, command the second, and watch the first motor's tags in the PLC — the wrong-motor write is the specific defect a shared screen can hide, and the Cross-reference view closes the static side of the check.

For the dynamic test, select motor 1, press Start, and confirm the request lands and the feedback returns; then select a different motor, press Start again, and confirm motor 1's request bit did not move. For the static side, the Cross-reference feature in the engineering tool lists every object and screen that uses a tag, so run it on the shared screen's tags to confirm no fixed binding leaked in, and on any copied screen to confirm its bindings still point at its own motor.

Does a plant with 100 motors need more than one panel? #

Yes in practice: plan one operator station per operating area, because the motors already come sectioned and the people who start them stand in those sections — a single panel for all 100 is the exception, not the default design.

Motor count alone does not set station count; the job does. Judge it by process grouping, operator location, whether sections run simultaneously, and whether an operator must reach controls during abnormal conditions. Where one operator genuinely supervises the whole line from one room, a single PC-based station serving multiple controllers fits, provided its documented drivers, ports and connection limits carry the combination; where motors are operated at the machine, put a station in each section. The shared-screen pattern then repeats per station, which also keeps each station's motor list short enough to select reliably.

Questions asked

Does WinCC flexible have faceplates like WinCC Professional?

That is a per-target property, not a product-wide yes. The help installed with your engineering tool lists the objects your configured panel supports, and reuse features differ between targets. Treat that help entry as the acceptance test before you design 100 motors around a faceplate; if it lists none, the selection-value pattern is the fallback.

How do I find which screens use a motor tag before changing it?

Open the Cross-reference feature in the engineering tool: it lists every object and screen that uses a tag, so you see exactly which screens a binding change touches. Run it after any edit to the shared screen as well, to confirm no fixed binding has leaked back in.

What should the button labeled Alarm actually do?

Pick one of three meanings before you bind it: show the motor fault state, acknowledge an alarm in the HMI alarm system, or write a fault-reset request to the PLC. They are different writes to different destinations, and the fault handling already in the STEP 7 program tells you which one the interface supports.

Can the on-screen Stop button serve as an emergency stop?

No. It is an operational stop request that the PLC evaluates like any other command, and its effect depends on the panel, the connection and the program all working. Emergency stop is a safety function that must act through the machine safety hardware and stay effective with the HMI powered down or failed.

Is copying the finished screen 100 times acceptable instead of sharing one?

It always works and it is the honest fallback when the target supports no routing method, but at 100 motors it means 100 copies holding 6 bindings each, 600 bindings total, and one correction means editing every copy. Copy freely for the few motors whose logic genuinely differs; share the screen for the rest.

Keep reading

  • Explainer

    How WinCC and STEP 7 Work Together in a PLC Project

    STEP 7 configures and programs the Siemens PLC; WinCC builds the operator screens that read and write selected PLC variables over a configured connection. The boundary between the tools is the tag: STEP 7 owns the variable, WinCC owns the display and command objects bound to it.

    HMI and touchscreens

  • Comparison

    TIA Portal vs STEP 7 plus WinCC hardware configuration

    Configuring the same PLC and HMI in TIA Portal instead of STEP 7 plus WinCC needs no extra PLC, panel, module or network hardware — the cabinet stays exactly as it is. The difference is where devices, networks and tags are configured: one integrated project instead of two. The one hard limit: S7-1200 and S7-1500 CPUs engineer only in TIA Portal, and CPU firmware sets the minimum release, so a V2.9 CPU needs TIA Portal V17 or higher.

    HMI and touchscreens

  • How-to

    How to Disable a Remote HMI Display Through PLC Control

    Put the interlock in the PLC, not the panel. Read each panel's current screen through Remote Display Number, force display 21 through Replace Display Number while the disable bit is latched, and on release write the stored number back, hold one second, then write 0 so the panel never reports it is being controlled remotely.

    HMI and touchscreens