ZN is old school. I use a technique called pole placement. You can see it works well if you know the actuator or plant model. One can see the differences in the response in the sine wave .pdf. If I really wanted to follow the sine waves I would use feed forwards too. I just wanted to show how the different PID act on their own in response to a sine wave at the same frequency as the actuator ( we are talking motion control ) corner frequency.
I wanted a critically damped response so I place the 3 poles of the closed loop characteristic equation at -lambda.
I have formulas all worked out so I can calculate the gains given I know the actuator parameters. I chose a simple actuator for these examples. A simple hydraulic actuator model should have a gain, natural frequency and damping factor.
Note the Bode plots. I-PD has the lowest bandwidth, PI-D is next and PID has the highest band width an therefore does the best job of following the sine wave.
ftp://ftp.deltacompsys.com/public/NG/Mathcad%20-%20t1p1%20pid%20comparison%20sine.pdf
I used an integrator anti-wind up technique that works very well. I couldn't get the PID, or PI-D to over shoot in the step example although they will in some cases. The I-PD will not.
ftp://ftp.deltacompsys.com/public/NG/Mathcad%20-%20t1p1%20pid%20comparison%20step.pdf
In addition to the three forms of PID I have shown there is also the velocity or incremental form of PID which I haven't shown. The trick is to know what PID to use for what application. I use the full PID when following a motion profile but I like to use the I-PD otherwise. I like the I-PD when following a joy stick or as an inner loop PID because the target or reference is not smooth. This will cause the output to jump around because the reference noise is feed into the proportional and especially the derivative terms. This high frequency output noise will excite higher order and unmodeled 'features' that will ruin the response. Ideally one wants to keep the control output smooth. This is why higher resolution feedback is important.
There are other forms called two degree of freedom where the Kp and Kd gain in the forward path are not the same as in the feed back path. This can result in an extend bandwidth without having the actual position over shoot the target as in the sine wave example.
Peter Nachtwey