High-speed Counters
5-1-6
Pulse Input Connection Examples
Encoders with 24 VDC Open-collector Outputs
5-1-7
Ladder Program Example
Inspecting a Dimension by
Counting Pulse Inputs
168
This example shows how to connect an encoder that has phase-A, phase-B,
and phase-Z outputs.
Encoder
(Power: 24 VDC)
Example: E6B2-CWZ6C
(NPN open-collector
output)
24-VDC power supply
(Do not use the same power supply as for other I/O.)
−
Power supply
0 V
Encoder
24 V
+
I
A
Phase A
I
B
Phase B
I
Z
Phase Z
• This example is for a CPU Unit with 40 I/O Points.
• High-speed counter 0 is used.
• When the edge of the workpiece is detected, the counter PV is reset by a
phase-Z pulse.
• The workpiece is passes inspection if the final count is between 30,000
and 30,300, otherwise the workpiece fails.
• If the workpiece passes, output CIO 100.00 is turned ON by an interrupt
and the indicator PL1 is lit. If the workpiece fails, output CIO 100.01 is
turned ON by an interrupt and indicator PL2 is lit.
• The interrupt program is interrupt task 10.
X/XA CPU Unit
(Differential Input Mode)
Phase A
Black
(High-speed counter 0: Phase A, 0 V)
0.00
Phase B
White
(High-speed counter 0: Phase B, 0 V)
0.01
Phase Z
Orange
(High-speed counter 0: Phase Z, 0 V)
0.04
+Vcc
Brown
(COM 24 V)
COM
0 V
(COM)
Blue
0 V
+24 V
Power
0 V
Shielded twisted-pair cable
Section 5-1
CPU Unit
0.00
0.01
0.04
COM