11 XN-322-20DI-PCNT digital input module with counter
11.3 Wiring topic
XN300 slice modules 02/24 MN050002EN Eaton.com 66
11.3.2 Wiring the counter functions for inputs 1 to 4
Inputs 1…4 are connected downstream of internal module counter registers
that can be used to directly count signal pulses at these inputs.
The following modes are available:
• Counter mode (simple counting): The 8-bit counter register for an input
will be incremented every time there is a rising signal pulse at that input.
Objects 0x3023 to 0x3026 are the corresponding 8-bit counter registers.
• Incremental encoder mode: Counts by interpreting the signals from two
inputs using AB quadrature mode with X4 encoding and incrementing a
16-bit counter register. Objects 0x3027 to 0x3028 are the corresponding
16-bit counter registers.
Figure 41: Timing diagram showing how the signals at the XN-322-20DI-PCNT module's
inputs are used for counting when using AB quadrature mode with X4 encoding
11.3.3 Configuring inputs 1 to 4
Counter mode register object 0x4020 can be used to configure the function
for inputs 1 to 4 and, accordingly, select the operating mode you want to
use.
In addition, any writing command to counter mode register object 0x4020
will reset counter registers 0x3023 through 0x3028 to 0x00.
The following functions are available:
Please refer to Application examples on 339.
n = n - 1
Input x
Input y
n = n + 1
Counter
Data
bit
Designation Description
0 Input 1/2 0 = Counter Mode
1 = Incremental Encoder Mode
1
Input 3/4 0 = Counter Mode
1 = Incremental Encoder Mode
2–7 reserved