X20 system modules • Digital input modules • X20DI2377
954
X20 system User's Manual 3.10
4.13.4.9.5 Counter operation
The following operation modes can be selected:
•
Event counter mode
•
Event counter mode with software (processed after the input filter)
•
Gate measurement
Event counter mode
The rising (positive) edges are registered on the counter input.
The counter state is registered with a fixed offset with respect to the network cycle and transferred in the same cycle.
Event counter mode with software
The rising (positive) edges are registered on the counter input. But the edges are first processed through the
configured software filter.
The counter state is registered with a fixed offset with respect to the network cycle and transferred in the same cycle.
Gate measurement
The time of rising to falling edges for the gate input is registered using an internal frequency. The result is checked
for overflow (0xFFFF) and corrected with the adjustable prescaler.
The recovery time between measurements must be >100 µs.
The measurement result is transferred with the falling edge to the result memory.
Information:
Only one of the counter channels at a time can be used for gate measurement.
4.13.4.9.5.1 Event or gate counter
Name:
Counter01 to Counter02
This register displays the results of the individual counters.
Event counter or gate measurement (16-bit counter value) depending on operating mode.
Data type
Value
USINT
Counter value
4.13.4.9.5.2 Counter configuration
Name:
ConfigOutput02 to ConfigOutput03
The individual counters can be configured in this register.
Data type
Value
USINT
See bit structure.
Bit structure:
Bit
Name
Value
Information
0
48MHz (only with gate measurement)
1
3MHz (only with gate measurement)
1
Event counter mode
with software (only with event counter
measurement)
2
187.5kHz (only with gate measurement)
3
24MHz (only with gate measurement)
4
12MHz (only with gate measurement)
5
6MHz (only with gate measurement)
6
1.5MHz (only with gate measurement)
7
750kHz (only with gate measurement)
0 - 3
Counter frequency
8
375kHz (only with gate measurement)
4
Reserved
0
0
No influence on the counter
5
ResetCounter01 or ResetCounter02
1
Clear counter (at positive edge)
0
Event counter measurement
6 - 7
1
Gate measurement
Summary of Contents for X20 System
Page 2: ......