Menu

Mounting and Wiring

Wiring Diagram

Note: L1, L2, L3, and L4 are 24V single-ended input channels, and Q1~Q4 are NPN output channels. The wiring examples in the diagram only represent differential and single-ended connections, but do not imply that each channel is limited to the connections as shown in the diagram.

 


Terminal Description

Terminal Meaning
A1+/A1- Channel 1, Phase A differential input terminal
B1+/B1- Channel 1, Phase B differential input terminal
C1+/C1- Channel 1, Phase C differential input terminal
A2+/A2- Channel 2, Phase A differential input terminal
B2+/B2- Channel 2, Phase B differential input terminal
C2+/C2- Channel 2, Phase C differential input terminal
A3+/A3- Channel 3, Phase A differential input terminal
B3+/B3- Channel 3, Phase B differential input terminal
C3+/C3- Channel 3, Phase C differential input terminal
A4+/A4- Channel 4, Phase A differential input terminal
B4+/B4- Channel 4, Phase B differential input terminal
C4+/C4- Channel 4, Phase C differential input terminal
L1_24V LATCH1 input terminal
L2_24V LATCH2 input terminal
L3_24V LATCH3 input terminal
L4_24V LATCH4 input terminal
COM LATCH input COM
5V/0V 5V DC power output terminal.
Q1 Channel 1 gated output, NPN
Q2 Channel 2 gated output, NPN
Q3 Channel 3 gated output, NPN
Q4 Channel 4 gated output, NPN

 


RXPDO Parameter Description

Input parameters Data type Meaning

CHx

Counter value

UDINT

Current count value, with the highest bit as the sign bit (actually signed data)

C Latch value

UDINT

Current count value latched on Phase C according to the configuration

CHx Status

input A

BOOL

Phase A input

input B

BOOL

Phase B input

input C

BOOL

Phase C input

Counter overflow

BOOL

1: Current count value overflow

0: After count value overflow, continue counting upward exceeding 5000.

Counter underflow

BOOL

1: Current count value underflow

0: After count value underflow, continue counting downward exceeding 5000.

Set counter done

BOOL

1: Effectively set the current count value of the counter

0: Set counter as 0

Latch C valid

BOOL

1: Flag bit for Phase C input latched

0: No latching performed

Others

Latch1

BOOL

1: Signal input detected on Latch1 channel

0: No signal input on Latch1 channel

Latch1 valid

BOOL

1: Flag bit for Latch1 signal successfully latched

0: No latching performed

Latch1 value

UDINT

Current count value latched by Latch1 signal according to the configuration

Latch2

BOOL

1: Signal input detected on Latch2 channel

0: No signal input on Latch2 channel

Latch2 valid

BOOL

1: Flag bit for Latch2 signal successfully latched

0: No latching performed

Latch2 value

UDINT

Current count value latched by Latch2 signal according to the configuration

Latch3

BOOL

1: Signal input detected on Latch3 channel

0: No signal input on Latch3 channel

Latch3 valid

BOOL

1: Flag bit for Latch3 signal successfully latched

0: No latching performed

Latch3 value

UDINT

Current count value latched by Latch3 signal according to the configuration

Latch4

BOOL

1: Signal input detected on Latch4 channel

0: No signal input on Latch4 channel

Latch4 valid

BOOL

1: Flag bit for Latch4 signal successfully latched

0: No latching performed;

Latch4 value

UDINT

Current count value latched by Latch4 signal according to the configuration

 


TXPDO Parameter Description

Parameters Data type Meaning

CHx

Set counter value

UDINT

Current counter value setting

ConfigData

Byte

Bit0~Bit7 configuration for module operation mode

Set counter

Bit

On the rising edge, set the “Set counter value” to the current “Counter value”

Enable latch C

Bit

1: Latch the “Counter value” to “Latch value” on the rising edge of Phase C input

Latch only once. To restart latching, set this parameter to 0 and then back to 1 (to avoid invalid abnormal latching caused by interference).

Clear cnt val

Bit

Clear channel count value

Clear flow flag

Bit

Clear channel overflow and underflow flags

Gate threshold0

UDINT

Gated comparison value 0

Gate threshold1

UDINT

Gated comparison value 1

Latchx Ctrl

ConfigData

Byte

Latch mode configuration

Enable latch extern on positive edge

Bit

1: Latch the “Counter value” to “Latch value” on the rising edge of Latch

Latch only once. To restart latching, set this parameter to 0 and then back to 1 (to avoid invalid abnormal latching caused by interference).

Enable latch extern on negative edge

Bit

1: Latch the “Counter value” to “Latch value” on the falling edge of Latch

Latch only once. To restart latching, set this parameter to 0 and then back to 1 (to avoid invalid abnormal latching caused by interference).

 


Parameter Configuration Description (Channel)

Operating mode
Operating mode Bit3 Bit2 Bit1 Bit0
AB-phase quadrature 4x frequency counting --- --- 0 0
AB-phase quadrature single frequency counting --- --- 0 1
Pulse + direction counting(A: Pulse B: Direction; Counts down when B is at high level, and counts up when B is at low level) --- --- 1 0
Gated output configuration
Gated mode Bit6 Bit5 Bit4
Gated Output Mode 1 0 0 1
Gated Output Mode 2 0 1 1
Gated Output Mode 3 1 0 1
Gated Output Mode 4 1 1 1
Filtering configuration
Filtering configuration Bit7
Disable filtering 0
Enable filtering 1

 


Gated Output Mode Description

Gated Output Mode 1

Compare between the comparison value and the counter upper limit:

Gated comparison value 0 < counter value < counter upper limit (i.e., 232- 1): output on the gate (i.e., Q channel).

Counter lower limit (i.e., 0) < counter value < gated comparison value 0: no output on the gate (i.e., Q channel).

Note: The value for the gated comparison value 1 must be set greater than that for the gated comparison value 0; otherwise, the output will be abnormal.

Gated Output Mode 2

Compare between the comparison value and the counter upper limit:

Gated comparison value 0 < counter value < counter upper limit (i.e., 232- 1): no output on the gate (i.e., Q channel).

Counter lower limit (i.e., 0) < counter value < gated comparison value 0: output on the gate (i.e., Q channel).

Note: The value for the gated comparison value 1 must be set greater than that for the gated comparison value 0; otherwise, the output will be abnormal.

Gated Output Mode 3

Compare between the comparison value 0 and comparison value 1:

Gated comparison value 0 < counter value < gated comparison value 1: output on the gate (i.e., Q channel).

Counter lower limit (i.e., 0) < counter value < gated comparison value 0, or gated comparison value 1 < counter value < upper limit value (i.e., 232- 1): no output on the gate (i.e., the Q channel).

Note: The value for the gated comparison value 1 must be set greater than that for the gated comparison value 0; otherwise, the output will be abnormal.

Gated Output Mode 4

Compare between the comparison value 0 and comparison value 1:

Gated comparison value 0 < counter value < gated comparison value 1: no output on the gate (i.e., Q channel).

Counter lower limit (i.e., 0) < counter value < gated comparison value 0, or gated comparison value 1 < counter value < upper limit value (i.e., 232- 1): output from the gate (i.e., Q channel).

Note: The value for the gated comparison value 1 must be set greater than that for the gated comparison value 0; otherwise, the output will be abnormal.

Previous
Indicator Description
Next
SRE5042 | High-speed Counting Module
Last modified: 2025-11-06