222
High-speed Counters
Section 5-2
Encoders with Line Driver Outputs (Conforming to Am26LS31)
5-2-7
Ladder Program Example
Inspecting a Dimension by
Counting Pulse Inputs
• An X CP1H CPU Unit with an AC power supply is used.
• 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.
(Differential phase input mode)
Encoder
Example: E6B2-CWZ1X
(line-driver output)
A+
Black
B+
White
Z+
Orange
5 VDC
Brown
0 V
Blue
A
−
Black
(stripped)
B
−
White
(stripped)
Z
−
Orange
(stripped)
5-VDC power supply
+5 V
0 V
Y CPU Unit
(High-speed counter 0: Phase A, LD+)
(High-speed counter 0: Phase A, LD-)
(High-speed counter 0: Phase B, LD+)
(High-speed counter 0: Phase B, LD-)
(High-speed counter 0: Phase Z, LD+)
(High-speed counter 0: Phase Z, LD-)
A0+
A0-
B0+
B0-
Z0+
Z0-
A0+
A0
−
B0+
B0
−
Z0+
Z0
−
Encoder
Power supply
Shielded twisted-pair cable
Z
−
Z+
B+
A+
B
−
A
−
CPU Unit
Содержание Sysmac CP1H
Страница 2: ......
Страница 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised October 2014...
Страница 4: ...iv...
Страница 10: ...x...
Страница 18: ...xviii...
Страница 22: ...xxii...
Страница 34: ...xxxiv Conformance to EC Directives 6...
Страница 76: ...42 Function Blocks Section 1 5...
Страница 176: ...142 CP series Expansion I O Unit Wiring Section 3 6...
Страница 372: ...338 Analog I O XA CPU Units Section 5 5...
Страница 578: ...544 Trouble Shooting Section 8 7...
Страница 622: ...588 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Страница 668: ...634 Standard Models Appendix A...
Страница 669: ...635 Appendix B Dimensions Diagrams X XA and Y CPU Units 90 100 110 140 150 8 85 Four 4 5 dia holes...
Страница 744: ...710 Auxiliary Area Allocations by Address Appendix D...
Страница 771: ...737 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Страница 772: ...738 Connections to Serial Communications Option Boards Appendix F...
Страница 800: ...766 Specifications for External Power Supply Expansion Appendix H...
Страница 806: ...772 Index W Work Area 165 work bits 165 work words 165 write protection 379...
Страница 808: ...774 Revision History...
Страница 809: ......