en:software:qview:qview_6:qcl_library:vc10ptc100

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:vc10ptc100 [2017/03/23 18:00] – created qem103en:software:qview:qview_6:qcl_library:vc10ptc100 [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 Ω<sup>-2</sup> to 39060 Ω<sup>-2</sup>\\
 +Output range : from -20028 °C<sup>-2</sup> to 85041 °C<sup>-2</sup>
 +
 +===== 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
 +
 +<code QCL>
 +...
 +
 +
 +; 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
 +
 +...
 +</code>