User manual

IEC61131 User and Reference Manual
April 22, 2008
371
total
Non-Volatile Totalizer
Description
The total function block reads a rate input and integrates it over the sample interval to
accumulate a total. Up to 32 total function blocks can be added to a program.
When the accumulate input is ON the function accumulates the total. The time1 and timeP
outputs report the totals.
When the enable input is ON, accumulation is enabled. When the enable input is OFF, the
accumulated values and the logged data are deleted.
When the log input goes from OFF to ON, the accumulated total is saved in the history
records. Older history is pushed down and the oldest record is discarded.
Stored data is retained when the program is stopped, and when the controller is powered off
or reset.
The accumulated total does not change if the period is changed.
The accumulated total is set to zero if the period is invalid.
ID
enable
log
accumulate
input
total
total1
status
end1
totalP
time1
endP
timeP
units
interval
period
Arguments
Inputs
Type
Description
ID
Integer
Identifies the internal totalizer (1 to 32).
enable
Boolean
Enables accumulation and creates log
FALSE to TRUE transition = create and initialize log
TRUE = enable accumulation
FALSE = delete log and clear outputs
log
Boolean
Log Data control
FALSE to TRUE = log data
accumulate
Boolean
Accumulate total control
TRUE = accumulate total
input
Real
Rate Input