Update: I've managed to better tune my system by using Pgain=1, Igain=1, Dgain=0.5, maxoutput=1500 . The spindle doesn't overshoot too much and it oscillates down to the commanded RPM within 2 seconds. Update: I haven't done this yet, but setting FF0=1 will enable you to not have to use the sum2 component since the commanded RPM will be automatically added into the output of the PID, but you will have to adjust the maxoutput to your real maxoutput, not the max amount of error allowed. |