X90 mobile modules
124
X90 mobile system User's manual V 1.20 - Translation of the original manual
5.2.2.12.7 Counter functions
High-speed digital inputs 1 to 8 can be used for counter functions. This function does not use the digital input
filter. 4 counter units in 2 groups are available, with the DF and ABR counter accounting for 2 units. The following
functions are available.
•
Event counter
•
AB incremental counter
•
DF counter function
•
ABR counter function
A latch function is also available for counters 1 and 3.
5.2.2.12.7.1 Counter functions - Mode settings
Name:
cfgCounterModeUnit01 to cfgCounterModeUnit04
The following counter functions can be configured:
Data type
Values
USINT
See the bit structure.
Bit structure:
Values
Information
0
Disabled
1
Edge counter of channel 1, 3, 5 or 7
2
Edge counter of channel 2, 4, 6 or 8
3
AB counter on channel 1, 3, 5 or 7
4
DF counter on channel 1 or 5
5
ABR counter on channel 1 or 5
Note:
An ABR or DF counter can only be configured on channel 1 (cfgCounterModeUnit01) or channel 5
(cfgCounterModeUnit03).
If an ABR or DF counter has been configured on channel 1 (cfgCounterModeUnit01) or channel 5 (cfg-
CounterModeUnit03), then the following channel (cfgCounterModeUnit02 or cfgCounterModeUnit04)
can no longer be used.
Chan-
nel
Event counter
AB incremental counter
DF counter function
ABR counter function
1
cfgCounterModeUnit01 = 1
A
D
1)
A
2
x
cfgCounterModeUnit01 = 2
B
cfgCounterModeUnit01 = 3
F
2)
B
3
cfgCounterModeUnit02 = 1
A
R
R
4
x
cfgCounterModeUnit02 = 2
B
cfgCounterModeUnit02 = 3
E
3)
cfgCounterModeUnit01 = 4
E
3)
cfgCounterModeUnit01 = 5
5
cfgCounterModeUnit03 = 1
A
D
1)
A
6
x
cfgCounterModeUnit03 = 2
B
cfgCounterModeUnit03 = 3
F
2)
B
7
cfgCounterModeUnit04 = 1
A
R
R
8
x
cfgCounterModeUnit04 = 2
B
cfgCounterModeUnit04 = 3
E
3)
cfgCounterModeUnit03 = 4
E
3)
cfgCounterModeUnit03 = 5
1)
Direction
2)
Frequency
3)
Enable reference
Example:
The following counter function can be used:
Configuration
Value
Counter function
cfgCounterModeUnit01
1
Edge counter on channel 1
cfgCounterModeUnit02
2
Edge counter on channel 4
cfgCounterModeUnit03
3
AB counter on channel 5
cfgCounterModeUnit04
1
Edge counter on channel 7
The following counter function is not permitted:
Configuration
Values
Counter function
cfgCounterModeUnit01
4
DF counter on channel 1
cfgCounterModeUnit02
3
AB counter on channel 3
cfgCounterModeUnit03
5
ABR counter on channel 5
cfgCounterModeUnit04
1
Edge counter on channel 7