Explainer
Why the WinCC trend ruler integral needs dividing by 3600
Short answer
The ruler statistic multiplies the flow rate by elapsed seconds, so a tag in volume per hour yields volume-seconds per hour. Divide by 3600 to get the volume between the two ruler positions. The archive sample interval and the Float tag type play no part; apply the division to the rate before archiving or to the numbers after integration.

On this page
- Why does the WinCC trend ruler integral need dividing by 3600?
- Does changing the archive sample interval fix the integral units?
- Is the Float tag type the reason the total is wrong?
- How do you verify the division with a known flow rate?
- Where can you apply the division in WinCC?
- Can a script read the ruler integral directly?
- How do you total the flow for dates already archived?
- Questions asked
Divide the ruler integral by 3600 — the seconds in one hour under SI — and the result is the volume total between the two ruler positions. The WinCC Online Trend Control integrates the rate against elapsed time on a seconds-based axis, so a flow tag scaled in cubic meters per hour accumulates cubic-meter-seconds per hour, not cubic meters. Nothing in the archive sample interval or the tag's Float type performs that conversion, and neither needs changing. What you need is a place to apply the division: on the rate before it is archived, or on the numbers after the integration. This article gives the unit arithmetic, a worked check, and the decision for each case, using the WinCC Explorer 7.5.0.0 configuration as the reference case, valid wherever a ruler integrates a per-hour flow over seconds.
Why does the WinCC trend ruler integral need dividing by 3600? #
The Online Trend Control multiplies the rate by elapsed time on a seconds-based axis, so a tag in cubic meters per hour yields cubic-meter-seconds per hour — the volume you want multiplied by the seconds in an hour. Dimensionally, flow in volume per hour times time in seconds gives volume·s/h, and the hour sitting in the denominator has to be cancelled. The International System of Units (SI) keeps the second as the base unit of time and accepts the hour for use alongside it at a fixed ratio, and that ratio is the entire correction.
The assumption to verify is the tag's engineering unit: read the scaling at the source and again in the archive configuration, because the two must describe the same quantity. If the instrument sends volume per minute, the raw area is volume-seconds per minute; a per-second rate integrates straight to volume with no correction at all.
| Archived flow unit | Raw ruler integral | Divide by |
|---|---|---|
| Volume per hour | volume·s/h | 3600 |
| Volume per minute | volume·s/min | 60 |
| Volume per second | volume | nothing |
Does changing the archive sample interval fix the integral units? #
No — the sample interval only sets when values are recorded to the archive, and no interval redefines the seconds-based axis the statistics integrate against, so keep your acquisition cycle exactly as it is. Since you do not want to touch the archive tags, you are in luck: units and sampling are independent. What the sample interval does govern is accuracy. A numerical integral estimates the area between recorded points, and connecting points linearly versus holding the previous value produces different areas whenever flow changes; missing or invalid-quality records distort it further. If you also maintain WinCC Professional projects, its trend ruler marks such points, which is why WinCC Professional flags ruler values interpolated or uncertain. Verify that archived records cover your interval without unexplained gaps; the conversion itself is unaffected either way.
Is the Float tag type the reason the total is wrong? #
No — a Float already stores fractional values, so the type is not the fault; your total is wrong by a large fixed factor because the unit conversion is missing, and no data type supplies it. A type problem looks different: an integer destination truncates 6.4 to 6, it does not inflate a total thousands-fold. The fixed factor you found is the signature of a time-base mismatch, not truncation.
Float is still the right type for the fix. Keep the source, any intermediate result, and the destination tag floating point, or a small per-second rate will collapse to zero in an integer, and give the display object enough decimal places to show the fraction.
How do you verify the division with a known flow rate? #
Confirm the divisor with a constant-flow interval worked both ways: rate times elapsed seconds divided by the seconds-per-hour factor, against rate times elapsed hours; identical results prove the conversion before you build anything in WinCC. Take a meter averaging 12 m³/h across a 30-minute transfer:
- Elapsed time: 30 min × 60 s/min = 1800 s
- Raw ruler integral: 12 m³/h × 1800 s = 21,600 m³·s/h
- Converted: 21,600 ÷ 3600 = 6 m³
- Cross-check: 12 m³/h × 0.5 h = 6 m³
Both routes return 6 m³. If the ruler's raw figure for a comparable interval equals rate times seconds, the divisor is confirmed and the only remaining question is where to apply it.
Where can you apply the division in WinCC? #
In one of two places — on the rate before integration, or on the numbers after it — and one question decides between them: do you need totals for dates that are already archived?
| Path | What changes | Totals for dates already archived |
|---|---|---|
| Pre-scale the rate to volume per second at the source | The scaling upstream of the archive; the raw ruler integral is then already volume | No — only from the change onward |
| Convert the statistics result after integration | A floating-point calculation writing the total to a Float tag | Yes, when the result is reachable through a documented interface |
| Total the archived samples directly | A retrieval or export of archive values with timestamps | Yes |
An axis range or display format changes how the curve looks, not the numbers entering the statistics, so no axis setting is a conversion. A live pre-scaled tag does not rewrite history: before its archive began there are no per-second values, so old dates still need the third path. Apply the conversion exactly once — either the rate is per-second and the raw integral is already volume, or the raw per-hour integral is divided afterward; doing both shrinks the total by the same factor again.
Can a script read the ruler integral directly? #
Not from the screen text: the figure drawn in the trend is a display value, and unless the documentation of your installed control names a readable result interface, the dependable routes are the ones that never touch it. The documented use of the ruler is visual: you read trend values by connecting the WinCC RulerControl to the Online Trend Control, and you configure the control in its configuration dialog, opened by double-clicking the control. The same RulerControl can serve the WinCC OnlineTableControl and the WinCC FunctionTrendControl, so the unit logic above applies there too.
A number displayed inside the control is not automatically a process tag a script can read. Inventing a property name or parsing the formatted text off the screen is undocumented and fails without warning. Decide by documentation: if the installed help for that exact control documents an interface returning the statistics result, divide there in floating point and write the total to a Float tag for display; if it does not, take the pre-scaling path for on-screen totals going forward and the archive route for history.
How do you total the flow for dates already archived? #
Retrieve the archived values with their timestamps and sum the trapezoids: average each consecutive pair of rates, multiply by the seconds between them, and apply the seconds-per-hour factor once at the end. In the expressions below, q_i and q_next are consecutive archived rates in volume per hour, dt_s is the seconds between their timestamps, and V is the raw area; the two lines under it are a numeric test of the formula:
V = SUM over pairs of ((q_i + q_next) / 2) * dt_s
volume total = V / 3600 (q in volume per hour, dt_s in seconds)
samples: 10:00:00 = 20 m3/h, 10:01:00 = 24 m3/h
(20 + 24) / 2 = 22 mean rate, m3/h
22 * 60 = 1320 raw area, m3*s/h
1320 / 3600 = 0.367 volume, m3
Keep the timestamps and quality flags with the export, and use the documented archive facilities of your WinCC version to retrieve the records — the same records the trend draws. If your export instead comes from the Unified platform's on-demand trend, its sampling behaves differently, which is why a WinCC Unified on-demand trend exports 4 samples per second. Confirm the records cover the interval before trusting the sum, and check the total against the constant-flow arithmetic above on a quiet stretch of data before using it on real transfers.
Decision: for history, the trapezoid total from archived samples; for a live on-screen total from now on, pre-scale the rate to volume per second and read the raw ruler integral as volume directly; convert after integration only where a documented interface hands you the result.
Questions asked
What if the flow tag is scaled in liters per minute instead of cubic meters per hour?
The divisor follows the tag's time unit, not its volume unit. A per-minute rate integrated over seconds gives liter-seconds per minute, so divide the raw area by 60 to get liters; the 3600 factor applies only to per-hour rates. Divide by 1000 afterward if the report must be in cubic meters.
Will pre-scaling the tag to volume per second disturb existing trends?
Only from the moment the new scaling is archived. Stored values keep their per-hour scaling, the axis will show small numbers such as 0.0033 where it showed 12, and operators used to per-hour readings need telling. The old archive is not rewritten, so totals for earlier dates still come from the archive route.
Why does the total change when I nudge a ruler endpoint?
The statistic integrates exactly between the two ruler positions, so any endpoint movement adds or removes area. On a rising or falling edge a small shift changes the total noticeably; on flat flow it barely moves. Record both endpoint timestamps before comparing two readings, and expect an offset if the interval crosses a clock change.
How should a gap in the archive be handled in the total?
Choose one rule and state it. Treating the gap as zero flow undercounts; interpolating across it assumes the flow held steady and can overcount. Either way, note the gap's duration beside the total so the number stays defensible, and investigate invalid-quality periods rather than silently including them.

