Owning Palette: Control Function Block
Requires: RT Module
PID algorithm for PID applications or high speed control applications that require an efficient algorithm. The PID algorithm features control output range limiting with integrator anti-windup and bumpless controller output for PID gain changes. This function block also features manual mode control with bumpless manual to automatic transitions, non-linear integral action, two degree of freedom control, and error-squared control.
You can use this function block to operate on one input value at a time.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Inputs | Contains the following configuration options:
|
| Outputs | Contains the following configuration options:
|
| Parameter | Description |
|---|---|
| error in (no error) | Describes error conditions that occur before this node runs. |
| setpoint | Specifies the setpoint value of the process variable that you are controlling. This is the desired value for the process variable. |
| process variable | Specifies the current value of the variable that you are controlling. |
| Proportional Gain | Specifies the proportional gain (Kc) of the PID algorithm. The default value is 1. |
| integral time | Specifies the PID parameter (Ti) that adjusts the effect of the error integral term on the output. |
| derivative time | Specifies the PID parameter (Td) that adjusts the effect of the error derivative term on the output. |
| auto? (T) | TRUE selects automatic control (default), FALSE selects manual mode. The function block uses bumpless transfer to transition from manual mode to automatic control. |
| setpoint high | Specifies the maximum value of the setpoint range. |
| setpoint low | Specifies the minimum value of the setpoint range. |
| dt (s) | Specifies the interval (in seconds) at which this function block is called. This value is used in PID calculations. If you specify a value less than or equal to zero, this function block calculates the value since last called using an internal timer with 1 millisecond resolution. |
| output high | Specifies the maximum value of output. This value is represented by a fixed-point number with the same fixed-point type as process variable. |
| reinitialize (F) | Specifies whether to reinitialize internal parameters, such as integrated error. Setting this input to TRUE sets internal parameters to default values of 0.0. |
| output low | Specifies the minimum value of output. |
| beta | Specifies the relative emphasis of disturbance rejection to setpoint tracking. The default value of 1 is appropriate for most applications. A smaller value between 0 and 1 can be used to specify emphasis on disturbance rejection (such as process load changes). |
| linearity | Specifies the linearity of the error response. The valid range of linearity values is 0 through 1.0. A linearity value of 1.0 generates a normal linear response, while a value of 0.1 generates an approximately parabolic (square law) response. |
| manual control | Specifies the value of output while in manual mode. |
| Parameter | Description |
|---|---|
| error out | Contains error information. This output provides standard error out functionality. |
| output | Returns the control output of the PID algorithm that is applied to the controlled process. |
| dt out (s) | Returns the actual time interval in seconds. Indicates either the value specified for dt (s) or the computed interval if dt (s) was specified as -1.0. |