PID#

Drives an error to zero: proportional, integral and derivative terms. n filters the derivative; u_min < u_max limits the output, with anti-windup (clamp or back_calc with kt). Equal limits: none.

pid · control · element by element: vectors in, vectors out

n filters the derivative (0: none). With u_min < u_max the output is limited (equal: no limit), and anti_windup keeps the integral from running away while it is: none, clamp (stop integrating) or back_calc (bleed the excess back at rate kt). PID is linear for the Analysis drawer when n > 0.

Inputs#

Port

Type

Unit

Components

e

signal

—

—

Outputs#

Port

Type

Unit

Components

u

signal

—

—

Parameters#

Param

Type

Default

Options or unit

kp

number

1.0

—

ki

number

0.0

—

kd

number

0.0

—

n

number

0.0

rad/s

u_min

number

0.0

—

u_max

number

0.0

—

anti_windup

enum

"clamp"

none, clamp, back_calc

kt

number

1.0

—