118
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
ifmFastInput.library
>
10.4.2
IncEncoder
23298
Function block type:
Function block (FB)
Library:
ifmIFastInput.library
Symbol in CODESYS:
>
Description
23299
The FB is used to configure and to operate a digital input pair to record and count incremental encoder
pulses.
Two frequency inputs constitute the input pair (channel A and channel B) that is configured and
evaluated via the FB.
Behaviour at the counter limits
If the applicable value range is exceeded, the output switches to the minimum value of the applicable
area. (= overflow)
If the applicable value range is not reached, output switches to the maximum value of the applicable
area. (= outside range)
>
Input parameter
23300
Parameters
Data type
Description
Possible values
xResetError
BOOL
Reset request for an occurring error
FALSE
When switching from FALSE
TRUE: Reset request to the
lower level system
TRUE
uiChannel
UINT
1. Input channel (channel A) of the pair
of input channels
Group + channel
→ Data sheet
→
Note on wiring
(
→ p.
Examples:
703
Group 7 + channel 3
1203
Group 12 + channel 3
eMode
MODE_INC_
ENCODER
Operating mode of the input channel
→
MODE_INC_ENCODER (ENUM)
(
eResolution
ENCODER_
RESOLUTION
Resolution / encoder mode
→
ENCODER_RESOLUTION (ENUM)
(
→ p.
diPresetValue
DINT
Preset counter value
-2 147 483 648...2 147 483 647
xPreset
BOOL
Changeover switch: counter function
active / adopt preset counter value
FALSE
counter active; the number of
counted pulses is issued to
udiValue.
TRUE
The preset counter value is
adopted;
udiValue = udiPresetValue