modelPI

Proportional + Integral controller

Extends from Interfaces.Controller (Partial interface for a generic controller).

Information

Description

Proportional + Integral controller with Automatic, Tracking mode and bias signal.
The control law is defined as

              1+sTi 
  CS(s) = Kp ------- (SP(s) - PV(S))
               sTi
  


Scheme



NameDescriptionConditional?
SPSet PointNO
PVProcess VariableNO
CSControl SignalNO
TRTrack Reference signalYES (useTS)
TSTrack Switch signalYES (useTS)
BiasBiasing signalYES (useBIAS)
ATreqAutoTuning requestYES (*)
(*) AutoTuning Not available here, please see the package
AutoTuning

The controller can have various operating conditions:
  • Automatic,
  • and Tracking

In the Automatic mode, the control output is computed with the proportional+integral control law, while in the tracking mode
it is defined by the input TR.

To note that in the tracking mode the output signal CS is equal to TR, and the first order filter
     1
  -------- TR(S)
   1+s*Ti
  
is replaced by
     1
  -------- TR(S)
   1+s*eps
  
where eps is a small time constant. With such a scheme, the integrator does not diverge while the tracking mode
is enabled.

Parameters

TypeNameDefaultDescription
Realeps (from Controller)1e-1small time constant that represents the time for switching between auto and tracking mode
BooleanuseTS (from Controller)false=true, if TS and TR inputs are enabled
BooleanuseBIAS (from Controller)false=true, if BIAS input is enabled
BooleanuseAT (from Controller)false=true, if AutoTuning input is enabled
BooleanuseGS (from Controller)false=true, if GainScheduling inputs are enabled
BooleanuseSAT (from Controller)false=true, if Saturation outputs are enabled
Discretisation
RealTs (from Controller)0Sampling time (if <= 0 continuous time)
IndustrialControlSystems.LinearSystems.Discrete.Types.discrMethodmethod (from Controller)IndustrialControlSystems.LinearSystems.Discrete.Types.discrMethod.BEDiscretisation method
Saturation
BooleanAntiWindup (from Controller)falseFlag that enables the antiwindup feature
RealCSmin (from Controller)0minimum value of the CS
RealCSmax (from Controller)1maximum value of the CS
Initialisation
RealCS_start (from Controller)0output initial value
Parameters
RealKp5Proportional gain
RealTi1Integral time

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputTR (from Controller)Track Reference signal
Modelica.Blocks.Interfaces.BooleanInputTS (from Controller)Track Switch signal
Modelica.Blocks.Interfaces.RealInputBIAS (from Controller)Bias
Modelica.Blocks.Interfaces.RealInputSP (from Controller)Set Point signal
Modelica.Blocks.Interfaces.RealOutputCS (from Controller)Control signal
Modelica.Blocks.Interfaces.RealInputPV (from Controller)Process Variable signal
Modelica.Blocks.Interfaces.BooleanInputATreq (from Controller)Auto Tuning request
Modelica.Blocks.Interfaces.BooleanOutputsatHI (from Controller)
Modelica.Blocks.Interfaces.BooleanOutputsatLOW (from Controller)
Modelica.Blocks.Interfaces.RealInputKp_GS
Modelica.Blocks.Interfaces.RealInputTi_GS

Components

TypeNameDefaultDescription
Realbias (from Controller)bias signal
Realtr (from Controller)track reference value
Booleants (from Controller)track reference signal
Booleanat_req (from Controller)auto tuning enabling signal
BooleansatHigh (from Controller)High saturation signal
BooleansatLow (from Controller)Low saturation signal
RealTi_actActual integral time
RealKp_actActual proportianal gain
RealFBoutoutput (and state) of the feedback block 1/(1+sTi)
RealcsPre-biased Control Signal
Realsatininput of the saturation block

Revisions

Industrial Control Systems (v 1.0.0) : April-May 2012
List of revisions:

  • 11 May 2012 (author: Marco Bonvini)

Main Authors:
Marco Bonvini; <bonvini@elet.polimi.it>
Alberto Leva <leva@elet.polimi.it>
Politecnico di Milano
Dipartimento di Elettronica e Informazione
Via Ponzio 34/5
20133 Milano - ITALIA -
Copyright:
Copyright © 2010-2012, Marco Bonvini and Alberto Leva.
The IndustrialControlSystems package is free software; it can be redistributed and/or modified under the terms of the Modelica license.