Description
(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_PI function block performs simple proportional-integral operations using floating point math. It features halt / manual / auto operation modes. It is similar to the L9P_PID and L9P_KPID function blocks but does not contain as many options. It is available for higher-speed loops or inner loops in cascade strategies.
Properties
The function block has the following properties:
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...36] OF UINT
%MW
see Parameter PAR below
Bottom
IN
LEN
UINT
36
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...36] OF UINT
-
Word
Content
Format
General Parameters
1, 2
live input, x
REAL (Floating Point)
3
output status, high and low limits exceeded
output status
WORD
4
output status, detected error in negative integral time or high/low limit setting
WORD
5
reserved
WORD
6
input status (standard input bits, manual, halt, reverse, direct)
input status
WORD
Inputs
7, 8
set point, SP
REAL (Floating Point)
9, 10
manual output
REAL (Floating Point)
11, 12
calculated control difference (calculated error value), XD
REAL (Floating Point)
Outputs
13
previous operating mode (not used)
UINT
14, 15
time delta T (in ms) since last solve
UDINT
16, 17
previous system deviation, XD_1
REAL (Floating Point)
18, 19
integral part of output YI
REAL (Floating Point)
20, 21
previous input, X_1 (not used)
REAL (Floating Point)
22
previous operating status (not used)
UINT
Timing Information
23, 24
10 ms clock at time n
UDINT
25, 26
solution interval (in ms) (not used)
UDINT
Input Parameters
27, 28
proportional rate, KP
REAL (Floating Point)
29, 30
reset time, TI (in sec)
REAL (Floating Point)
31, 32
high limit on output Y
REAL (Floating Point)
33, 34
low limit on output Y
REAL (Floating Point)
Output
35, 36
manipulated output variable, Y
REAL (Floating Point)
Output Status (Word 3)
Control Expert-IEC bits
Function
0...7
standard output bits (flags)
8...12
not used
13
1 = high limit exceeded
14
1 = low limit exceeded
15
error detected
Detected Error Conditions Word (Word 4)
Control Expert-IEC bits
Function
0...4
detected error conditions
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Description
1
0
1
1
0
negative integral time constant
1
0
1
0
1
high/low limit error detected (low > high)
1
0
1
0
0
KP is negative
5...15
not used
Input Status (Word 6)
Control Expert-IEC bits
Function
0
1 = reverse action for loop output
0 = direct action for loop output
1...8
not used
9
1 = halt mode
10
1 = manual mode
11
not used
12...15
standard input bits (flags)