PID (94)


PID (94)

ID                          94

 

 

Application:

PLC

SIM

 

Group: MATH

 

Short description:

The function performs the operation of the PID controller.

 

Inputs (5):

no.

type

impulse

mark

notes

1

I

no

IN

Real type input

2 R no propg Proportional gain
3 R no intg Integral gain
4 R no derivg Derivative gain
5 B no intreset Signal resetting the integral value


Outputs (1):

no.

type

impulse

mark

notes

1

R

no

OUT

Function output value



Settings:

no.

type

mark

notes

1

R

MAX_INT

Maximum integral value
2 R MIN_INT Minimum integral value

 

Function operation:

The PID function performs the operation of the PID controller. When creating a function block, the value range of the integral is set with the variables MAX_INT and MIN_INT. The PID controller parameters are assumed on the inputs of the propg, intg, derivg functions, the value of proportional gain, integral and derivative, respectively. The INTRESET input is used to reset the value of the current integral. At the IN input, the function accepts an input signal, on the basis of which the PID controller response is then generated, returned by the function block at the OUT output.

 

R registers and M markers used:

no.

name

description

R - read, W - write

R3600

_Control_Loop_Frequency

Main control loop frequency R