SmartAXIS Touch User's Manual
3-55
4 Special Functions
3
Pr
oject
4.7 High-Speed Counter
This section describes the high-speed counter for counting high-speed pulses from devices such as rotary encoders
and proximity switches.
●
Feature Description
The high-speed counter is a function that counts high-speed pulses which cannot be read in the execution of a normal
ladder program or FBD program. The high-speed counter has a comparator function to compare the current value
and a preset value (target value). When the current value and the preset value match, an external output is turned on
or an interrupt program is executed. However, the interrupt program can only be used when ladder program is
selected as the programming language.
The high-speed counter has a single-phase high-speed counter and a two-phase high-speed counter.
To use the high-speed counter, function area settings, data registers, special internal relays, and special data
registers must be configured.
To use the high-speed counter, the following settings are required.
Application example
This application example punches holes into a roll of paper at a regular interval.
The two pulses (A-phase, B-phase) that carry the phase difference output from the rotary encoder are counted by the
Touch two-phase high-speed counter.
When the current value reaches the preset value, the specified external output turns on and the perforator punches a
hole in the roll of paper.
High-speed counter operation modes
The high-speed counter has the following two operation modes.
• Single-phase high-speed counter
• Two-phase high-speed counter
High-speed counting modes
The high-speed counter has the following three counting modes.
• Adding counter (single-phase high-speed counter)
• 2-edge count (two-phase high-speed counter)
• 4-edge count (two-phase high-speed counter)
Example: The input allocation when external input group 1 is specified as a two-phase high-speed counter
Ladder program:
WindLDR function area settings and settings for data registers, special internal relays, and
special data registers
FBD program:
WindLDR function area settings and high-speed counter function block (HSC FB) settings
For details on the HSC FB, refer to Chapter 18 "The special FB" - "HSC (High-speed Counter)" in
the "SmartAXIS FBD Programming Manual".
Paper roll
Paper feed roller
Perforator
Rotary
encoder
Two-phase pulses
High-speed pulse input
Output when count matches
SmartAXIS
Pulse motor
External input
I0
I1
I2
↓
↓
↓
High-speed counter
A-phase
B-phase
External clear input (Z-phase)
Содержание SmartAXIS Touch FT1A Series
Страница 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Страница 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Страница 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Страница 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Страница 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Страница 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Страница 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Страница 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Страница 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Страница 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Страница 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Страница 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Страница 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Страница 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Страница 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Страница 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...