212
ifm
System Manual
ecomat
mobile
SmartController (CR2500) V05
More functions in the ecomatmobile controller
Counter functions for frequency and period measurement
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 pair (0...3).
PRESET_VALUE
DINT
Preset value of the counter.
PRESET
BOOL
TRUE: preset value is adopted.
FALSE: counter active.
RESOLUTION
BYTE
Factor of the encoder resolution (1, 2, 4):
1 = normal resolution
2 = double resolution
4 = 4-fold resolution
All other values count as "1".
Parameters of the function outputs
Name
Data type Description
COUNTER
DINT
Current counter value.
UP
BOOL
TRUE: counter counts upwards.
FALSE: counter stands still.
DOWN
BOOL
TRUE: counter counts downwards.
FALSE: counter stands still.