Specifications
Chapter 1 - AsconACLib
55
1-3-43 TOTALIZER
FB Prototype
TOTALIZER
Input parameters
Output parameters
Description
This function block integrates the input analog value in according to the sampling
time. The equation for the FB is :
AOUT
(t)
= AOUT
(t-1)
+ AI
(t)
* SCALE * (T
sample
/3600)
Note: In order to obtain a reasonable accuracy on the calculation, exceed a ratio of 10
6
of ROLL/IN
SCL
where:
IN
SCL
= AI * SCALE * (T
sample
/3600
Default Values Table
Input Type Description Range
ENABLE BOOL
Command to enable the internal code
execution
AI REAL Analogue input value [e.u.]
Full range of the REAL
data-type
RESET BOOL Digital reset
MINVAL REAL
Input dropout minimum value. If
AI < MINVAL the output does not
change [e.u.]
Full range of the REAL
data-type
SCALE REAL Scale factor for input value [num] 0.01… 100.0
PULSE REAL
When output reaches this value, DOUT
generates a one cycle pulse [e.u.]
Range > MINVAL … <
ROLL
ROLL REAL
Rollover value. When output reaches
roll, the output ROLLED became TRUE
until a RESET command [e.u.]
Typical range > MINVAL
and
PULSE… 1000.0
Output Type Description Range
ERROR BOOL Error status
ERR_CODE DWORD
Error code [bit mask]
16#00 00 00 00…
16#FF FF FF FF
DOUT BOOL
Digital output which generates a pulse
every time the calculation reaches the
PULSE input value
AOUT REAL
Analogue output for totalized value [e.u.]
ROLLED BOOL
Digital output which stays TRUE until a
RESET Command
ENABLE
AI
RESET
MINVAL
SCALE
PULSE
ROLL
BOOL
REAL
BOOL
REAL
REAL
REAL
REAL
¡
¡
¡
¡
¡
¡
¡
BOOL
DWORD
BOOL
REAL
BOOL
ERROR
ERR_CODE
DOUT
AOUT
ROLLED
¡
¡
¡
¡
¡
Input Default Value
ENABLE FALSE
AI 0.0
RESET FALSE
MINVAL 0.0