Supported platforms: CODESYS 2.3, CODESYS 3.5

 

PVC_PI_Controller (FB)

Description

This function block is a standard PI controller. Proportional (P) and Integration (I) gain values are adjustable with parameters.

Limitations

This function block is primarily intended for ProportionalValveControl library's internal use.

Inputs

Input variable name

Data type

Range

Description

i_Enable

BOOL

TRUE/FALSE

Enables operation of controller

i_Request

UINT

0..65535

Requested value for the controller

i_Feedback

UINT

0..65535

Measured value for the controller

i_P_Gain

UINT

0..65535

Proportional gain value of PI controller, 1000 = 1

i_I_Gain

UINT

0..65535

Integration gain value of PI controller, 1000 = 1

Outputs

CODESYS 2.3CODESYS 2.3

Output variable name

Data type

Range

Description

o_Output

UINT

0..G_PI_MAX

Output of PI controller

 

 

CODESYS 3.5CODESYS 3.5

Output variable name

Data type

Range

Description

o_Output

DINT

0..G_PI_MAX

Output of PI controller

 

 

Example code

 

See also

 

Source file Topic000458.htm

Last updated 13-Jun-2024