
Chapter 12 Device Logic (Pawn)
12.3.4.3 Functions
native Temp_Init(temp, mode);
The temperature is only measured once after this function is called if single conversion mode has been
activated (mode = TEMP_MODE_SINGLE_CONV). The measurement value can be read out by the
"Temp_GetValue" function until the PT100/1000 interface is closed by the "Temp_Close" function.
The temperature is measured at 320ms intervals after this function is called if continuous conversion
mode has been activated (mode = TEMP_MODE_CONT_CONV). The "Temp_GetValue" function
always supplies the last valid temperature value until the PT100/1000 interface is closed by the "Temp_
Close" function.
Parameter
Explanation
temp
Number of the PT100/1000 interface; is always 0 for the
myDatalogEASY IoTmini
mode
TEMP_MODE_SINGLE_
CONV :
The temperature is only measured once after
the "Temp_Init" function is called.
TEMP_MODE_CONT_CONV : The temperature is measured continuously at
320ms intervals after the "Temp_Init" function
is called.
Explanation
Return value
l
Time in [ms] required to measure the temperature
l
ERROR_FEATURE_LOCKED, if the specified interface on the device is
not released
l
ERROR, if an invalid parameter was transferred
Note:
The energy consumption in continuous conversion mode is significantly higher than in single
conversion mode. The lowest level of energy consumption is only achieved once the PT100/1000
interface is closed via the "Temp_Close" function. This means that even if the PT100/1000 interface
was initialised in single conversion mode, it should be closed as soon as the measurement value is read
out.
native Temp_Close(temp);
Closes the PT100/1000 interface. This switches the temperature module to the mode with the lowest
energy consumption.
Parameter
Explanation
temp
Number of the PT100/1000 interface; is always 0 on the
myDatalogEASY IoTmini
Explanation
Return value
l
OK, if successful
l
ERROR_FEATURE_LOCKED, if the specified interface on the device is
not released
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
Rev. 01
97
Содержание myDatalogEASY IoTmini
Страница 2: ......
Страница 11: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 01 11 ...
Страница 12: ......
Страница 34: ......
Страница 66: ......
Страница 78: ......
Страница 82: ......
Страница 186: ......
Страница 194: ......
Страница 196: ......
Страница 202: ......
Страница 205: ...Chapter 19 Document history Chapter 19 Document history Rev Date Changes 01 28 08 2020 First version Rev 01 205 ...
Страница 206: ......
Страница 208: ......