High-Speed Counter - IDEC SmartAXIS FT9Z-1A01 User Manual

Table of Contents

Advertisement

High-Speed Counter

This section describes the high-speed counter for counting high-speed pulses from devices such as rotary encoders and proximity
switches. The high-speed counter is a function that counts high-speed pulses with the SmartAXIS hardware that cannot be read in
the execution of a normal user 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.
For the ladder program, to use the high-speed counter, the WindLDR function area settings, data registers, special internal relays,
and special data registers must be configured.
For the FBD program, WindLDR function area settings and high-speed counter (HSC) function block settings are required. For
details on the HSC function block, see Chapter 18 "The special FB" - "HSC (High-speed Counter)" in the "SmartAXIS FBD
Programming Manual".
The AC power type does not support the high-speed counter. In situations where the high-speed counter function is required, use
the DC power type.
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 SmartAXIS 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 four counting modes:
Adding counter (single-phase high-speed counter)
Up/down selection reversible 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
External input
High-speed counter
Pulse motor
Rotary
encoder
Two-phase pulses
SmartAXIS
High-speed pulse input
I0
I1
A-phase
B-phase
S
A XI S P
/ L
M AR T
R O
Paper roll
Paper feed roller
Perforator
Output when count matches
I2
External clear input (Z-phase)
U
'
M
FT9Y-B 1378
I TE
SER
S
ANUAL
5: S
F
P ECI AL
UN CTI ON S
5-13

Advertisement

Table of Contents
loading

Table of Contents