229
High-speed Counters
Section 7-1
7-1-6
Pulse Input Connection Examples
Encoders with 24 VDC Open-collector Outputs
This example shows how to connect an encoder that has phase-A, phase-B,
and phase-Z outputs.
7-1-7
Ladder Program Example
Inspecting a Dimension by
Counting Pulse Inputs
• 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.
CP1L-EL/EM CPU Unit
Phase A
Black
Phase B
White
Phase Z
Orange
+Vcc
Brown
0 V
(COM)
Blue
24-VDC power supply
0 V
+24 V
Encoder
(Power: 24 VDC)
Example: E6B2-CWZ6C
(NPN open-collector
output)
0.00
(High-speed counter 0: Phase A, 0 V)
(Differential Input Mode)
0.01
(High-speed counter 0: Phase B, 0 V)
0.04
COM
(High-speed counter 0: Phase Z, 0 V)
(COM 24 V)
0.00
0.01
0.04
COM
0 V
24 V
Power
0 V
Encoder
Power supply
−
Shielded twisted-pair cable
(Do not use the same power supply as for other I/O.)
I
A
I
B
I
Z
Phase A
Phase B
Phase Z
+
CPU Unit
Summary of Contents for CP1L-EL20DR-D
Page 3: ...CP1L EL20D CP1L EM30D CP1L EM40D CP1L EL EM CPU Unit Operation Manual Produced July 2017...
Page 4: ...iv...
Page 10: ...x...
Page 22: ...xxii...
Page 34: ...xxxiv Software Licenses and Copyrights 7...
Page 192: ...158 Trial Operation and Debugging Section 5 3...
Page 250: ...216 Automatic Clock Adjustment and Specifying Servers by Host Name Section 6 7...
Page 666: ...632 Trouble Shooting Section 11 7...
Page 696: ...662 Standard Models Appendix A...
Page 805: ...771 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 806: ...772 Connections to Serial Communications Option Boards Appendix F...
Page 836: ...802 PLC Setup Appendix G...
Page 838: ...804 TCP Status Transitions Appendix H...
Page 840: ...806 Ethernet Network Parameters Appendix I...
Page 842: ...808 Buffer Configuration CP1L EL EM Appendix J...
Page 844: ...810 Ethernet Specifications Appendix K...
Page 851: ...Index 817 work words 118 write protection 447...
Page 852: ...818 Index...
Page 854: ...820 Revision History...
Page 855: ......