modelController

Partial interface for a generic controller

Information

Description

Partial interface for a continuous/discrete time controller.
The model has the following ports

NameDescriptionConditional?
SPSet PointNO
PVProcess VariableNO
CSControl SignalNO
TRTrack Reference signalYES (useTS)
TSTrack Switch signalYES (useTS)
BiasBiasing signalYES (useBIAS)
ATreqAutoTuning requestYES (useAT)


And some of them can be conditionally selected, by specifying a boolean flag.

AntiWindUp mode

If the boolean flag AntiWindup is tue the output of the block ( CS ) saturates at the values specified by CSmin and CSmax.

Tracking mode

If the boolean flag useTS, the inputs TS and TR are enabled.
When enabled, if the TS signal is true the output CS is forced to follow the track reference signal TR.

Discretisation

For each controller is defined a sampling time Ts and a coefficient alpha.
The discretisation of the continuos time transfer function has been performed with the bilinear transformation formula
                 z - 1 
  s = ------------------------------
        z*alpha*Ts - (alpha - 1)*Ts
  
that is equivalent to
  • Forward Euler (FE) if
    alpha = 0
  • Backward Euler (BE) if
    alpha = 1
  • Tustin (TU) if
    alpha = 0.5

Parameters

TypeNameDefaultDescription
Realeps1e-1small time constant that represents the time for switching between auto and tracking mode
BooleanuseTSfalse=true, if TS and TR inputs are enabled
BooleanuseBIASfalse=true, if BIAS input is enabled
BooleanuseATfalse=true, if AutoTuning input is enabled
BooleanuseGSfalse=true, if GainScheduling inputs are enabled
BooleanuseSATfalse=true, if Saturation outputs are enabled
Discretisation
RealTs0Sampling time (if <= 0 continuous time)
IndustrialControlSystems.LinearSystems.Discrete.Types.discrMethodmethodIndustrialControlSystems.LinearSystems.Discrete.Types.discrMethod.BEDiscretisation method
Saturation
BooleanAntiWindupfalseFlag that enables the antiwindup feature
RealCSmin0minimum value of the CS
RealCSmax1maximum value of the CS
Initialisation
RealCS_start0output initial value

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputTRTrack Reference signal
Modelica.Blocks.Interfaces.BooleanInputTSTrack Switch signal
Modelica.Blocks.Interfaces.RealInputBIASBias
Modelica.Blocks.Interfaces.RealInputSPSet Point signal
Modelica.Blocks.Interfaces.RealOutputCSControl signal
Modelica.Blocks.Interfaces.RealInputPVProcess Variable signal
Modelica.Blocks.Interfaces.BooleanInputATreqAuto Tuning request
Modelica.Blocks.Interfaces.BooleanOutputsatHI
Modelica.Blocks.Interfaces.BooleanOutputsatLOW

Components

TypeNameDefaultDescription
Realbiasbias signal
Realtrtrack reference value
Booleantstrack reference signal
Booleanat_reqauto tuning enabling signal
BooleansatHighHigh saturation signal
BooleansatLowLow saturation signal

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.