![Galil Motion Control RIO-47 series
RIO-47100 Скачать руководство пользователя страница 111](http://html1.mh-extra.com/html/galil-motion-control/rio-47-series-rio-47100/rio-47-series-rio-47100_user-manual_558776111.webp)
AQ 3,3
AQ 4,3
AQ 5,3
AT0;'set initial time reference
#Calc
REM calculate resistance of RTD
r0 = (1000*@AN[0])/21
r1 = (1000*@AN[1])/21
r2 = (1000*@AN[2])/21
r3 = (1000*@AN[3])/21
r4 = (1000*@AN[4])/21
r5 = (1000*@AN[5])/21
REM calculate deg C
Tc0 = (r0-100)/0.385
Tc1 = (r1-100)/0.385
Tc2 = (r2-100)/0.385
Tc3 = (r3-100)/0.385
Tc4 = (r4-100)/ 0.385
Tc5 = (r5-100)/0.385
REM calculate deg F (not required)
Tf0 = ((9*Tc0)/5)+32
Tf1 = ((9*Tc1)/5)+32
Tf2 = ((9*Tc2)/5)+32
Tf3 = ((9*Tc3)/5)+32
Tf4 = ((9*Tc4)/5)+32
Tf5 = ((9*Tc5)/5)+32
AT-100;'wait 100 ms from last time reference
JP#Calc
This method provides a relatively accurate temperature reading with a simple and straight-forward
calculation. A limitation with this method is that it uses an idealized relationship between the
impedance of an RTD and the temperature of the RTD. In reality, the relationship between
impedance and temperature is not linear, so if higher precision is required from the temperature
reading, the following Method should be used.
Method 2
This method uses the following equations to calculate the temperature of the RTD. These equations
more accurately describe the relationship between temperature and impedance of the RTD than
Method 1.
For Tc > 0 deg C (R(t)>100)R(t) = R
0
(1 + A* Tc + B * Tc
2
)
For Tc < 0 deg C (R(t)<100)R(t) = R
0
(1 + A*Tc + B * Tc
2
+ C (Tc-100)*Tc
3
)
Where
R(t) = Resistance of RTD
R
0
= 100 Ω
A = 3.9083 * 10
-3
* deg C
-1
B = -5.775 * 10
-7
* deg C
-2
C = -4.183 * 10
-12
* deg C
-4
Below is an example program for using Method 2 that could run on the RIO-4712x or RIO-47142.
Note:
The coefficients have been modified to avoid round off errors in the calculations in the
temperature readings.
#MAIN
REM set Analog inputs 0-5 to 0-5V inputs
AQ 0,3
AQ 1,3
A1 – SCB-48206 ▫ 111 RIO-47xxx Rev 1.0r