IMDTouchKnowledge BaseShop main store

Troubleshooting

What makes an HMI gauge scale changeable at runtime

HMI and touchscreens Published 8 min read By IMDTouch engineering team

Short answer

A gauge scale and its alarm threshold change at runtime only when the objects read those numbers from data instead of holding them as design-time constants. Give the gauge a dynamic scale and point its minimum and maximum, plus the alarm comparison, at shared registers: HMI-local when only the display uses them, controller-owned when logic acts on the limit. Edit the registers from a password-protected settings page.

On this page
  1. What can and cannot change at runtime
  2. Scale or threshold: decide what must move
  3. Confirm the gauge accepts dynamic endpoints
  4. Worked example: the needle moves while the process value does not
  5. Do the settings page and the gauge read the same value?
  6. Where the shared limits belong
  7. Apply the configuration and prove it
  8. The decision for each case
  9. Questions asked

The scale of an HMI gauge changes at runtime only when the gauge reads its minimum and maximum from data. A number typed into the object at design time is part of the project file and never moves while the panel runs. The EasyBuilder Pro user manual documents a Dynamic Scale object, placed from the object toolbar and configured in its own property dialog, and that object is the one whose endpoints follow registers rather than typed constants. Point those endpoints, and the alarm comparison that must follow them, at shared registers: HMI-local registers when only the display consumes the numbers, controller addresses when logic acts on the limit. Edit the registers from a password-protected settings page and every bound object follows. The checks below separate a working dynamic scale from a mis-bound one and end with the decision for each case.

What can and cannot change at runtime #

A running panel re-reads only what an object is bound to; it cannot rewrite the object itself. Every setting in a gauge or an alarm belongs to one of two kinds. A design-time attribute is a number stored in the project file: typed scale endpoints on an ordinary gauge, or a typed threshold in an alarm definition that accepts only constants. A data binding is an address the panel reads while it runs: the measured value, and on a dynamic-scale gauge the endpoints as well. Writing to a register changes the screen only when some object consumes that register for that property.

Check these four locations before touching anything:

  • The gauge value binding, which moves the indication inside whatever range is configured.
  • The scale endpoints: typed constants lock the displayed range for the life of the project, bound addresses let a write reshape it.
  • The alarm threshold, which lives wherever the comparison actually runs, in the panel's alarm object or in controller logic, and follows its own value regardless of the gauge scale.
  • The settings page access, handled by the panel's user and password configuration, which decides who may edit but writes nothing itself.

A scale that refuses to move and an alarm that ignores a new number are both binding problems until the data shows otherwise.

Scale or threshold: decide what must move #

Name the change the operator actually needs before opening the editor, because the scale and the threshold are separate functions even in the same engineering units:

Change the operator asks for Where the setting lives What moves when it is edited
A different displayed range The scale endpoints, typed or bound The display range only
A different trip point The alarm comparison in the panel or the controller The alarm decision only
A different indication The gauge value binding The needle inside the existing range
Who may edit limits The panel's user and password configuration Access to the editing page, nothing else

The decision follows directly. Display range only: take the dynamic-scale branch. Trip point only: find where the comparison reads its value and move that value to a shared register. Both: define which values the two functions share before editing the project, because a gauge can show the new range while the alarm keeps an old constant, and the reverse.

Confirm the gauge accepts dynamic endpoints #

  1. Open the angular gauge in the project editor and record its value binding, engineering units, current endpoints and any display conversion.
  2. Inspect the scale minimum and maximum fields. Entries that name an address or a tag mean the object reads its endpoints at runtime; plain fixed numbers mean the endpoints never change while the project runs.
  3. If the endpoints are fixed, replace the object with the Dynamic Scale object and rebuild the display configuration on it before wiring any shared limit.
  4. Check the word length the object accepts for each endpoint: a 16-bit unsigned register holds at most 65535, so a wider range needs a wider format or a scaled display value.

Equal endpoints make the displayed fraction undefined, and a reversed pair inverts the sweep; treat a reversed pair as a deliberate display design, not a side effect.

Worked example: the needle moves while the process value does not #

Every linear scale a gauge draws runs the same arithmetic: the needle sits at the fraction (value - minimum) / (maximum - minimum) of the sweep. The numbers below are illustrative.

A process value sits at 600 °C. The scale registers hold 0 and 800, so the needle sits at (600 - 0) / (800 - 0) = 600/800 = 0.75 of the sweep. An operator enters 1000 on the protected settings page and the panel writes it into the scale-maximum register. The fraction becomes (600 - 0) / (1000 - 0) = 0.60, so the needle drops to 60% of the sweep while the process never moved.

The alarm ran independently the whole time. Its threshold register holds 750, and the controller logic trips when the measured value exceeds it: at 760 °C the alarm is active. Raise the threshold register to 850 and 760 °C stops tripping, while the needle stays wherever the scale registers put it. One page of writes reshaped the display and the alarm decision together because each consumer read the register it was bound to, which is the point of centralizing the limits.

Do the settings page and the gauge read the same value? #

Enter a permitted test value on the settings page and read it back at the destination before judging the screen; that separates a failed write from an object bound to the wrong location.

Observation Meaning Next check
The entered value never reaches the destination The write was rejected or the path is down Input bounds, write permission, destination address, communication status
The destination changes but the scale does not The write path works; the gauge is fixed or mis-bound Both endpoint references on the gauge
The scale changes but the alarm does not Display endpoints and alarm comparison are separate Where the alarm actually reads its threshold
The value changes and then reverts Another writer is overwriting it Every write to that location, including controller initialization and a second panel
The value is correct but the range looks wrong Format or scaling differs between the objects Word length, signedness and scaling

A communication failure belongs to the data path; a healthy value shown by one object and ignored by another points at the consuming object's configuration. When the fault could sit in the path rather than the binding, diagnosing HMI values across the driver, the tag and the screen separates those layers in order. When the mismatch is numeric, scaling a PLC integer into an HMI display value covers the conversion math behind it.

Where the shared limits belong #

Store a limit where its consumer lives. HMI-local registers fit numbers that only display objects read: gauge endpoints and thresholds used purely for on-screen indication. Controller addresses fit the limits that logic evaluates or uses in machine operation, because the operative value then sits with the logic that consumes it and survives independently of the panel.

Keep one authoritative value for each shared purpose. Several gauges can follow the same display endpoints, and several alarm consumers can follow the same threshold when their meanings genuinely match; never combine unrelated limits just because their current numbers happen to be equal.

Decide what must survive a panel power cycle, a controller power cycle and a project download, read the retention behavior of the chosen destination, and set deliberate startup values. A value that exists only while the panel runs is not a setting.

Protect the settings page with the panel's user and password configuration, and be clear about what that buys: control over who opens the editor, not control over the value. Keep the acceptance bounds where the limit is consumed; enforcing HMI setpoint deviation limits outside the panel shows that pattern applied to setpoints. The same indirect-binding technique, a protected page writing values that other objects merely read, is worked through end to end in password-protected parameter editing through indirect tagging. An operator-editable register must never carry a safety-related limit: safety trips belong in the controller or the safety instrumentation, regardless of what the settings page permits.

Apply the configuration and prove it #

Apply the branch the earlier checks selected, then verify on the bench:

  1. Back up the project, then list every gauge and alarm consumer that must follow each shared setting.
  2. Create the authoritative registers, HMI-local or controller addresses, and define engineering units, accepted bounds, startup values and retention for each.
  3. Build the settings page with numeric inputs bound to those registers, clamp the inputs to the accepted bounds so no entry can write a nonsense range, and protect the page with the panel's user setup.
  4. Bind the Dynamic Scale endpoints to the shared minimum and maximum, and point the alarm comparison at the shared threshold; where the alarm object cannot take an address as its threshold, move the comparison into the controller and display the controller's alarm bit on the panel instead.
  5. Test on an isolated bench with verified tags: enter a value, read it back at the destination, watch the needle and the alarm bit move, then power-cycle the panel and the controller and confirm what survived.

The final needle position proves the binding; timestamped observations of when the alarm bit changed prove the trip point moved.

The decision for each case #

  • Display range only: a dynamic-scale gauge with both endpoints on shared HMI-local registers, edited from the protected settings page, and the alarm left on its own value.
  • Trip point only: one shared threshold register, read by the alarm comparison wherever the tool accepts a runtime address and by controller logic otherwise, with the entry validated at the consumer and every writer audited.
  • Both together: define shared versus independent values before editing the project. A gauge that follows the new range while the alarm still trips on an old constant is the exact failure centralized registers prevent.

Questions asked

Can a typed-in gauge minimum or maximum be changed while the panel runs?

No. A number typed into an object at design time is stored in the project file, and nothing on the running panel rewrites project constants. The runtime only re-reads values an object is bound to. Swap the object for the dynamic scale version, whose endpoints are addresses the panel reads, and edit those addresses from the settings page instead.

Do the edited limits survive a panel power cycle or a project download?

Only if the destination is retentive or the values are rewritten at startup. Set deliberate startup values for the limit registers, because a project download can restore them, and confirm the controller's retentive range when the threshold lives there. Test all three cases: panel power cycle, controller power cycle, and a fresh download.

Does every gauge object accept a dynamic scale?

No. In EasyBuilder Pro the dynamic scale is its own object type placed from the object toolbar, while an ordinary gauge keeps the endpoints typed into its property dialog. Open the object's configuration and look at the minimum and maximum fields: entries that name an address or a tag mean runtime values, plain numbers mean fixed for the life of the project.

Does password-protecting the settings page make the limits safe?

No. Page protection only decides who can open the editing screen. The same registers can still be written by the controller program, a script, a second panel or a commissioning laptop on the same network path. Put the acceptance bounds where the limit is consumed, and keep safety-related trips out of operator-editable registers entirely.

Keep reading

  • How-to

    How to timestamp Weintek HMI alarm history

    Timestamp the history with the panel's own real-time clock: save every event in the Event (Alarm) Log, retrieve the records with an Event Display, and set the clock from the panel's date and time setup or the documented settable system registers. The S7-1200 supplies the trigger bits only; its clock is not needed.

    HMI and touchscreens

  • Troubleshooting

    Where an HMI Overview Window Gets Its Pages and Alarms

    The runtime page menu you want is the Overview Window, not a Screen Navigator object. It is populated from the Picture Tree, generated at OS compile or maintained in WinCC Explorer, ordered in the OS Project Editor, and its alarm counts only appear when each alarm has a group display assignment.

    HMI and touchscreens

  • Troubleshooting

    How a Unified runtime script reads the selected alarm row

    WinCC Unified has no alarm-side Loop In. A script reads the selected alarm row either from SelectedRowData, delivered by the alarm display's OnSelectionChanged event and carrying values only for the columns that display shows, or through Alarm.GetSelectedAlarmAttributes(), available from Runtime V19, which takes the name of an alarm display on the current screen and returns the alarm's attributes whatever the column configuration shows.

    HMI and touchscreens

How the LS system area screen change register works