Just coding my first PID loop on the DM.
It is always running either in Manual mode or in Auto mode. correct?
I have the PID in our "Dosing" program. I am using C bits to turn from manual to Auto, but when it goes to manual mode, I really want it to be "Off".
Currently, I handle this by writing zeros to the PV, SP, and Output variables when in Manual/Off mode.
Is this the best approach?
Essentially, I only want the PID on when water is flowing in the pipe (I have a flow switch) and the PID controls a chemical injection pump. I just have to make sure that when there is now flow in the mainline that the PID STOPS and stops the pump. I am using and EDRV100 and a GS2 to control the pump.
When flow stops, I write 0's to the RS485 speed ref, PID PV, SP, and Output variables...
Am I approaching this all wrong? Or am I on the right path?
It does make logging the PID a little wonky with me manually writing these values...