Chapter 13 Device Logic (Pawn)
native UI_SetSampleRate(samplerate);
Sets the sample rate for the measurement value acquisition at the universal inputs. The specified
setting is always valid for all of the universal inputs. Special settings for individual universal inputs are
not possible. The default value of the sample rate is 16Hz (62,5ms) . Detailed information on the
universal inputs is provided in chapter "Technical details about the universal inputs" on page 65.
Note:
The energy consumption increases when the sample rate is increased.
Note:
The selected option also influences the possible value range for the pulse duration of the
isolated switch contact in "pulse/min." mode.
Parameter
Explanation
samplerate
Sample rate in [Hz]
Note:
Only the constants specified in "Sample rate in [Hz] for the
measurement" in chapter "Constants" on page 194are permissible for this
parameter.
Explanation
Return value
l
OK, if successful
l
ERROR, if an invalid parameter was transferred
Note:
The sample rate for the universal inputs operated in "Counter", "Frequency" or "PWM" modes is
not relevant. You can use the lowest possible value for the sample rate, if you operate all of the universal
inputs in these modes and do not operate the isolated switch contact in "pulse/min." mode.
native UI_ResetCounter(channel);
Resets the counter reading of an universal input that is being operated in "Counter" mode. If no error
occurred during this process, the function returns the counter reading value before resetting the
counter. Detailed information on the universal inputs is provided in chapter "Technical details about the
universal inputs" on page 65.
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).
Explanation
Return value
l
Counter reading before the reset
l
ERROR, if an invalid parameter was transferred
Rev. 05
197
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: ......