Pamux User’s Guide
C-1
TEMPERATURE
CONVERSION ROUTINES
TEMPERATURE
CONVERSION ROUTINES
OVERVIEW
Readings from analog input modules are returned as raw counts, nominally in the range of 0–4095.
To convert this data to temperatures in degrees C, the algorithms in this appendix must be used. To
accommodate the non-linearity of the temperature devices, some of these algorithms require various
coefficients.
Throughout these algorithms, VALUE% is a decimal number representing the value read from the
module. Value is:
•
less than 0 when the module is below zero scale;
•
equal to 0 when the module is at zero scale;
•
equal to 4095 when the module is at full scale;
•
greater than 4095 when the module is above full scale.
The data returned from a direct reading of an analog input will include an offset of 4096 to
accommodate over- and under-range indications. If you are using the Pamux driver, this offset is
subtracted automatically. If you are not using the driver, you must first subtract 4096 before using the
reading in an algorithm.
For example, if a B6 reads the data from an analog input as 4110, VALUE% is 4110 - 4096 = 14,
indicating the input is slightly above zero scale. If the B6 reads the data as 4082, VALUE% is 4082 -
4096 = -12, indicating the input is slightly below zero scale.
Summary of Contents for PAMUX
Page 10: ...TABLE OF CONTENTS x Pamux User s Guide...
Page 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...
Page 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...
Page 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...
Page 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...
Page 135: ...SPECIFICATIONS B 10 Pamux User s Guide...
Page 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...
Page 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...
Page 149: ...GLOSSARY E 6 Pamux User s Guide...