Having problems with this simple equation in Logic5000. Trying to convert 4-20mA input to its eng. equivalent. I am using 1769-IF8 input module with a L35E processor. The scaling is set to be 4mA=4000 and 20mA=20000. This is what I have been trying to write....
Let X equal real Analog input, lets assume 12000 for ease of calculation.
Let URV (Upper Range Value of process) equal 2700 ft^3
((X-4000)/16000)*URV
Result in the destination should be
((12000-4000)/16000)*2700=1350
1350 should now be shifted in the dest. tag, but it do not change, it remains at zero
If I simplify my equation by removing the -4000 it works. How should I enter the equation?
Let X equal real Analog input, lets assume 12000 for ease of calculation.
Let URV (Upper Range Value of process) equal 2700 ft^3
((X-4000)/16000)*URV
Result in the destination should be
((12000-4000)/16000)*2700=1350
1350 should now be shifted in the dest. tag, but it do not change, it remains at zero
If I simplify my equation by removing the -4000 it works. How should I enter the equation?