
modelPI_Control2
Proportional controller: y = yb + Kc*e
Extends from Modelica.Blocks.Interfaces.SVcontrol (Single-Variable continuous controller).
Parameters
| Type | Name | Default | Description |
| Boolean | directActing | true | =false reverse acting |
| Real | k | 1 | Error gain |
| Real | yb | 0 | Output bias |
| Real | k_s | 1 | Scaling factor for setpoint: set = k_s*u_s |
| Real | k_m | 1 | Scaling factor for measurment: meas = k_m*u_m |
| SI.Time | Ti | 1 | Time Constant (Ti>0 required) |
| SI.Time | unitTime | 1 | |
| Real | Kc | k*(if directActing then +1 else -1) | |
| Initialization |
| Modelica.Blocks.Types.Init | initType | Modelica.Blocks.Types.Init.NoInit | Type of initialization (1: no init, 2: steady state, 3: initial state, 4: initial output) |
| Real | xi_start | 0 | Initial or guess value of error integral (state) |
| Real | y_start | 0 | Initial value of output |