This table describes the input pins of the FB_PID function block:
Input |
Data Type |
Description |
---|---|---|
i_xEn |
BOOL |
TRUE: Enables FB_PID function block FALSE: Disables FB_PID function block |
i_rSp |
REAL |
Set point Range: ±3.4e+38 |
i_rPv1 |
REAL |
Feedback value from the process. Range: ±3.4e+38 |
i_iPv2 |
INT |
Feedback value from the process. Range: -32768...32767 |
i_xHold |
BOOL |
TRUE: Holds the PID output at current level and stops the PID calculations. FALSE: Normal running of PID Mode. (Optional) |
i_rKp |
REAL |
Proportional gain for PID Range: 0.0...3.4e+38 |
i_rTn |
REAL |
Integral time for PID Range: 0.0...60000 milliseconds |
i_rTv |
REAL |
Derivative time for PID control Range: 0.0...60000 milliseconds |
i_rTd |
REAL |
Damping time for derivative action Range: 60000.0 > i_rTd > i_stPid.rTargCyclTime |
i_xManMode |
BOOL |
TRUE: Manual mode FALSE: Auto mode (factory setting) (Optional) |
i_rManVal |
REAL |
Manual PID output value when i_xManMode is TRUE. Range: ±3.4e+38 (Optional) |
i_stPid |
STRUCT st_Pid |
Parameter structure |
i_xErrRst |
BOOL |
TRUE: Reset detected error (Optional) (Rising edge resets the detected error) |
If TRUE, enables the function block.
If FALSE, then PID output set to zero and detected error status (q_xErr) is cleared and detected error id (q_uiErrId) is set to zero.
If TRUE, then PID output is maintained at last value and internal calculations of PID algorithm are stopped.
If FALSE, then PID algorithm is executed cyclically.
New PID output is calculated from last value.
This resets the current detected error.
On rising edge of this input, detected error is reset.
The PID output is set to zero.
If TRUE, then PID output is equal to i_rManVal.
If FALSE then as per bump less transfer, PID output starts from i_rManVal and PID algorithm starts execution.