Troubleshooting
Why an HMI hours counter shows minutes instead of hours
Short answer
The panel is right: the LOGO! hours counter delivers its operating time as raw minutes, so the tag carries 300 where the device display formats the same duration as 5:00. A display format cannot convert a value. Scale the tag by a factor of 60 to read decimal hours, or build separate hour and minute values in the controller for a clock-style readout.

On this page
The panel is not misreading anything. A LOGO! hours counter hands the panel its operating time as a plain count of minutes, so the device's own display renders the duration as 5:00 while the tag delivers 300. No display format will convert that number, because a format changes how a value is drawn, never what the value is. You have three workable fixes: keep the raw minutes and relabel the field, apply linear scaling so the tag reads decimal hours, or build separate hour and minute values in the controller. For a maintenance counter, the scaled decimal-hours tag is the pick that costs the least; a clock-style hours-and-minutes readout needs the controller-side split.
What the device and the panel are each showing #
The hours counter block accumulates its operating time in a value the LOGO! documentation calls OT. The device presents that value on its own display as hours and minutes; the panel receives the same value unformatted, as the number in the double word the project maps for the counter — VD8 in this build. Nothing is decoded wrongly: both displays show one duration in two presentations.
| Where | What is shown | What it means |
|---|---|---|
| LOGO! device display | 5:00 | The operating time formatted locally as hours:minutes |
| Panel tag on VD8 | 300 | The same operating time as a raw minute count |
Put the project online once and confirm the correspondence: the device's 5:00 reading sits on top of the tag's raw minute count, and the tag moves in step with the minutes on the device display while the counter runs. If that correspondence holds, the link and the tag are healthy and the only problem is presentation.
Note the difference from a data-type fault, where a counter display jumps between unrelated figures because the tag decodes the bytes with the wrong type — a failure covered in why an HMI counter display jumps from 9 to 16. Here every byte arrives intact; the number is simply in minutes.
Why the display format cannot fix it #
The tag's display format setting picks the notation the panel applies when it draws a number — decimal places, digit grouping. It never multiplies or divides what the driver read. That is why changing the format left the panel value where it was: the tag still holds the raw minute count, and every format choice draws that same count. Conversion lives in the tag's scaling settings, not in its format settings.
The three ways to show this counter #
- Raw minutes, relabelled. Leave the tag unscaled and label the field "operating minutes". Nothing to configure and nothing to mistrust; the right choice when only the service technician reads the screen and a mental conversion is acceptable.
- Scaled decimal hours. Apply linear scaling so the field draws the duration in hours with two decimals. The best default for an operator-facing runtime display; the decimal fraction is a fraction of an hour, so 0.50 means thirty minutes, not half past.
- Controller-side hours and minutes. Split the count into an hours value and a minutes value in the LOGO! logic and display two fields. The only option that renders clock-style minutes; it costs extra logic and a second tag.
- No number at all. Set the maintenance interval (MI) on the hours counter and let the block's output switch when the time-to-go value runs out; show an alarm or message on that bit instead of a figure. Right when nobody needs the running value between services; a pulse on the counter's reset input begins the next interval.
Decision: relabelled minutes when only maintenance reads the screen, scaled decimal hours as the default operator display, a controller-side split when the readout must read like a clock, and the maintenance output alone when the value has no audience between services.
Scaling the tag to decimal hours #
Linear scaling sits in the tag's settings, next to the display format that could not help you. Enable it, set the gain to 0.0166667 (one hour per sixty minutes), set the offset to 0, and give the field two decimal places. The panel then multiplies every incoming value by the gain before drawing it — the same integer-to-engineering-units conversion set out in how to scale a PLC integer into an HMI display value. Two cautions follow. The result is decimal hours, so a readout of 5.50 is five and a half hours, never five fifty. And 0.0166667 is a truncated decimal, so expect last-digit rounding on odd values — the behavior behind why an HMI gain of 0.0166667 rounds your minutes-to-seconds input.
Worked example: 300 minutes in VD8 to 5.00 hours #
Inputs:
- Raw tag value: 300 minutes, the count the project's VD8 delivers while the device shows 5:00.
- Gain: 0.0166667 hours per minute, from the rule that 1 hour = 60 minutes; entered as the tag's linear-scaling gain.
- Offset: 0, because the operating time begins at zero.
- Decimals: 2, an example choice for a runtime display.
Rule in words: the panel draws gain × incoming value + offset, with the gain carrying out the minutes-to-hours conversion.
Arithmetic:
- 1 / 60 = 0.0166667 hours per minute.
- 300 min × 0.0166667 h/min = 5.00001 h.
- The 0 offset leaves the product untouched, and a two-decimal field renders 5.00001 h as 5.00.
Result: the field draws 5.00, matching the hour figure of the device's 5:00 display.
Decision: the scaling passes when the drawn hour figure equals the device's hour figure on every reading you check — after another half hour of runtime the field must draw 5.50, with the minutes riding in the decimal as a fraction of an hour. If the field still draws the raw value, the gain is still 1; if it draws nonsense, the tag type is wrong, not the scaling.
Splitting hours and minutes in the controller #
One number cannot carry two units, so clock minutes need a second value. Build the split where the count lives: compute an hours value and a minutes value in the LOGO! logic — the whole-hour part of the count, and the remainder left after the division — and transfer each as its own tag, then place the two fields side by side with a fixed colon between them. This is ordinary controller-side long-duration timing, the same pattern other platforms document for long spans, and the work involved looks much like configuring long-duration timers on a CJ1M. The LOGO! generation's function set decides how you compute the split; where it offers no math block for it, the scaled decimal-hours tag from the previous section is the fallback.
Questions asked
How can I check the stored counter value without the panel?
Read it straight from the controller. In LOGO!Soft Comfort, the Tools -> Transfer -> Hours Counter menu command fetches the hours counter from the connected device. Use it to confirm the stored minute count before you change anything in the tag, so you scale from a value you trust.
The panel shows a huge or jumping number instead of a plausible minute count. What is different there?
That points at the tag, not the unit. The VD prefix marks a 32-bit double word, so a 16-bit word tag on that address reads only part of it and shows nonsense. A genuine unit mismatch always lands at exactly sixty times the device reading; anything else is a type or address problem.
Can the scaled tag ever show clock minutes on its own?
No. One number carries one unit, so after scaling, 5.50 means five and a half hours and the thirty minutes hide in the decimal. Clock-style minutes need a second value: the remainder left when the raw minute count is divided by sixty, computed in the controller and shown in its own field beside the hours.
How do I restart the service countdown after maintenance is done?
Pulse the hours counter's reset-all input, Ral. A positive edge on Ral clears the accumulated operating time, OT, and reloads the time-to-go value, MN, with the maintenance interval, MI, so the next interval begins with the full allowance. Drive the pulse from a service acknowledgment bit or a pushbutton.


