F
3-
-0
8T
E
M
P
8
C
h.
Te
m
pe
ra
tu
re
In
pu
t
10--14
F3--08TEMP 8-Channel Temperature Input
The example below shows how to read an Analog Devices AD590 temperature
transducer on an F3--08TEMP Temperature Input module in the X0 address of the
D3--XX--1 Base.
_FirstScan
LD
K2732
This loads the offset for Celcus conversion, which
is 273.2 degrees.
SP0
OUT
This stores the offset in V1401.
V1401
LD
K4096
This loads the scaling factor, 4096.
OUT
This stores the scaling factor in V1402.
V1402
_On
LDF
K12
This loads the first twelve bits.
SP1
BCD
This converts to BCD.
DIV
V1402
This scales the value for Celsius.
SHFL
This shifts the BCD value 16 bits to the left. This is
the equivalent of multiplying by 1000.
K16
X0
SUB
This subtracts the offset for Celsius.
V1401
_On
OUT
V1400
This stores the 12 Bit Analog Data in V1400.
SP1
LD
Loads a Zero into the accumulator.
DIV
V1402
This scales the value for Celsius.
SUB
Subtracts the value in V1400 from zero, resulting
in a negative number.
V1400
Sets control relay C0.
SP64
Convert from
Kelvin to Celsius
Check for “Borrow” or Negative
K0
SET
C0
Reading
Temperatures on a
DL350 with a
D3--XX--1 Base