Programmer (HHP) User guide
Appendix F
Optional
Analog Input Software Calibration
F–3
Once the calibration procedure is complete, set the CONVERSION
ENABLE bit to 1. The calibration numbers are then used to scale the raw
analog data. The corrected analog input data is placed in memory location
ANALOG_SCALED.
The following symbols are used in this example:
CAL_LO_ENABLE = B3/500
CAL_HI_ENABLE = B3/501
CALIBRATE = B3/502
CONVERSION ENABLE = B3/503
ANALOG_IN = I:0.4
LO_CAL_VALUE = N7:90
HI_CAL_VALUE = N7:91
CAL_SPAN = N7:92
SCALE_HI = N7:93
SCALE_LOW = N7:94
SCALE_SPAN = N7:95
SLOPE_X10K = N7:97
OFFSET = N7:100
ANALOG_SCALED = N7:101