Skip to content

TOTALIZER Block Logic Documentation

Overview

The TOTALIZER block is designed to continuously accumulate a process value over time. It is used in scenarios where total quantity needs to be calculated based on instantaneous values, such as flow, energy, or mass.

The block accounts for time-based integration and allows flexible configuration using time units (seconds, minutes, hours) and an optional conversion factor. It also provides a reset mechanism and outputs the accumulated total in real-time.


Logic Block Illustration

  • The block integrates the input process value PV by multiplying it with the cycle time.
  • This gives a running total over time, similar to a trapezoidal integration.
  • If RESET = TRUE, the total value is reset to 0.0.
  • The logic assumes PV is in consistent units (e.g., L/s or m³/h).

../../Images/Programing_Manual/Logic_Manual/TOTALIZER/Totalizer_0.png

Showing the Shift Totalizer block in the above picture.

../../Images/Programing_Manual/Logic_Manual/TOTALIZER/Totalizer_1.png

In the above picture, we are showing that how to use the Totalizer block


Pins Information

Signal Name Type Description
PV REAL Process value to be totalized (e.g., instantaneous flow rate)
enTotalTime INT Time base selection:
0 = Seconds
1 = Minutes
2 = Hours
CONV_FCTR REAL Optional conversion multiplier for PV
CycleTime REAL PLC cycle time in seconds
RESET BOOL When TRUE, resets totalized value to zero
TOTAL REAL Accumulated total value output

Operational Behavior

  1. Accumulation Logic:
  2. On each cycle, the block calculates: INCREMENT = PV × CONV_FCTR × CycleTime
  3. INCREMENT is added to the TOTAL, adjusted according to enTotalTime.

  4. Time Base Handling:

  5. enTotalTime = 0: Totalization in seconds
  6. enTotalTime = 1: Totalization in minutes → internal increment divided by 60
  7. enTotalTime = 2: Totalization in hours → internal increment divided by 3600

  8. Reset Logic:

  9. If RESET = TRUE, the total value TOTAL is reset to 0.0.
  10. Totalization resumes after RESET goes FALSE.