VC10PTC100
The VC10PTC100 function Converts a value of resistance, expressed in hundredths of Ohm, the corresponding temperature value, expressed in hundredths of a Celsius degree, connectet with a PT100.
Input range : from 1840 Ω-2 to 39060 Ω-2
Output range : from -20028 °C-2 to 85041 °C-2
IMPLEMENTATION
VC10PTC100 (glResistenza, glTemperat, gbError)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | GLOBAL | glResistenza | L | It is the resistance value to be converted in hundredths of Ohms. |
OUT | GLOBAL | glTemperat | L | It is the converted temperature value expressed in tenths of a Celsiu degrees. |
OUT | GLOBAL | gbError | B | Variable containing the error code |
Error
Once invoked the function if there are any errors the error variable having the following values:
0 - No error
1 - Value less than the minimum
2 - Value higher than the maximum
3 - Value indicating input disconnected
Example
... ; PT100 resistance reading IR10PTCRead (PTA_V1, PTA_V2, PTA_V3, glResistenza, error) ... ; Temperature conversion VC10PTC100 (glResistenza, glTemperat, gbError) ... gradi = glTemperat / 100 ;Temperature in Celsius degrees ...