167
ifm
Programming Manual BasicController relay CR0431 v03.03.00
05 / 2018
ifm function elements
ifm function elements for the device CR0431
INC_ENCODER
8134
= Incremental Encoder
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0431_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
8135
INC_ENCODER handles up/down counter functions for the evaluation of encoders.
Two frequency inputs form the input pair which is evaluated by means of the FB.
Permissible limit frequency = 0...1 000 Hz
Via PRESET_VALUE the counter can be set to a preset value. The value is adopted if PRESET is set
to TRUE. Afterwards, PRESET must be set to FALSE again for the counter to become active again.
The current counter value is available at the output VALUE. The outputs UP and DOWN indicate the
last counting direction of the counter. The outputs are TRUE if the counter has counted in the
corresponding direction. If the counter was not changed since the last call of the FB, both the outputs
are FLASE.
On input RESOLUTION the resolution of the encoder can be evaluated in multiples:
1 = normal resolution (-536 870 912...536 870 911, identical with the resolution of the encoder),
2 = double evaluation of the resolution (-1 073 741 824...1 073 741 823),
4 = 4-fold evaluation of the resolution (-2 147 483 648...2 147 483 647).
All other values on this input mean normal resolution.
RESOLUTION = 1
counts for every fourth edge
(= resolution of the encoder).
RESOLUTION = 2
counts for every second edge
RESOLUTION = 4
counts for every rising and falling edge
Summary of Contents for ioControl CR2050
Page 228: ...228 10 Notizen Notes Notes ...