en:software:qview:qview_6:qcl_library:ir20ptcread

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

IR20PTCRead

D = Device(ANINP)

R = Reading functions

The IR20PTCRead function reads the temperature value for a three point PT100 differential reading mode.

IR20PTCRead (PTA_V1, PTA_V2, PTA_V3, glResistance, gbError)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN INTDEVICE
ANINP
PTA_V1 - Mnemonic nameof ANINP device used for the entry V1
IN INTDEVICE
ANINP
PTA_V2 - Mnemonic nameof ANINP device used for the entry V2
IN INTDEVICE
ANINP
PTA_V3 - Mnemonic nameof ANINP device used for the entry V3
OUT GLOBAL glResistance L It is the resistance read value expressed in hundredths of Ohm.
OUT GLOBAL gbError B Variable containing the error code:
0 = no error
3 = disconnected input

Once invoked the function if there are any errors the error variable having the following values:
0 - No errors
3 - Disconnected input

Example

...
 
 
 
; PT100 resistance reading
 
IR20PTCRead (PTA_V1, PTA_V2, PTA_V3, resistance, gbError)
 
...

Note

  • The function initializes some parameters related to 3 ANINP devices passed to the function, as follows:
	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
  • Last modified: 2019/08/29 17:01