pid: Proportional-Integral-Derivative (PID) Controller

Description Usage Arguments Details Value Examples

Description

pid Parallel form of the model of a PID controller

Usage

1
pid(p, i, d)

Arguments

p

Proportional gain. A real and finite value.

i

Integral gain. A real and finite value. set this to zero for PD and P-control

d

Derivative gain. A real and finite value. set this to zero for PI and P-control

Details

pid creates the transfer function model for a PID, PI, PD, and P-controller.

Value

Returns a transfer function model for the PID, PI, PD or P-controller.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
C <- pid(350,300,50) # PID-control
P <- TF(" 1/(s^2 + 10* s + 20)")
T <- feedback(TF("C*P"), 1)
stepplot(T, seq(0,2,0.01))

C <- pid(300,0,0) # P-control
T <- feedback(TF("C*P"), 1)
stepplot(T, seq(0,2,0.01))

C <- pid(30,70,0) # PI-control
T <- feedback(TF("C*P"), 1)
stepplot(T, seq(0,2,0.01))

C <- pid(300,0,10) # PD-control
T <- feedback(TF("C*P"), 1)
stepplot(T, seq(0,2,0.01))

control documentation built on May 1, 2019, 7:33 p.m.