L9P_TOTAL: Totalizer for Metering Flow
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9P_TOTAL DFB provides a material totalizer for batch processing reagents. The input signal contains the units of weight or volume per unit of time. The totalizer integrates the input over time.
The algorithm reports 3 outputs:
Mode of Functioning
The DFB uses up to 3 different set points:
The target set point is for the full amount to be metered in. Here the output will be turned OFF.
The trickle flow set point is the cut-off point when the output should be decreased from full flow to a percentage of full flow so that the target set point is reached with better granularity.
The auxiliary trickle flow set point is optional. It is used to gain another level of granularity. If this set point is enabled, the output is reduced further to 10% of the trickle output.
The totalizer works from zero as a base point. The set point must be a positive value
In normal operation, the valve output is set to 100% flow when the integrated value is below the trickle flow set point. When the sum crosses the trickle flow set point, the valve flow becomes a programmable percentage of full flow. When the sum reaches the desired target set point, the valve output is set to 0% flow.
Set points can be relative or absolute. With a relative set point, the deviation between the last summation and the set point is used. Otherwise, the summation is used in absolute comparison to the set point.
There is a halt option to stop the system from integrating.
When the operation has finished, the output summation is retained for future use. You have the option of clearing this sum. In some applications, it is important to save the sum, e.g. if the meters or load cells cannot handle the full batch in one charge and measurements are split up or if there are several tanks to fill for a batch and you want to keep track of batch and production sums.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
ON = enables process control function
Node
Node Type
Name
Data Type
Address Range
Meaning
Middle
IN/OUT
PAR
ARRAY[1...28] OF UINT
%MW
see Parameter PAR below
Bottom
IN
LEN
UINT
28
length of parameter block (can not be changed)
Output Pin
Name
Data Type
Address Range
Meaning
Top
OUT
BOOL
ON = operation successful
Bottom
ERR
BOOL
ON = operation not successful
Parameter PAR
The data type of the parameter block is ARRAY[1...28] of UINT
Word
Content
Format
1, 2
live input
REAL (Floating Point)
3
output status
UINT
4
input status
UINT
5
time word
UINT
6
reserved
UINT
7, 8
time (in ms) since last solve
DINT
9, 10
solution interval (in ms)
DINT
11, 12
last input, X_1
REAL (Floating Point)
13, 14
reset value
REAL (Floating Point)
15, 16
set point, target
REAL (Floating Point)
17, 18
set point, trickle flow
REAL (Floating Point)
19, 20
% of full flow for trickle flow set point
REAL (Floating Point)
21, 22
full flow
REAL (Floating Point)
23, 24
remaining amount to SP
REAL (Floating Point)
25, 26
resulting sum
REAL (Floating Point)
27, 28
output for final control element
REAL (Floating Point)
Output Status
Control Expert-IEC bits
Function
0...7
standard output bits (flags)
8
1 = parameter(s) out of range
9
1 = overshoot past set point
more than 5% of (target set point - trickle flow set point
10
1 = totalizer running
11
1 = operation done
12...13
0 0 = OFF
0 1 = trickle flow
1 0 = full flow
14...15
not used
Input Status
Control Expert-IEC bits
Function
0...7
not used
8
1 = use auxiliary trickle flow set point
9
1 = deviation set point
0 = absolute set point
10
1 = halt integration
11
1 = reset sum
12...15
standard input bits (flags)