![IDEC OpenNet series Скачать руководство пользователя страница 87](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384087.webp)
5: S
PECIAL
F
UNCTIONS
5-14
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
Example: Counting High-speed Input Pulses from Rotary Encoder
This example demonstrates a program to punch holes in a paper tape at regular intervals.
Description of Operation
A rotary encoder is linked to the tape feed roller directly, and
the output pulses from the rotary encoder are counted by the
high-speed counter in the
OpenNet Controller
CPU module.
When the high-speed counter current value reaches 3,000, the
comparison output is turned on. When the comparison output is
turned on, the current value is reset to 300 automatically to
continue another cycle of counting. The comparison output
remains on for 0.5 second to punch holes in the tape, and is
turned off until the preset value is reached again.
Wiring Diagram
Program Parameters
Enable High-speed Counter
Yes
HSC Operation Mode
Rotar y Encoder
Enable HSC Reset Input
No
Enable HSC Gate Input
No
Enable Comparison Output
Yes
Current Value Automatic Reset
Yes
HSC Reset Value (D8046)
300
HSC Preset Value (D8047)
2,999
Timer Preset Value
0.5 sec (needed for punching) programmed in TIM instruction
Feed Roller
Rotary Encoder
Tape Punch
Rolled Tape
1
COM
2
Phase A
3
Phase B
4
Phase Z
5
HSC OUT
9
+24V DC
10
0V
Power Supply
+24V
GND
OpenNet Controller CPU Module
FC3A-CP2K (Sink Output Type)
+V
Control Input
GND
+V (24V)
Output A
Output B
Output Z
0V
Tape Punch
Rotary Encoder
Note:
This example does not use the Phase Z signal.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]