en:software:qview:qview_6:qcl_library:vc10ptc100

This translation is older than the original page and might be outdated. See what has changed.

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

VC10PTC100 (glResistenza, glTemperat, gbError)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
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

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
 
...
  • Last modified: 2019/08/29 17:01