|
Calling Sequence
|
|
ZNFreq(Ku, Tu, opts)
|
|
Parameters
|
|
Ku
|
-
|
algebraic or positive realcons; system ultimate gain
|
Tu
|
-
|
algebraic or positive realcons; system ultimate period
|
opts
|
-
|
(optional) equation(s) of the form option = value; specify options for the ZNFreq command
|
|
|
|
|
Options
|
|
|
Specifies the tuning method. ZN uses the standard Ziegler-Nichols frequency response tuning method. TL uses the Tyreus-Luyben tuning method, a modified version of the standard Ziegler-Nichols frequency response tuning method generally resulting in higher closed-loop damping coefficient. The default value is ZN.
|
•
|
controller = P, PI or PID
|
|
Specifies the controller type. The default value is PID.
|
•
|
factored = true or false
|
|
True means return the factored version of the controller gains (, , ). False means return the controller gains (, , ). The default is false.
|
•
|
returntype = list or record or system
|
|
Specifies the returned type. If list (or record) is specified, a list (or record) containing the controller parameters is returned. If system is specified, a System (DynamicSystems system object) containing the transfer function of the specified controller type (P, PI, PID) is returned. The default value is list.
|
|
|
Description
|
|
•
|
The ZNFreq command calculates the controller gains based on the Ziegler-Nichols frequency domain (closed-loop) tuning methods, using the given ultimate gain and period. The design criterion is the quarter amplitude decay ratio in response to load disturbances, i.e. the second overshoot in the step response is a quarter of the first overshoot.
|
•
|
The ultimate gain is the smallest positive gain for which the closed-loop system under unity negative feedback becomes oscillatory (marginally stable) and the ultimate period is the period of the corresponding oscillations. See ControlDesign[ParameterIdentify][FrequencyDomain] for details.
|
•
|
The ZNFreq command returns a list of controller gains , and according to the selected controller type P, PI or PID, respectively, where is the proportional gain, is the integral gain, and is the derivative gain.
|
•
|
The controller transfer function is then obtained as:
|
|
|
Examples
|
|
>
|
|
>
|
|
|
Example: Numeric system
|
|
>
|
|
•
|
Identify the parameters [, ] of sys
|
>
|
|
| (1) |
•
|
Calculate the controller parameters using the ZN (default) method
|
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
•
|
Calculate the controller parameters using the TL method
|
>
|
|
>
|
|
| (6) |
>
|
|
| (7) |
•
|
Return a DynamicSystems system object of the controller transfer function
|
>
|
|
| (8) |
>
|
|
| (9) |
|
|
Example: Symbolic system
|
|
>
|
|
•
|
Identify the parameters [, ] of sys2
|
>
|
|
| (10) |
•
|
Calculate the controller parameters using the ZN (default) method
|
>
|
|
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
•
|
Calculate the controller parameters using the TL method
|
>
|
|
| (15) |
>
|
|
| (16) |
>
|
|
| (17) |
>
|
|
| (18) |
|
|
|
References
|
|
|
[1] K. J. Astrom and T. Hagglund, Advanced PID Control, ISA, 2006.
|
|
[2] T. K. Kiong, W. Quing-Guo, H. C. Chieh and T. Hagglund, Advances in PID Control, Springer, 1999.
|
|
|
|