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_KPID function block offers a superset of the functionality of the L9P_PID function block, with additional features that include:
Transfer Function
Explanation of the variables:
Variable
Meaning
YP
P component (only if input status bit 9=1)
YI
I component (only if input status bit 10=1)
YD
D component (only if input status bit 11=1)
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..64] OF UINT
%MW
see Parameter PAR below
Bottom
IN
LEN
UINT
64
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...64] OF UINT.
-
Word
Content
Format
General Parameters
1, 2
live input, x
REAL (Floating Point)
3
output status, modes
Output Status, Word 1
WORD
4
output status, previous modes
Output Status, Word 2
WORD
5
reserved
WORD
6
input status (standard input bits, manual, halt, reverse, direct)
Input Status
WORD
Input Parameters
7, 8
proportional rate, KP
REAL (Floating Point)
9, 10
reset time, TI
REAL (Floating Point)
11, 12
derivative action time, TD
REAL (Floating Point)
13, 14
delay time constant, TD1
REAL (Floating Point)
15, 16
gain reduction zone, GRZ
REAL (Floating Point)
17, 18
gain reduction in GRZ, KGRZ (0...1.0)
REAL (Floating Point)
19, 20
limit rise of manual set point value
REAL (Floating Point)
21, 22
limit rise of manual output
REAL (Floating Point)
23, 24
high limit on output Y
REAL (Floating Point)
25, 26
low limit on output Y
REAL (Floating Point)
27, 28
expansion for anti-reset wind-up limits
REAL (Floating Point)
Inputs
29, 30
external set point for cascade
REAL (Floating Point)
31, 32
manual set point
REAL (Floating Point)
33, 34
manual output Y
REAL (Floating Point)
35, 36
reset for output Y
REAL (Floating Point)
37, 38
bias
REAL (Floating Point)
Outputs
39, 40
bumpless transfer word, BT
REAL (Floating Point)
41, 42
calculated control difference (calculated error term), XD
REAL (Floating Point)
43
previous operating mode (not used)
UINT
44, 45
delta T (in ms) since last solve
UDINT
46, 47
previous system deviation, XD_1
REAL (Floating Point)
48, 49
previous input, X_1
REAL (Floating Point)
50, 51
integral part of output YI
REAL (Floating Point)
52, 53
differential part of output YD
REAL (Floating Point)
54, 55
set point, SP
REAL (Floating Point)
56, 57
proportional part of output YP
REAL (Floating Point)
58
previous operating status (not used)
UINT
Timing Information
59, 60
10 ms clock at time n
UDINT
61, 62
solution interval (in ms) (not used)
UDINT
Output
63, 64
manipulated output variable, Y
REAL (Floating Point)
Output Status (Word 1)
Control Expert-IEC bits
Function
0...7
standard output bits (flags)
8
1 = reset mode selected
9
1 = manual mode selected
10
1 = halt mode selected
11
1 = auto mode selected
12
1 = cascade mode selected
13
1 = high limit exceeded
14
1 = low limit exceeded
15
error detected
Output Status (Word 2)
Control Expert-IEC bits
Function
0...4
detected error conditions:
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Meaning
1
0
1
0
0
negative gain, Kp
1
0
1
1
1
negative deriviate time constant, TD
1
0
1
1
0
negative integral time constant, TI
1
1
0
0
0
negative delay time constant, T1
1
1
0
0
1
negative nonsensitive zone, UZ
1
1
0
1
0
negative amplification reduction in UZ, KUZ
1
0
1
0
1
high/low limit error detected (low > high)
5...7
not used
8
1 = previous auto mode selected (not supported in Control Expert)
9
1 = previous P mode selected (not supported in Control Expert)
10
1 = previous I mode selected (not supported in Control Expert)
11
1 = previous D mode selected (not supported in Control Expert)
12...15
not used
Input Status
Control Expert-IEC bits
Function
0
1 = reverse action for loop output
0 = direct action for loop output
1
1 = manual Y tracks Y
2
1 = disable bumpless transfer
0 = bumpless transfer
3
1 = anti--reset wind-up on YI only
0 = normal anti--reset wind-up
4
1 = solve derivative algorithm based on x
0 = solve derivative algorithm based on xd
5
1 = solve derivative algorithm
6
1 = solve integral algorithm
7
1 = solve proportional algorithm
8
1 = cascade mode
9
1 = halt mode
10
1 = manual mode
11
1 = reset mode
12...15
standard input bits (flags)