Input Pin Description

Input Pin Table

This table describes the input pins of the FB_PI_PID function block:

Input

Data Type

Description

i_xEn

BOOL

TRUE: Enables the function block

FALSE: Disables the function block

i_rSp

REAL

Set point value of the process

Range: ±3.4e+38

i_rActValPI

REAL

Actual value of the process to PI outer loop

Range: ±3.4e+38

i_rActValPID

REAL

Actual value of the process to PID inner loop

Range: ±3.4e+38

i_rPreCtrlVal

REAL

Pre control value added to the output from PI outer loop

Range: ±3.4e+38

i_rManValPI

REAL

Manual input for PI outer loop

Range: ±3.4e+38

(Optional)

i_xManModePI

BOOL

TRUE: Operate PI outer loop in manual mode.

FALSE: Operate PI outer loop in auto mode

(Optional)

i_xHoldPI

BOOL

TRUE: Hold the PI outer loop output and internal state constant

FALSE: Disabled

(Optional)

i_rManValPID

REAL

Manual input for PID inner loop

Range: ±3.4e+38

(Optional)

i_xManModePID

BOOL

TRUE: Operate PID inner loop in manual mode.

FALSE: Operate PID inner loop in auto mode

(Optional)

i_xHoldPID

BOOL

TRUE: Hold the PID inner loop output and internal state constant

FALSE: Disabled

(Optional)

i_xErrRst

BOOL

Reset for detected error

(Rising edge resets detected error.)

(Optional)

i_stParaPID

STRUCT stPIPIDOutLoop

Control parameters for PID inner loop

i_stParaPI

STRUCT stPIPIDInLoop

Reset for detected error