5: S
PECIAL
F
UNCTIONS
5-30
S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
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
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.
• 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.
Paper roll
Paper feed roller
Perforator
Rotary encoder
SmartAXIS
External input
: Group 1 (I0 to I1)
Operation mode
: Two-phase High-speed Counter
Counting Mode
: 4-edge Count
Comparison Action
: Comparison Output
Comparison settings
Tag name/device address : D0 (data register)
Number of preset values
: 1
Comparison output
: Q2 (external output when matched)
Preset value 1 (D4)
: 0 (upper word)
Preset value 1 (D5)
: 2,700 (lower word)
Keep
: Cleared
Reset value (D8054)
: 0 (upper word)
Reset value (D8055)
: 0 (lower word)
Overflow
: Cleared
Underflow
: Cleared
Use HSC Reset Input
: Cleared
Summary of Contents for FT1A-B12RA
Page 1: ...FT9Y B1378 5 ...
Page 2: ......
Page 208: ...7 DEVICE ADDRESSES 7 16 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Page 226: ...8 INSTRUCTIONS FUNCTION BLOCKS REFERENCE 8 18 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Page 340: ...13 SCRIPTS 13 36 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...
Page 385: ...SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 A 19 APPENDIX Japanese Font JIS X0201 ...
Page 386: ...APPENDIX A 20 SMARTAXIS PRO LITE USER S MANUAL FT9Y B1378 ...