modelController
Partial interface for a digital controller
Information
Description
Partial interface for a digital controller, implemented through an algorithm.
The model has the following ports
| Name | Description | Conditional? |
|---|---|---|
| SP | Set Point | NO |
| PV | Process Variable | NO |
| CS | Control Signal | NO |
| satHI | CS at HIGH saturation | NO |
| satLOW | CS at LOW saturation | NO |
| TR | Track Reference signal | YES (useTS) |
| TS | Track Switch signal | YES (useTS) |
| Bias | Biasing signal | YES (useBIAS) |
| MAN | Manual Switch signal | YES (useMAN) |
| CSinc | Control Signal increment | YES (useMAN) |
| Finc | Forbid increment | YES (useForbid) |
| Fdec | Forbid decrement | YES (useForbid) |
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 is true, 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.
Manual mode
If the boolean flag useMAN is true, the inputs MAN and CSinc are enabled.When enabled, if the MAN signal is true the output CS can be manually controlled via the signals CSinc and CSdec, that respectively increment or decrement the control signal.
Forbid mode
If the boolean flag useForbid is true, the inputs Finc and Fdec are enabled.When enabled, if the Finc signal is true the output CS cannot grow up, while if Fdec is true it cannot decrease.
Discretisation
The controller is implemented directly through an algorithm, that represents the discretised version of the continuous time controller.Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useTS | false | =true, if TS and TR inputs are enabled |
| Boolean | useBIAS | false | =true, if BIAS input is enabled |
| Boolean | useMAN | false | =true, if MANUAL input is enabled |
| Boolean | useForbid | false | =true, if Forbid inputs are enabled |
| Discretisation | |||
| Real | Ts | 0 | Sampling time |
| Saturation | |||
| Boolean | AntiWindup | false | Flag that enables the antiwindup feature |
| Real | CSmin | 0 | minimum value of the CS |
| Real | CSmax | 1 | maximum value of the CS |
| Initialisation | |||
| Real | CS_start | 0 | output initial value |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | TR | Track Reference signal | |
| Modelica.Blocks.Interfaces.BooleanInput | TS | Flag that enables the TRACKING mode | |
| Modelica.Blocks.Interfaces.RealInput | BIAS | Bias signal | |
| Modelica.Blocks.Interfaces.BooleanInput | MAN | Flag that enables the MANUAL mode | |
| Modelica.Blocks.Interfaces.RealInput | CSinc | Control Signal increment when MANUAL mode is selected | |
| Modelica.Blocks.Interfaces.BooleanInput | Finc | Flag that forbid an increment of the CS | |
| Modelica.Blocks.Interfaces.BooleanInput | Fdec | Flag that forbid a decrement of the CS | |
| Modelica.Blocks.Interfaces.RealInput | SP | Set Point signal | |
| Modelica.Blocks.Interfaces.RealOutput | CS | Control signal | |
| Modelica.Blocks.Interfaces.RealInput | PV | Process Variable signal | |
| Modelica.Blocks.Interfaces.BooleanOutput | satHI | The CS signal saturated at CSmax | |
| Modelica.Blocks.Interfaces.BooleanOutput | satLOW | The CS signal saturated at CSmin |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | bias | bias signal | |
| Real | tr | track reference value | |
| Boolean | ts | track reference signal | |
| Real | csInc | control signal increment when man mode is selected | |
| Boolean | man | manual enabling signal | |
| Boolean | F_inc | forbidden increment signal | |
| Boolean | F_dec | forbidden decrement 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.