Chapter 13 Device Logic (Pawn)
13.2.17.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 65.
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 138).
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 V3 )
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 118).
Rev. 05
195
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......