FUNCTION_BLOCK FB_PIDR

An instance of this function block type implements the reverse-acting PID (Proportional+Integral+Derivative) control law
XOUT = -(Kp*e + ITERM/TR + TD*DTERM),
where
e = PV - SP, ITERM = ∫edt, and ETERM = de/dt.
The manipulated variable XOUT, the process variable PV and the proportionality constant KP are of type REAL, as are the internal terms ERROR, ITERM and ETERM. The reset time TR and derivative time TD are of type TIME. The set point SP and initial output value X0 are of type UINT since they are considered to be manually set, e.g., from an instance of the FACEPLATE type.
The inputs PV,SP and X0 are assumed to be limited to the range 0 to 100 per cent of full scale, and the output XOUT is limited to the same range.
Provision is made for anti-reset windup and bumpless transer from MANUAL to AUTO mode through appropriate initialization of the internal ITERM and ETERM variables.
Last updated: 2011-02-02.
©2011 Holobloc Inc.
Licensed under the Academic Free License version 3.0.