page 99
Function
INC_ENCODER
Library
CRxxxx.LIB
Function symbol
Purpose
Up/down counter to evaluate encoders
Parameter
Function inputs
Function outputs
Description
The function INC_ENCODER is an up/down counter up to a
limit frequency of approx. 10 kHz. Two frequency inputs form an
input pair which is evaluated via the function. A total of 4
incremental encoders can be connected.
The counter can be set to a preset value via PRESET_VALUE.
The value is accepted when PRESET is set to TRUE. PRESET
then has to be reset to FALSE so that the counter becomes
active. Output COUNTER shows the current count.
The outputs UP and DOWN show the current count direction of
the counter. The outputs are TRUE when the counter has
counted in the direction in question in the previous program
cycle. When the counter stops the directional output is reset in
the following program cycle.
Name
Data type Description
INIT
BOOL
TRUE: INC_ENCODER is initialised
FALSE: counter is active
CHANNEL
BYTE
number of the input pair (0 ... 3)
PRESET_
VALUE
WORD
preset counter value
PRESET
BOOL
TRUE:
preset value is accepted
FALSE: counter is active
Name
Data type Description
COUNTER
WORD
actual value
UP
BOOL
TRUE:
counter counts up
DOWN
BOOL
TRUE:
counter counts down
Summary of Contents for ecomat 100 R 360 Series
Page 1: ...System manual ecomat 100 type R 360 ...
Page 14: ...page 14 ...
Page 26: ...page 26 ...
Page 86: ...page 86 ...
Page 100: ...page 100 ...
Page 126: ...page 126 ...
Page 146: ...page 146 ...
Page 162: ...page 162 ...
Page 163: ...page 163 Annex 2 Wiring Annex 2 1 Type CR0015 ...
Page 164: ...page 164 Annex 2 2 Type CR0016 ...
Page 165: ...page 165 Annex 2 3 Type CR0017 ...
Page 166: ...page 166 Annex 2 4 Type CR0501 ...