ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Counter functions for frequency and period measurement
207
Parameters of the function inputs
Name
Data type Description
INIT
BOOL
TRUE (only 1 cycle):
function
initialised
FALSE: during cyclical processing of the program
CHANNEL
BYTE
Number of the input (0...x value depending on the device)
PERIODS
BYTE
Number of periods to be compared
NOTE
The function may provide wrong values before initialisation. Do not evaluate the output before the
function has been initialised.
We urgently recommend to initialise all required instances of this function at the same time. Otherwise,
wrong values may be provided.
Parameters of the function outputs
Name
Data type Description
C DWORD
Cycle time of the detected periods in [
μ
s].
F
REAL
Frequency of the detected periods in [Hz].
ET
TIME
Time elapsed since the beginning of the last change in state of
the input signal (can be used for very slow signals).
RATIO1000
WORD
mark-to-space ratio in [‰].