X90 mobile modules
X90 mobile system User's manual V 1.20 - Translation of the original manual
125
5.2.2.12.7.2 Counter functions - Counter value
Name:
Counter01 to Counter04
Encoder01 to Encoder04
Current counter values or the current encoder value is stored in these registers.
Data type
Values
Information
INT
-32768 to 32767
Current counter value
5.2.2.12.7.3 Counter functions - Clear counter value and enable/disable latch function
Name:
CounterReset01 to CounterReset04
LatchEnable01
LatchEnable03
These registers clear the counter value or start the latch procedure based on the corresponding bit.
Data type
Values
USINT
See the bit structure.
Bit structure:
Bit
Description
Value
Information
0
Do not clear the counter value
0
CounterReset01
1
Reset the counter
0
Do not clear the counter value
1
CounterReset02
1
Reset the counter
0
Do not clear the counter value
2
CounterReset03
1
Reset the counter
0
Do not clear the counter value
3
CounterReset04
1
Reset the counter
0
Disabled
4
LatchEnable01
1
Enabled
5
Reserved
-
0
Disabled
6
LatchEnable03
1
Enabled
7
Reserved
-
Note:
In single shot mode, the latch is only enabled on a rising edge (0 → 1).
5.2.2.12.7.4 Counter functions - Latched counter value
Name:
Latch01CounterValue
Latch03CounterValue
As soon as the latch conditions have been met, the contents of the respective counter are copied to these registers.
Data type
Values
Information
INT
-32768 to 32767
Latched counter value
5.2.2.12.7.5 Counter functions - Counter value of latch events
Name:
Latch01EventsCount
Latch03EventsCount
These registers hold the counter values of latch events that have occurred. This allows detection of whether a new
latched counter value has been saved.
Data type
Values
Information
INT
-32768 to 32767
Latched counter value