Description
Original instructions
Function Description
This function block integrates the value of the IN input (typically a flow volume) over time, until an adjustable limit is reached (typically a volume).
EN and ENO can be configured as additional parameters.
NOTE: When using the EN enable input the following must be taken into account:
If the block has not been called for a long time because the EN enable input is set to FALSE, the totalizer block runtime is extended until the next call. If the watchdog timeout is exceeded this can lead to a PLC stop.
To remedy this, the enable input should not be used or set permanently to TRUE, so that the block is processed during every cycle.
NOTE: This function block performs an internal initialization in the first program cycle after a warm start or cold start (e.g. application download or power cycle) of the PLC program.
Due to this, you have to make sure that the function block is invoked in the first program cycle. In case of invoking the function block in a later program cycle, the internal initialization will not be performed and the outputs may deliver wrong values.
WARNING
UNEXPECTED OUTPUT BEHAVIOUR
Make sure that the function block is always invoked in the first program cycle.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Properties
The function block has the following properties
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL TOTALIZER_Instance (IN:=DigitalVariable, 
    MODE:=OperatingMode, PARA:=Parameters, 
    TR_I:=outc_InitializationInput, 
    TR_S:=InitializationOrder, OUT=>ResultOfIntegration, 
    INFO=>AdditionalInformation, STATUS=>StatusWord)
Representation in ST
Representation:
TOTALIZER_Instance (IN:=DigitalVariable, 
    MODE:=OperatingMode, PARA:=Parameters, 
    TR_I:=outc_InitializationInput, 
    TR_S:=InitializationOrder, OUT=>ResultOfIntegration, 
    INFO=>AdditionalInformation, STATUS=>StatusWord);
TOTALIZER Parameter Description
Description of input parameters:
Parameter
Data type
Description
IN
To integrated numerical sizes (only when > 0)
MODE
Operating mode
PARA
Parameter
TR_I
REAL
Initialization input from outc
TR_S
Initialization command
Description of output parameters:
Parameter
Data type
Description
OUT
REAL
Result of the integration of IN (limited to thld)
INFO
additional information generated by function block
STATUS
Status word
Parameter Description Mode_TOTALIZER
Data structure description
Element
Data type
Description
hold
"1": Stopping the integration
rst
BOOL
"1": Resetting the function block
Parameter Description Para_TOTALIZER
Data structure description
Element
Data type
Description
thld
Integral threshold of IN
cutoff
REAL
Division (≥0)
inc_dec
"1": Reverse of integration
"0": Normal mode
Parameter Description Info_TOTALIZER
Data structure description
Element
Data type
Description
outc
Total result of the integration of IN
cter
Counter for integral calculation
done
"1": output OUT achieves integral threshold thld