PI

Proportional-Integral controller

    PI

Library

Modelica/Blocks/Continuous

Description

This blocks defines the transfer function between the input u andthe output y as PI system:

              1y = k * (1 + ---) * u             T*s        T*s + 1  = k * ------- * u          T*s

If you would like to be able to change easily between differenttransfer functions (FirstOrder, SecondOrder, ... ) by changingparameters, use the general model class TransferFunctioninstead and model a PI SISO system with parameters
b = {k*T, k}, a = {T, 0}.

Example:   parameter: k = 0.3,  T = 0.4   results in:               0.4 s + 1      y = 0.3 ----------- * u                 0.4 s

It might be difficult to initialize the PI component in steady statedue to the integrator part.This is discussed in the description of packageContinuous.

Parameters

PI_0

NameLabelDescriptionData TypeValid Values

mo_k

k

Gain

Scalar

mo_T

T

Time Constant (T>0 required)

Scalar

mo_initType

initType

Type of initialization (1: no init, 2: steady state, 3: initial state, 4: initial output)

Structure

mo_initType/choice1

Modelica.Blocks.Types.Init.NoInit

Number

0
1

mo_initType/choice2

Modelica.Blocks.Types.Init.SteadyState

Number

0
1

mo_initType/choice3

Modelica.Blocks.Types.Init.InitialState

Number

0
1

mo_initType/choice4

Modelica.Blocks.Types.Init.InitialOutput

Number

0
1

mo_x_start

x_start

Initial or guess value of state

Scalar

mo_y_start

y_start

Initial value of output

Scalar

mo_x

x

x

Structure

mo_x/fixed

fixed

Cell of scalars

true
false

mo_x/start

start

Cell of scalars

PI_1

NameLabelDescriptionData TypeValid Values

mo__nmodifiers

Number of Modifiers

Specifies the number of modifiers

Number

mo__modifiers

Modifiers

Add new modifier

Structure

mo__modifiers/varname

Variable name

Cell of strings

mo__modifiers/attribute

Attribute

Cell of strings

'start'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signal

input

1

y

implicit

Connector of Real output signal

output

1

See Also