WOLFRAM SYSTEM MODELER

LimitedPI

Limited PI-controller with anti-windup and feed-forward

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities.LimitedPI"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Proportional - Integral - controller with optional feed-forward and limitation at the output.

The integral part can be switched off to obtain a limited P-controller.

The feed-forward gain can either be constant or given by the optional input kFF.

When the output is limited, the controller cannot bring the control error to zero and the integrator will not stop integrating. To avoid this WindUp - effect, an Anti-WindUp loop is implemented: The difference between unlimited and limited output is fed back to the integrator's input.

Parameters (13)

k

Value: 1

Type: Real

Description: Gain

useI

Value: true

Type: Boolean

Description: PI else P

Ti

Value: 1

Type: Time (s)

Description: Integral time constant (T>0 required)

useFF

Value: false

Type: Boolean

Description: Use feed-forward?

useConstantKFF

Value: true

Type: Boolean

Description: Use constant feed-forward factor?

KFF

Value: 1

Type: Real

Description: Feed-forward gain

constantLimits

Value: true

Type: Boolean

Description: Use constant limits?

symmetricLimits

Value: true

Type: Boolean

Description: Use symmetric limits?

yMax

Value: inf

Type: Real

Description: Upper limit of output

yMin

Value: -yMax

Type: Real

Description: Lower limit of output

initType

Value: Modelica.Blocks.Types.Init.NoInit

Type: Init

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

x_start

Value: 0

Type: Real

Description: Initial or guess value of state

y_start

Value: 0

Type: Real

Description: Initial value of output

Outputs (1)

controlError

Default Value: u - u_m

Type: Real

Description: Control error (set point - measurement)

Connectors (7)

u

Type: RealInput

Description: Connector of Real input signal

y

Type: RealOutput

Description: Connector of Real output signal

u_m

Type: RealInput

Description: Connector of measured signal

feedForward

Type: RealInput

Description: Connector of feed-forward signal

kFF

Type: RealInput

Description: Connector of feed-forward factor

yMaxVar

Type: RealInput

Description: Connector of yMax input signal

yMinVar

Type: RealInput

Description: Connector of yMin input signal

Components (13)

feedback

Type: Feedback

Description: Output difference between commanded and feedback input

addAntiWindup

Type: Add

Description: Output the sum of the two inputs

integrator

Type: Integrator

Description: Output the integral of the input signal with optional reset

add3

Type: Add3

Description: Output the sum of the three inputs

variableLimiter

Type: VariableLimiter

Description: Limit the range of a signal with variable limits

addSat

Type: Feedback

Description: Output difference between commanded and feedback input

product

Type: Product

Description: Output product of the two inputs

zeroI

Type: Constant

Description: Generate constant signal of type Real

zeroFF

Type: Constant

Description: Generate constant signal of type Real

constantKFF

Type: Constant

Description: Generate constant signal of type Real

yMaxConst

Type: Constant

Description: Generate constant signal of type Real

yMinConst

Type: Constant

Description: Generate constant signal of type Real

gain

Type: Gain

Description: Output the product of a gain value with the input signal

Used in Examples (2)

SpeedControlledDCPM

Modelica.Electrical.Machines.Examples.ControlledDCDrives

Speed controlled DC PM drive with H-bridge from battery

PositionControlledDCPM

Modelica.Electrical.Machines.Examples.ControlledDCDrives

Position controlled DC PM drive with H-bridge from battery

Used in Components (1)

PartialControlledDCPM

Modelica.Electrical.Machines.Examples.ControlledDCDrives.Utilities

Partial controlled DC PM drive with H-bridge from battery