X20 system modules • Counter modules • X20DC4395
876
X20 system User's Manual 3.10
I/O configuration - Up/down counter
The following table shows how the module's various event functions can be linked in order to configure an up/
down counter.
[x] stands for the respective counter function, from 1 to 4
Register
Value
Comment
For the function
0x03
Counter mode = Up/down counter
0x0D, 0x07
Configure the calculation of the internal "counter1" and "counter2" registers
(see 4.11.17.12.6.1 "Counter value calculation" and "Examples of calculation
For the latch
0x0D, 0x07
Configuration of the calculation of the first value used for the latch
0x03
Mode of the first counter function - Continuous
(any)
Number of the event that should trigger Latch 1
0x0D, 0x07
Configuration of the calculation of the second value used for the latch
0x03
Mode of the second counter function - Continuous
(any)
Number of the event that should trigger Latch 2
For the comparator
CfO_Counter3event1lDwr
0x00D0
Event number of Timer 1 (50 μs)
Information:
The latch and comparator must not have the same event number!
CfO_Counter3event1config
0x900D, 0xA00d or 0x9007, 0xA007
Configuration of the comparator for the second counter event
CfO_Counter3event1lmode
0x03
Mode of the second counter event function - Continuous
CfO_DIREKTIOoutevent2lDwr
0x0861
TRUE event output of the second counter to trigger the direct output function
(set outputs).
CfO_DIREKTIOoutsetmask2
0x08, 0x20, 0x80
0x02, 0x08, 0x80
Outputs that should be set when comparator condition = TRUE
CfO_DIREKTIOoutevent3lDwr
0x0860
0x0A60
FALSE event output of the second counter to trigger the direct output function
(reset outputs).
CfO_DIREKTIOoutclearmask3
0x08, 0x20, 0x80
0x02, 0x08, 0x80
Outputs that should be reset when comparator condition = FALSE
I/O configuration - Event counter
The following table shows how the module's various event functions can be linked in order to configure an event
counter.
[x] stands for the respective counter function, from 1 to 4
Register
Value
Comment
For event counters on channels 1, 3, 5 and 7
0x01 or 0x03
Configure the calculation of the internal "counter1" and "counter2" registers
(see 4.11.17.12.6.1 "Counter value calculation" and "Examples of calculation
0x43
Mode of the first counter event function and referencing configuration
(any)
Number of the event that should trigger referencing
For event counters on channels 2, 4, 6 and 8
0x04 or 0x08
Configure the calculation of the internal "counter1" and "counter2" registers
(see 4.11.17.12.6.1 "Counter value calculation" and "Examples of calculation
0x83
Mode of the second counter event function and referencing configuration
(any)
Number of the event that should trigger referencing
Summary of Contents for X20 System
Page 2: ......