- 88 -
8-15. Csing Various Counter Functions
This section contains an explanation that is common to each axis.
The first characters X, Y, Z, and A
of each name are omitted.
(1) Address counter function
This is a 32 bit counter that counts drive pulses to be output to the CWP and CCWP signals and manages
absolute addresses.
◆ The count increases with a + (CW) direction pulse and decreases with - (CCW) direction pulse.
◆ The effective area of the counter is from -2,147,483,647 to +2,147,483,647 (H'8000_0001 to
H'7FFF_FFFF).
A negative number is indicated by two's complement.
◆ If the effective area is exceeded, an overflow occurs, and STATCS4 PCWT ADDWESS CVF=1 is assumed.
Even if the overflow occurs, the counting function is valid and can be used as a ring counter.
By optionally setting the maximum count of the counter (valid area), rotary system locations can be
managed.
Address counter pulse selector
■
ADDWESS CCCWTEW IWITIALIZE3
Parentheses contain an
(Count of generated pulses
ADDWESS CCCWTEW IWITIALIZE1
initial value.
(1.0μ s wide)
for specified axis)
(Wenerated pulses for
(EA/EB of
EXT PCLSE
specified axis)
specified axis
TYPE
is counted,
(Divide
Cutput pulse
raised to the
count:
CCCWT
first power.)
1)
Encoder signal
(Wenerated pulses for
XEA, XEB
CCCWT
PCLSE
DIVISICW
specified axis)
YEA, YEB
TYPE
SEL
D7--D0
Count pulse
Wenerated pulses for X axis
Wenerated pulses for Y axis
Address counter and comparator configurations
■
Count pulse
32BIT
DWIVE DATA2, 3 PCWT
Address counter
Data reading
CCCWTEW DATA2, 3 PCWT
Date writing
Count data
<Comparison>
output
CCMP1
CCMP1
ADDWESS CCCWTEW
=
CCMPAWE WEWISTEW1
<CCCWTEW DATA2, 3>
WELCAD
EWABLE
<Comparison>
ADDWESS CCCWTEW
output
CCMP2
CCMP2
CCMPAWE WEWISTEW2
TYPE
<Comparison>
ADDWESS CCCWTEW
output
CCMP3
CCMP3
CCMPAWE WEWISTEW3
TYPE
● Setting counter functions
The counter and comparator functions are set with the ADDWESS CCCWTEW IWITIALIZE1,2,3 command.
● Setting counter data
The current value of the address counter is set with the ADDWESS CCCWTEW PWESET command.
● Count data is read and specified with the ADDWESS CCCWTEW PCWT SELECT command.
The data can be read at all times from a DWIVE DATA1,2,3 PCWT.
● If the count pulse of the address counter is set to an encoder signal by using CCCWT PCLSE SEL of
the ADDWESS CCCWTEW IWITIALIZE1 command, the count timing of the encoder signal is converted to a
pulse with a selected active width, which is output from the CWP and CCWP signals.