Hi, Hadienggggggg

At full speed refrence it get exact speed never overshoot.I am using same PID gains used in original file.I think i must change the GAIN value to overcome this problem
EACH system has its own set of parameters ( Kp, Ki, Kd ) and you are the one and only one who can find them ...

NOW, just Google around for the " Ziegler and Nichols method " ... sure it will help you !

FURTHER ... you can disable The Ki and Kd action at startup and engage then for a maximum error of ???, you can use retrieve tables for Kp,Ki,Kd as a function of the running point, you can program a rampup for engine start ...

But that is VERY typical to YOUR project ... and far out from Henrik's project shown here ...

BTW ... MERCI Henrik ...

Alain