Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:vc10ptc100 [2017/03/23 18:00] – created qem103 | en: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 Ω< | ||
+ | Output range : from -20028 °C< | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC10PTC100 (glResistenza, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== 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, | ||
+ | |||
+ | ... | ||
+ | |||
+ | ; Temperature conversion | ||
+ | |||
+ | VC10PTC100 (glResistenza, | ||
+ | |||
+ | ... | ||
+ | |||
+ | gradi = glTemperat / 100 ; | ||
+ | |||
+ | ... | ||
+ | </ | ||