S
I need to write my own PID code in ladder logic.
The PID function block only accepts integer values for the PV and SP. Same with the CV. (I know that the internal calc are done with floats)
I lose too much resolution when I scale down my raw numbers to integers. I'm planning on writing the code to support floating point inputs, calculations and outputs. Then they can be scaled down to integers if required for an analog output card. Did any one do this before? Is it available online?
Thanks
The PID function block only accepts integer values for the PV and SP. Same with the CV. (I know that the internal calc are done with floats)
I lose too much resolution when I scale down my raw numbers to integers. I'm planning on writing the code to support floating point inputs, calculations and outputs. Then they can be scaled down to integers if required for an analog output card. Did any one do this before? Is it available online?
Thanks