Specifications
Chapter 1 - AsconACLib
57
1-3-44 TOTALIZER_ADV
FB Prototype
TOTALIZER_ADV
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
/T_BASE)
Note: In order to obtain a reasonable accuracy on the calculation, exceed a ratio of 10
6
of ROLL/I
NSCL
where IN
SCL
= AI * SCALE * (T
sample
/T_BASE)
Label 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)
Full range of the
REAL data-type
SCALE REAL
Scale factor for input value [num]
Typical range
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
T_BASE USINT
Integration time base. The value is evaluated
ONLY while the ENABLE command is
FALSE. It determines the time stamp which
to refer the totalization value [num]
0 = e.u./Hours,
1 = e.u./Minutes and
2 = e.u./Seconds
Label 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 calcu-lation 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
T_BASE
BOOL
REAL
BOOL
REAL
REAL
REAL
REAL
USINT
¡
¡
¡
¡
¡
BOOL
DWORD
BOOL
REAL
BOOL
ERROR
ERR_CODE
DOUT
AOUT
ROLLED
¡
¡
¡
¡