I am trying to use a temperature sensor that outputs 1 Mv per degree. I have the sensor working on a F4-08AD Analog card on a 440 CPU. I am reading the voltage at the sensor and in data location V3000 and 3100, but the scaling seems to be off. For example at last reading the sensor was outputting 864 Mv and the reading in memory location V3100 is 80. This reading does increase and decrease with the temperature increase seen at the sensor. Would it be possible for someone to take a looka at the program below and maybe see where I went wrong?
PLC 440
// Rung 1
// Address 0
STR SP1
LDF X0 K8
BCD
LDF X34 K3
OUTX V3000
// Rung 2
// Address 7
STR SP1
LD V3000
MUL K1000
DIV K2200
OUT V3100
// Rung 3
// Address 12
END
// Rung 4
// Address 13
NOP
#BEGIN ELEMENT_DOC
"UW0","4096","",""
#END