
12.3.15.2 Functions
native UI_Init(channel, mode, filtertime);
Initialises an universal input (UI 1 - UI 4 ). The sample rate for acquiring the measurement value is
configured by the "UI_SetSampleRate" function. Calling up the "UI_SetSampleRate" function is only
necessary, if the default sample rate setting of 16Hz (62,5ms) is not suitable for your application.
Detailed information on the universal inputs is provided in chapter "Technical details about the universal
inputs" on page 55.
Note:
The energy consumption increases with each universal input that is initialised.
Parameter
Explanation
channel
Number of the universal input, starting with 0 for UI 1
Note:
You can also use the predefined constants for this parameter (see
"Numbers of the universal inputs" in the chapter "System" on page 95).
mode
Selection of the mode for the universal input
UI_CHT_SI_NONE :
Universal input deactivated
UI_CHT_SI_DIGITAL
:
Digital: max. 32V, low <0,99V, high >2,31V, load
10k086
UI_CHT_SI_DCTR :
Counter: min. pulse length 1ms, load 10k086
UI_CHT_SI_DFREQ : Frequency: 1...1000Hz, 10k086
UI_CHT_SI_DPWM :
PWM: 1...99%, max. 100Hz, min. pulse length 1ms,
load 10k086
UI_CHT_SI_A020MA
:
0/4...20mA: Resolution 6,3µA, max. 23,96mA, load 96Ω
UI_CHT_SI_A002V :
0...2V: Resolution 610µV, max. 2,5V, load 10k086
UI_CHT_SI_A010V :
0...10V: Resolution 7,97mV, max. 32V, load 4k7
UI_CHT_SI_DIRECT
:
Direct (corresponds to 0...2V mode on the
myDatalogEASY IoTmini )
filtertime
"Digital", "Counter", "Frequency" and "PWM" modes:
Time in [ms] during which the signal must remain constant to initiate a level
change. Used to suppress brief faults (debouncing).
"0/4...20mA", "0...2V", "0...10V" and "direct" modes:
Time in [ms] during which the analogue signal is averaged for signal smoothing.
Used to suppress signal noise.
Explanation
Return value
l
OK, if successful
l
ERROR_NOT_SUPPORTED, if the selected mode is not supported by
this universal input
l
< OK, if another error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 84).
146
Rev. 01
Содержание 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: ......