Hi,
Consider that the range for your process variable (x) is (a, b) (where a, b can be negative or positive, but a < b). The PID toolkit requires that this is expressed as a percentage. The conversion would be:
x' = 100.0 * (x - a) / (b - a)
Here x' is the value in percentage and you should pass x' to the PID toolkit functions. The inverse conversion would be:
x = a + (x' * (b - a) / 100.0)
Hope this helps,
Mohan