AH500 Module Manual
5-42
5.2.7 Functions
1
Enabling/Disabling
a channel
1. Users can enable or disable a channel.
2. If a channel is disabled, the total conversion time is
decreased.
2 Temperature unit
Users can select the degree Celsius (°C) or the degree
Fahrenheit (°F) as a unit of measurement for temperature.
3 Calibration Users can calibrate a linear curve.
Conversion values are averaged and filtered.
5
detection
When a sensor is disconnected, AH08PTG-5A gives an alarm
or a warning.
6 Channel detection
If an input signal exceeds a range of inputs which can be
received by hardware, the module will give an alarm or a
warning.
a. Warning LED indicator: When a warning occurs, the ERROR
LED indicator blinks or does not blink.
b. Interrupt: An interrupt service routine is enabled.
7 PID control
An object can be maintained at a desired temperature through
a PID control action.
1. Enabling/Disabling a channel
The channels in AH08PTG-5A in a general mode are not disabled. The efficiency of the module is
increased, and a feedback is given to a disconnection detection message.
2. Temperature unit
Users can select the degree Celsius (°C) or the degree Fahrenheit (°F) as a unit of measurement
for temperature.
3. Calibration
To make a curve meet actual needs, users can calibrate the curve by changing an offset and
a gain. A calibration range depends on a range of inputs which can be received by hardware.
The range of offsets used for calibration is -1.0~1.0, and the range of gains used for
calibration is 0.9~1.1.
Example 1:
The temperatures -100℃~ 100℃ correspond to the digital values -100~100. The original signals are
used. The gain is 1, and the offset is 0. The temperature received by the channel is 0℃, and the
digital value is -1. The temperature received by the channel is 100℃, and the digital value is 99.
Users can calibrate the channel by calibrating the gain and the offset.
The users can get the gain for the calibration by means of the equations below.
Gain=(Y2-Y1)/(X2-X1)=[99-(-1)]/(100-0)=1
Gain used for calibration=1/Gain=1/1=1
The users can get the offset for the calibration by means of the equations below.
Offset=Y1=-1
Offset used for calibration=1-Y1=1