PIDU – PID controller unit
Block SymbolLicensing group: STANDARD
Function Description
The PIDU block is a basic block for creating a complete PID controller (or P, I, PI, PD, PID,
PI+S). In the most simple case it works as a standalone unit with the standard PID
controller functionality with two degrees of freedom. It can operate in automatic mode
() or manual
mode ().
In the automatic mode (), the block PIDU implements the PID control law with two degrees of freedom in the form
where is Laplace transform of the manipulated variable mv, is Laplace transform of the setpoint variable sp, is Laplace transform of the process variable pv, is Laplace transform of the feedforward control variable dv and , , , , and are the parameters of the controller. The sign of the right hand side depends on the parameter RACT. The range of the manipulated variable mv (position controller output) is limited by parameters hilim, lolim. The parameter dz determines the dead zone in the integral part of the controller. The integral part of the control law can be switched off and fixed on the current value by the integrator hold input IH (). For the proper function of the controller it is necessary to connect the output mv of the controller to the controller input tv and properly set the tracking time constant tt (the rule of thumb is or in the case of a PI controller). In this way we obtain the bumpless operation of the controller in the case of the mode switching (manual, automatic) and also the correct operation of the controller when saturation of the output mv occurs (antiwindup). The additional outputs dmv, de and SAT generate the velocity output (difference of mv), deviation error and saturation flag, respectively.
If the PIDU block is connected with the SCUV block to configure the 3-point step controller without the positional feedback, then the parameter icotype must be set to 4 and the meaning of the outputs mv and dmv and SAT is modified in the following way: mv and dmv give the PD part and difference of I part of the control law, respectively, and SAT provides the information for the SCUV block whether the deviation error is less than the dead zone dz in the automatic mode. In this case, the setpoint weighting factor c should be zero.
In the manual mode (), the input hv is copied to the output mv unless saturated. The overall control function of the PIDU block is quite clear from the following diagram:
Inputs
dv | Feedforward control variable | double |
sp | Setpoint variable | double |
pv | Process variable | double |
tv | Tracking variable | double |
hv | Manual value | double |
MAN | Manual or automatic mode | bool |
|
|
|
IH | Integrator hold | bool |
|
|
|
Outputs
mv | Manipulated variable (controller output) | double |
dmv | Controller velocity output (difference) | double |
de | Deviation error | double |
SAT | Saturation flag | bool |
|
|
|
Parameters
irtype | Controller type (control law) 6 | long |
|
|
|
RACT | Reverse action flag | bool |
|
|
|
k | Controller gain 1.0 | double |
ti | Integral time constant 4.0 | double |
td | Derivative time constant 1.0 | double |
nd | Derivative filtering parameter 10.0 | double |
b | Setpoint weighting – proportional part 1.0 | double |
c | Setpoint weighting – derivative part | double |
tt | Tracking time constant. No meaning for controllers without integrator. 1.0 | double |
hilim | Upper limit of the controller output 1.0 | double |
lolim | Lower limit of the controller output -1.0 | double |
dz | Dead zone | double |
icotype | Controller output type 1 | long |
|
|
|
[Previous] [Back to top] [Up] [Next]