L9P_INTEG: Integrate Input at Specified Interval
(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_INTEG DFB is used to integrate over a specified time interval. No protection against integral wind-up is provided in this function. L9P_INTEG is time-dependent, e.g. if you are integrating at an input value of 1/sec, it matters whether it operates over one second (in which case the result is 1) or over one minute (in which case the result is 60).
You can set flags to either initialize or restart the function after an undetermined down-time, and you can reset the integral sum if you wish. If you set the initialize flag, you must specify a reset value (zero or the last output in case of loss of power), and calculations will be skipped for one sample.
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...16] OF UINT
%MW
see Parameter PAR below
Bottom
IN
LEN
UINT
16
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...16] of UINT
Word
Content
Format
1, 2
current 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
REAL (Floating Point)
13, 14
reset value
REAL (Floating Point)
15, 16
output (result)
REAL (Floating Point)
Output Status
Control Expert-IEC bits
Function
0...7
standard output bits (flags)
8...15
not used
Input Status
Control Expert-IEC bits
Function
0...10
not used
11
reset sum
12...15
standard input bits (flags)