en:software:qview:qview_6:qcl_library:ir11ptcread

Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:ir11ptcread [2017/03/23 17:20] – created qem103en:software:qview:qview_6:qcl_library:ir11ptcread [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== IR11PTCRead ======
 +
 +**D =** //Device(ANINP)//
 +
 +**R =** //Reading functions//
 +
 +The IR11PTCRead function __reads the temperature value for a three-point PT100 supported by a card type L1TP0__.
 +
 +===== IMPLEMENTATION =====
 +
 +**IR11PTCRead (PTA_V1, PTA_V2, PTA_V3, glResistance, gbError)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  INTDEVICE\\ ANINP  |  PTA_V1  |  -  |Mnemonic nema of ANINP device used for the entry V1|
 +|  IN  |  INTDEVICE\\ ANINP  |  PTA_V2  |  -  |Mnemonic nema of ANINP device used for the entry V2|
 +|  IN  |  INTDEVICE\\ ANINP  |  PTA_V3  |  -  |Mnemonic nema of ANINP device used for the entry V3|
 +|  OUT  |  GLOBAL  |  glResistance  |  L  |It is expressed in hundredths of bed resistance Ohm.|
 +|  OUT  |  GLOBAL  |  gbError  |  B  | Variable containing the error code:\\ 0 = no error\\ 1 = underflow\\ 3 = disconnected input|
 +
 +==== Error ====
 +
 +Once invoked the function if there are any errors the error variable having the following values:\\
 +0 - No errors\\
 +1 - underflow\\
 +3 - Disconnected input
 +
 +=== Example ===
 +
 +<code QCL>
 +...
 +
 +
 +; PT100 resistance reading
 +
 +IR11PTCRead (PTA_V1, PTA_V2, PTA_V3, resistor, gbError)
 +
 +...
 +</code>
 +
 +=== Note ===
 +
 +  * The function initializes some parameters related to 3 ANINP device passed to the function, as follows:
 +<code QCL>
 + PTA_V1:offset  = 0
 + PTA_V1:scaleA  = 1
 + PTA_V1:scaleB  = 1
 + PTA_V1:scaleC  = 0
 + PTA_V2:offset  = 0
 + PTA_V2:scaleA  = 1
 + PTA_V2:scaleB  = 1
 + PTA_V2:scaleC  = 0
 + PTA_V3:offset  = 0
 + PTA_V3:scaleA  = 1
 + PTA_V3:scaleB  = 1
 + PTA_V3:scaleC  = 0
 +</code>
 +
 +=== CHANGES FROM PREVIOUS RELEASES ===
 +
 +Changes from 10 to 11: Changed the threshold to define that the sensor is disconnected. Also added an internal timer fixed verification in 5 sec. to define that the sensor is disconnected.