A convenient single order function PI3 shown below, is a ready–made proportional integral controller. Such a controller can form the basis of a current controller and an extinction angle controller in a DC transmission system.

Block Diagram of PI3 Function
As shown above, this function simply summates two signals: The first is the input x(t) multiplied by a gain factor GP and the second is the output of the INTGL3 function. The summated signal is then passed though the LIMIT function.
|
Author(s): |
|
|
REAL FUNCTION PI3(GP,TI,YLO,YHI,YINIT,X)
|
Argument |
Type |
Dimension |
Description |
|
|
|
|
|
|
GP |
REAL |
1 |
Proportional gain factor |
|
TI |
REAL |
1 |
Integral time constant [s] |
|
YLO |
REAL |
1 |
Lower output limit |
|
YHI |
REAL |
1 |
Upper output limit |
|
YINIT |
REAL |
1 |
Initial output value |
|
X |
REAL |
1 |
Input function |
This function requires the following storage allocations per call (see #STORAGE Script Directive and STORx Arrays for more details):
#STORAGE STOR:3
|
Address |
Description |
|
|
|
|
NEXC + 1 |
|
|
NEXC + 2 |
|
|
NEXC + 3 |
|