X20 system modules • Counter modules • X20DC1376
X20 system User's Manual 3.10
727
4.11.8.8.4.6 Counter value of latch event
Name:
Encoder01LatchCount
The latch events are counted and stored in a cyclic 8-bit counter. This counter is incremented with each latch event,
thereby indicating a new occurrence. The new latched counter value is stored in the respective latch register.
Data type
Value
SINT
-128 to 127
4.11.8.8.4.7 Encoder commands
Name:
Encoder01Command
This register can be used to
1 reset the counter value. The counter is kept at zero until this command is reset.
2 enable the latch procedure. If the latch configuration is valid and matches the hardware signals, then this
activation causes the counter value to be saved in the latch register.
The two different latch configurations that are possible (see section 4.11.8.8.3.3 "Setting the latch mode") must
be handled as follows:
•
Single shot latch mode:
After successful latching, indicated by the latch event counter, activation must be reset before any more
latching is possible. The activation must be set again if additional latching is needed.
•
Continuous latch mode:
The latch function only has to be enabled/set as long as latching is desired. The latch event counter is
incremented with each event.
Data type
Value
USINT
See bit structure.
Bit structure:
Bit
Name
Value
Information
0
Do not reset
0
Encoder01Reset
1
Set encoder value to 0
0
Do not activate latch
1
Encoder01LatchEnable
1
Latching
2 - 7
Reserved
0
4.11.8.8.4.8 Input status of signal lines
Name:
Encoder01_A
Encoder01_B
Encoder01_R
DigitalInput01 to DigitalInput02
This register displays the input status of the signal lines from the encoder and the digital inputs.
Data type
Value
USINT
See bit structure.
Bit structure:
Bit
Name
Value
Information
0
Encoder01_A
0/1
Input state of encoder signal A
1
Encoder01_B
0/1
Input state of encoder signal B
2
Encoder01_R
0/1
Input state of encoder signal R
3
Reserved
0
4
DigitalInput01
0/1
Input state - Digital input 1
5
DigitalInput02
0/1
Input state - Digital input 2
6 - 7
Reserved
0
Summary of Contents for X20 System
Page 2: ......