IDEC SmartAXIS FT9Z-1A01 User Manual page 122

Table of Contents

Advertisement

5: S
F
P ECI AL
UN CTI ON S
Example program 2
Using the two-phase high-speed counter, the pulses from a rotary encoder are input to the SmartAXIS and a continuous
workpiece is marked at a regular interval.
Application description
• The rotary encoder pulses are input to external inputs
I0 and I1. A continuous sheet of paper is marked
(holes are punched) at a regular interval (every 2,700
pulses).
• The rotary encoder is directly connected to the paper
feed roller, and output pulses are counted by the
high-speed counter and controlled.
• The cycle time is the time to count 2,700 pulses.
When the hole punch time is 0.5 seconds, the
operation condition is 2,700 pulse count time > 0.5
seconds.
In WindLDR Function Area Settings, select Two/Single-phase High-speed Counter for Group 1.
In High-speed Counter Settings, configure the settings as follows.
5-30
Paper roll
Rotary encoder
External input
Operation mode
Counting Mode
Comparison Action
Comparison settings
Tag name/device address : D0 (data register)
Number of preset values
Comparison output
Preset value 1 (D4)
Preset value 1 (D5)
Keep
Reset value (D8054)
Reset value (D8055)
Overflow
Underflow
Use HSC Reset Input
S
A XI S P
/ L
U
'
M AR T
R O
I TE
SER
S
Paper feed roller
Perforator
SmartAXIS
: Group 1 (I0 to I1)
: Two-phase High-speed Counter
: 4-edge Count
: Comparison Output
: 1
: Q2 (external output when matched)
: 0 (upper word)
: 2,700 (lower word)
: Cleared
: 0 (upper word)
: 0 (lower word)
: Cleared
: Cleared
: Cleared
M
FT9Y-B 1378
ANUAL

Advertisement

Table of Contents
loading

Table of Contents