Hi there,
I start to learn to use proview. The possibilities of the soft plc part of proview seems to be very wide. But it seems there is a trouble with the PID object: I think there is a bug in the derivative calculation because it acts on a negative way on a positive setpoint step. I have take a look at the source file \"rt_plc_pid.c\" and it seems there is an error in the derivative filter calculation, this line is:
object->FiltDer += (ddiff - derold) *
object->DerGain * *object->ScanTime; /* Filter */
Unfortunately, I have no time now to try to correct this and (learn to) rebuild proview.
Take a look at the joined pdf, it is the part concerning derivative I wrote for my students in process control for explain how to create a PID corrector in C++
Attachment PID_Numerique_16012011_partD.gz not found
from z transform.
(sorry it's in french)
Proview is amazing !
Thank you for your work.
Post edited by: brunad, at: 2011/01/17 18:06