
Function library LenzeIOSystem.lib
Appendix
6.5 Selecting the counter modes EPM−T410
6−11
L
LenzeIOSystem.lib EN 1.7
Mode Compare
Load
Auto
Reload
OUT1OUT0IN6IN5IN4IN3IN2IN1Function
[hex]
Compare
Load
Auto
Reload
OUT1OUT0IN6IN5IN4IN3IN2IN1Function
[dec]
1D
h
29 Encoder 2 edges G/RESû A B G/RESû A B · · – –
1E
h
30 Encoder 4 edges G/RESû A B G/RESû A B · · – –
2 counters 0 1
1F
h
31 2 × 32 bit counters (counting direction
downwards)
RESû CLK GATE RESû CLK GATE · · – ü
20
h
32 2 × 32 bit counters (counting direction
downwards)
RESû CLK GATE RESû CLK GATE · · – ü
21
h
33 2 × 32 bit counters (counting direction
downwards)
RESû CLK GATE RESû CLK GATE · · ü ü
22
h
34 2 × 32 bit counters (counting direction
downwards)
RESû CLK GATE RESû CLK GATE · · ü ü
· Digital output may signal an event.
ü Function available.
– No function / function not available.
A Encoder signal A
Auto Reload Auto Reload causes the counter to accept a preset value as soon
as the counter reading matches the Compare register content.
B Encoder signal B
Compare Load You may use Compare Load to specify a counter limit value to
trigger an output or to restart the counters via Auto Reload when it
is reached.
CLK Clock signal of a linked encoder
HIGH: Starts or stops the counting
DIR Indicates counting direction depending on signal level.
LOW: Upcounter
HIGH: Downcounter
GATE Gate signal level−triggered
HIGH: Pulses are measured
G/RESû Gate signal level−triggered and reset signal edge−triggered
HIGH: Pulses are measured
LOW−HIGH edge: Resets one or both counter(s)
PULSE The pulse width of the supplied signal is measured with an internal
time base
RES Reset signal level−triggered
HIGH: Resets one or both counter(s)
RESû Reset signal edge−triggered
LOW−HIGH edge: Resets one or both counter(s)
START Start signal edge−triggered
STOP Stop signal edge−triggered
Kommentare zu diesen Handbüchern