How-to
One reusable HMI object with different variables
Short answer
EcoStruxure Operator Terminal Expert supports reusable animated objects through the parameter mechanism: the graphic's animations read interface parameters, and each placed instance supplies its own variables. Build the definition first, assign per instance, then prove independence with two test variables held in opposite states; copying a graphic without an interface keeps the original bindings and makes both copies move together.

On this page
EcoStruxure Operator Terminal Expert answers the Citect Genie / Vijeo Designer instance-property question with a parameter mechanism: the reusable object's animations read interface parameters, and each placed instance supplies its own variables. Build the definition with its animations wired to the interface, assign variables per instance, and prove independence with two test tags held in opposite states. Copying a graphic alone does not create that interface: the copies keep the original variable references and both move together.
How the mechanism works #
An animation evaluates a variable or expression to set a visual property such as visibility, color or a displayed value. When you duplicate a graphic, the editor preserves that expression, so two visually separate copies stay on the same tag. The parameter mechanism breaks that coupling: the definition's animations reference the object's parameters, and the parameters are filled in on each instance. Schneider's documented pattern for repeated equipment is an array of a structure holding each machine's data, with a matching index so one definition serves every machine. The equivalent coupling problem is known from other tools too; the fix for copied library objects that still load the original code shows the same principle, which is that a copy must redirect its internal references, not inherit them, as explained in how copied library objects keep loading the original definitions.
A value input and a writable variable reference are different things. A value parameter can drive a displayed state without giving a button a destination for its write. Inspect what the interface of your installed editor version actually exposes before adding commands.
Build the reusable definition #
- Create a small test graphic on a scratch page before touching the production screen, with one state-dependent animation, for example visibility driven by a Boolean state. Do this on a saved working copy of the project.
- Define the parameters the definition needs, following Schneider's documented recipe: an array of a structure describing the equipment, and a matching index or Boolean array the instance uses to address its own element.
- Wire every animation inside the definition to a parameter, not to an equipment-specific tag. Keep text expressions and labels on the same discipline; a label with a direct tag reference is a hidden coupling point.
- Wire every operator action to a parameter destination as well. A button that writes to the definition's original tag operates the wrong machine on every instance but the first.
- Validate the project for the configured terminal target and clear any missing-variable or type errors before placing instances.
Place and assign instances #
- Place the first instance and assign its parameter to the first equipment element of the structure array.
- Place the second instance and assign its parameter to a different element.
- Reopen the first instance's properties and confirm its assignment did not change when you set the second one.
- Add the remaining display bindings one at a time, validating after each, so a wrongly retained reference is isolated to one step.
- Configure each action's write destination separately, first against a test variable that commands nothing.
When several screens share whole layouts across projects rather than one object across instances, the wider pattern is covered in reusing HMI screens across different PLC projects, and moving structured data between tags is covered in copying one structure variable to another in Operator Terminal Expert.
Worked example: proving independence with two pumps in opposite states #
Inputs, all from the test setup:
- Equipment array: two pumps, element 0 and element 1, each with a Boolean run-state member.
- Test variable A: run state of pump 0, forced true on an isolated bench.
- Test variable B: run state of pump 1, forced false.
- Definition: one indicator with visibility animated by the run-state parameter.
Rule: two instances of one definition are independent when each animation resolves to its own instance's assigned variable, and equal input states cannot prove that because a shared binding looks correct when both tags match.
Arithmetic and test: instance 1 assigned to pump 0 (state true, 1), instance 2 assigned to pump 1 (state false, 0). Expected display is indicator 1 visible and indicator 2 hidden: one visible of two. Observed: both visible means both animations resolve to variable A, the binding is shared and the interface is not in use. Observed: one visible, one hidden means each resolves to its own tag; then invert both states (A false, B true) and confirm the indicators swap.
Decision: if the indicators swap on inversion and stay independent, promote the definition to production. If both copies change together, the graphic is a coupled copy: rebuild it on the parameter interface, or fall back to explicitly bound copies where every animation and action in each copy is edited to its own equipment variables, and document those assignments per copy.
Acceptance checklist #
- Two instances on one page show different live states with opposite test inputs.
- Inverting both inputs swaps the display states.
- Each button writes to its own instance's machine, verified against a non-operating test destination first.
- Labels and text expressions move with the instance, not with a fixed tag.
- The project validates for the terminal target with no unresolved references.
One safety note: run every write, disconnect and restart test on an isolated bench with test tags before the object touches running equipment; a wrongly bound command writes to the wrong machine.
Questions asked
Why do both copies of my object change together?
A duplicated graphic keeps the original variable references inside its animations. The animation expression still resolves to the same tag in both copies, so one tag drives both. Open each copy's animation list and confirm what each expression actually references before assuming a binding mechanism exists.
Can an instance parameter carry a write for an operator button?
Only if the interface exposes a writable variable reference, not just a value input. A value parameter can drive a displayed state while leaving a button writing to the object's original tag. Inspect the action's destination on the placed instance and test the write against a non-operating test variable before using it in production.
Is a structure array required for the parameter mechanism?
No, but it is the cleanest pattern when the equipment repeats: one array of a structure holding each machine's state, commands and setpoints, plus a matching index that each instance uses to address its own element. The parameter mechanism itself only requires that each instance can supply its own variable references to the definition's interface.
Does changing the reusable definition update existing instances?
That depends on how the definition reaches the placed instances in the installed editor version; some mechanisms require a refresh or re-placement. After any definition edit, validate the project and re-check one instance at runtime before pushing the change to the terminal, so a graphic fix does not silently break a binding.

