IR10CJRead
D = Device(ANINP)
R = Reading functions
The IR10CJRead function reads the temperature value relative to the reference point of a card that supports type “thermocouple” inputs.
IMPLEMENTATION
IR10CJRead (COLD, gbCardType, glDCelsius, gbError)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | INTDEVICE ANINP | COLD | - | Mnemonic name of ANINP device used for COLDJ input |
IN | GLOBAL | gbCardType | B | Variable that indicates the card type from which to read: 0= L1TT0 1= H1TT0 |
OUT | GLOBAL | glDCelsius | L | It's the read temperature value expressed in tenths of a degree Celsius. |
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 - GbCardType defined card not supported
Example
... ; Cold-junction reading card_type = 0 ; using of L1TT0 card IR10CJRead (COLD, gbCardType, glDCelsius, gbError) ...
Note
The function initializes the scaling parameters of the ANINP device passed to the function, as follows mode:
COLD:scaleA = 1 COLD:scaleB = 1 COLD:scaleC = 0