
- 94 -
(4) Pulse cycle counter function
This is a 32 bit counter that measure one cycle of an optional pulse by counting 20 MHz reference
clocks.
This counter can be used as a 32 bit timer because it measures the time.
◆ Select an optional pulse from encoder signals (external pulses) and drive pulses output.
◆ When the counter is used to measure one cycle, it is put on stand-by for measurement by detecting
an optional trigger signal.
When the count timing of a pulse to be measured is reached, this counter starts measurement.
When one cycle is measured, this counter latches and saves the data.
At the same time, it
clears the count and starts the next measurement.
◆ When this counter is used as a timer, it starts measurement, detecting an optional trigger signal.
When the count timing of a pulse to be measured is reached, this counter latches and saves
measurement data.
The counter is not cleared.
The latched data is an accumulation of measurement.
◆ The effective area of the counter is from 4 to 4,294,967,294 (H'0000_0004 to H'FFFF_FFFE).
Wead the measurement data of one cycle with the SPEED CCCWTEW PCWT SELECT command and specify it.
The data can be read at all times from the DWIVE DATA1,2,3 PCWT.
◆ If the effective area is exceeded, an overflow occurs, and STATCS4 PCWT SPEED CVF=1 is assumed.
The overflow count (maximum value) of the counter can be optionally set.
Pulse selector for pulse cycle counter
■
PCLSE CCCWTEW IWITIALIZE1
PCLSE CCCWTEW IWITIALIZE3
Parentheses contain
(EA/EB of specified axis
Count by external signals
is counted,
of specified axis
initial values.
When the
ier is 1 .)
multipl
Measurement of one
Encoder signal XEA,XEB
CCCWT
(Divide count:
1)
(
cycle of pulse)
CCCWT
Encoder signal
EA,YEB
TYPE
DIVISICW
Y
PCLSE
Pulse measured
D7--D0
SEL
X axis output pulse
Y axis output pulse
Pulse cycle counter and comparator configuration
■
Pulse measured
SPEED
<
>
Clear by latch signal
CCCWT PCLSE SEL2
32BIT
CLW
CCCWT LATCH SPEC SET
CCCWT EWABLE TYPE
Command setting
EWABLE
Pulse
counter
<Trigger signal for
cycle
starting measurement>
ACTC CLEAW
DWIVE DATA2, 3 PCWT
EWABLE
Data reading
CCCWTEW DATA2, 3 PCWT
Count data
<Comparison>
Data writing
output
CCMP1
CCMP1
SPEED CCCWTEW
=
CCMPAWE WEWISTEW1
<CCCWTEW DATA2, 3>
WELCAD
EWABLE
<Comparison>
SPEED
CCCWTEW
output
CCMP2
CCMP2
CCMPAWE WEWISTEW2
TYPE
<Comparison>
SPEED CCCWTEW
output
CCMP3
CCMP3
CCMPAWE WEWISTEW3
TYPE
● Setting counter function
Set the counter and comparator functions with the DWIVE CCMMAWD.
See the SPEED CCCWTEW IWITIALIZE1,2,3 command.
● Data setting of counter
Set counter and comparator data with the CCCWTEW CCMMAWD.
See "Data setting of pulse cycle counter."