titoyabril
Member
I am seeting up a temperature controller using PID. I have a steam valve and a cooling valve.
I set up the PID output to be Bipolar (-4095 to +4095).
The analog cards are both setup for unipolar 0-4095 input.
i would like to control the cooling valve with a 0 to 4095 signal, and the steam valve with a 0 to -4095 signal (of course i can't use the negative number.)
The output of the PID is in binary, and the analog cards take bcd.
How do i invert the negative binary number, to a positive bcd number.
The question i am proposing is as to how i can control the 2 valves with 1 PID Output.
By the way, i am using a DL260 cpu and directsoft 5
I set up the PID output to be Bipolar (-4095 to +4095).
The analog cards are both setup for unipolar 0-4095 input.
i would like to control the cooling valve with a 0 to 4095 signal, and the steam valve with a 0 to -4095 signal (of course i can't use the negative number.)
The output of the PID is in binary, and the analog cards take bcd.
How do i invert the negative binary number, to a positive bcd number.
The question i am proposing is as to how i can control the 2 valves with 1 PID Output.
By the way, i am using a DL260 cpu and directsoft 5