This application is based upon and claims the benefit of priority from Japanese patent application No. 2015-007660, filed on Jan. 19, 2015, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to a displacement measuring device and a displacement measuring method. Specifically, the present invention relates to a technique for measuring relative displacement of a movable element to a fixed element based on a detection signal which varies according to the relative displacement.
2. Description of Related Art
There have been known a displacement measuring device which detects displacement of a movable element to a fixed element, which is called an encoder (for example, JPH06-064100B, JP2909338B, JP2878913B, and JP2738996B). Encoders have been used for displacement detectors of small measuring devices, such as digital vernier calipers, digital micrometers, and digital indicators, and widely utilized to position moving tables or the like.
Encoders are, for example, optical encoders, capacitive encoders, and magnetic encoders. A capacitive encoder will be exemplified. Note that, an optical encoder and a magnetic encoder are essentially the same as a capacitive encoder in detection principle. A capacitive encoder includes a main scale and a detection head, which is relatively movable to the main scale and detects relative displacement to the main scale. Generally. the main scale is a fixed element and the detection head is a movable element, but they may be reversed. A number of electrodes are disposed on the main scale and the detection head. A periodic capacity change is generated in electrode patterns according to the relative displacement between the main scale and detection head. By extracting the signal of the periodic capacity change, the displacement is detected.
The periodic signal generated at the electrodes, that is, a phase signal is extracted. The phase signal is extracted as a periodic square wave signal CMP by performing sampling, mixing, low-frequency filtering, or binarizing. The periodic square wave signal CMP has phase information at edges thereof. A phase detection circuit outputs the phase information of the square wave signal CMP as a digital value. For example, if a loop counter counts up according to a clock and the count value is sampled at the timing of edges of the square wave signal CMP, the phase information is thus extracted as a digital value. Then, by comparing the phase information with an electrode arrangement pitch, the phase information is converted into the relative displacement of the detection head. By sampling the phase information as a digital value a predetermined number of times, averaging processing may be performed to reduce display flicker or to cancel offsets of an amplifier or a comparator.
As described above, when count values are sampled at edges of a square wave signal CMP, phase information can be extracted as a digital value.
However, it is necessary to determine when to sample the count value, say, either at the timing of a rising edge of the square wave signal CMP or at the timing of a falling edge of the square wave signal CMP, but not both.
The periodic square wave signal CMP has the phase information at edges. If the rising edge is, for example, equivalent to 0°, then the falling edge is equivalent to 180°.
If the counter values are sampled without distinguishing the rising edge and the falling edge, the correspondence relation between the counter value and the phase can be shifted.
In the case where a plurality of sampling values are averaged, the edge polarity from which the sampling is started, should be determined to be either a rising edge or a falling edge, but not both.
The problems in this case will be described with reference to
The sample enable signal ENB rises at a certain period, for example, at an interval of 100 msec, and the sampling of the count value is started by the rising of the sample enable signal ENB.
The periodic square wave signal CMP holds the phase information according to the relative position between the main scale and the detection head, and repeatedly rises and falls. After the sample enable signal ENB rises, the sampling is started from the rising of the periodic square wave signal CMP, and the count values are sampled at the timing of the edges a predetermined number of times. Here, it is assumed that count value is sampled successively four times and the values are averaged. Thus, after the sample enable signal ENB rises, the sampling signal becomes ON four times at the timing of the edges of the periodic square wave signal CMP from the first rising, and the count value is sampled at the timing when the sampling signal becomes ON.
A waiting time tw is generated after the sample enable signal ENB rises and until the first rising of the periodic square wave signal CMP appears. As illustrated in
However, as illustrated in
If a period of the periodic square wave signal CMP is about 2 msec, it seems that a period of the waiting time (2 msec) does not matter. However, the sample enable signal ENB rises at a short interval of, for example, 100 msec, and wasteful power consumption every 100 msec interval adds up to a large loss.
Furthermore, the circuit operation necessary for the displacement detection is the sampling operation for about 8 msec and a little amount of calculation processing.
Thus, the circuit operation for about 20 msec is performed after the sample enable signal becomes ON, and the circuit operation is scarcely performed and the power consumption is suppressed as much as possible during the time (80 msec or more) until the next sample enable signal ENB becomes ON. That is, the main power consumption is attributable to the length of the waiting time tw, and a displacement measuring device which consumes extremely low power can be implemented if the waiting time tw becomes shorter.
A purpose of the present invention is to provide a displacement measuring device which consumes lower power.
A displacement measuring device of an embodiment of the present invention includes:
a main scale;
a detection head provided so as to be relatively displaceable to the main scale and configured to output a periodic signal having a phase to be changed according to relative displacement to the main scale;
a demodulator configured to demodulate the periodic signal into a rectangular wave scale signal having phase information at an edge; and
a phase detector configured to detect the phase information of the scale signal at a timing of the edge, in which
the phase detector includes:
The displacement measuring device of the embodiment of the present invention further includes:
an average calculation executor configured to calculate an average of k number of sampling values, in which
the counter synchronizes with a reference signal and is a loop counter in which k/2 periods of the reference signal is a cycle of the count value,
the sampling signal generator generates the sampling signal successively k times at the timing of the edge of the scale signal after sampling becomes enable, the edge polarity determinator generates the adjustment signal after the sampling becomes enable and when a first edge of the scale signal is the falling edge, and
the adjuster adds a value equivalent to 1/k of a cycle of the counter to the count value output from the counter as an adjustment amount, where k is a natural number.
The displacement measuring device of the embodiment of the present invention further includes:
an average calculation executor configured to calculate an average of k number of sampling values, in which the counter synchronizes with a reference signal and is a loop counter in which (k+α)/2 periods of the reference signal is a cycle of the count value,
the sampling signal generator generates the sampling signal successively k times at the timing of the edge of the scale signal after sampling becomes enable,
the edge polarity determinator generates the adjustment signal after the sampling becomes enable and when a first edge of the scale signal is the falling edge, and
the adjuster adds a value equivalent to 1/(k+α) of a cycle of the counter to the count value output from the counter as an adjustment amount, where k and a are natural numbers.
In the embodiment of the present invention,
a rising edge may be replaced with a falling edge, and
a falling edge may be replaced with a rising edge.
A displacement measuring method of an embodiment of the present invention for a displacement measuring device including a main scale, a detection head provided so as to be relatively displaceable to the main scale and configured to output a periodic signal having a phase to be changed according to relative displacement to the main scale, a demodulator configured to demodulate the periodic signal into a rectangular wave scale signal having phase information at an edge, and a phase detector configured to detect the phase information of the scale signal at a timing of the edge, the displacement measuring method includes:
counting up a count value according to a clock pulse every certain time;
sampling the count value at the timing of the edge of the scale signal;
determining whether a polarity of the edge of the scale signal is a rising edge or a falling edge; and
adding a predetermined adjustment amount to the sampled count value when the polarity of the edge at the timing when the count value is sampled is the falling edge.
Embodiments of the present invention will be described with reference to the drawings and reference signs assigned to the elements in the drawings.
A purpose of the present invention is to shorten a waiting time tw as much as possible when phase information is extracted form a binarized phase signal as a digital value.
Although the point of the present invention is in signal processing, a configuration example of a displacement measuring device (encoder), to which the present invention is suitably applicable, will be described first.
In the present exemplary embodiment, an absolute capacitive encoder will be exemplified as a displacement measuring device (encoder) 100.
The encoder 100 includes a main scale 22, a detection head 21, a signal processor 200, and a display 17.
The detection head 21 is disposed opposite to the main scale 22 with a slight gap therebetween and provided movably in the longitudinal direction of the main scale 22.
The longitudinal direction of the main scale 22 is a measurement axis x-direction.
The main scale 22 and the detection head 21 each have an electrode pattern for position detection on the surface opposed to each other.
The main scale 22 includes first reception electrodes 24a, second reception electrodes 24b, first transmitter electrodes 25a. and second transmitter electrodes 25b.
In
On the other hand, the second reception electrodes 24b each have an upward triangular shape and are arranged along the longitudinal direction of the main scale 22 at the certain pitch (Pr).
The first reception electrodes 24a and the second reception electrodes 24b are disposed so as to engage each other.
The first transmitter electrodes 25a are arranged in parallel with the first reception electrodes 24a. The first transmitter electrode 25a and the first reception electrode 24a are connected one to one. The first transmitter electrodes 25a are disposed along the longitudinal direction of the main scale 22 at a certain pitch (Pt1). On the other hand, the second transmitter electrodes 25b are arranged in parallel with the second reception electrodes 24h. The second transmitter electrode 25b and the second reception electrode 24b are connected one to one. The second transmitter electrodes 25b are disposed along the longitudinal direction of the main scale 22 at a certain pitch (Pt2). The arrangement pitch Pt1 of the first transmitter electrode 25a and the arrangement pitch Pt2 of the second transmitter electrode 25b are different from the arrangement pitch Pr of the reception electrodes 24a and 24b, which will be described later. Note that, it is assumed that Pr>Pt2>Pt1.
Next, the electrode pattern on the detection head 21 side will be described with reference to
The detection head 21 includes transmission electrodes 23, a first detection electrode 26a, a first detection electrode 26b, a second detection electrode 27a, and a second detection electrode 27b.
The transmission electrodes 23 are arranged along the measurement axis direction at a certain pitch Pt0. The transmission electrode 23 is capacitance-coupled with the first reception electrode 24a and the second reception electrode 24b on the main scale 22 side.
Here, eight transmission electrodes 23 constitute a unit (a group).
In other words, the transmission electrode 23 is connected in common every seven electrodes.
For example, the first transmission electrode 23 is connected in common to the ninth transmission electrode skipping the second to eighth electrodes, and is connected in common with the seventeenth transmission electrode skipping the tenth to the sixteenth electrodes (the following description is omitted as similarly connected.)
In
A drive signal Sd is supplied to the transmission electrode 23. The period signals a to h of eight phases, which are shifted from each other by 45°, are prepared as the drive signal Sd. (The period signals a to h of eight phases are numbered as phase numbers 0 to 7 in phase order.)
Then, the period signals a to h of eight phases, which are shifted from each other by 45°, are respectively supplied to the eight transmission electrodes 23 constituting a group. These drive signals Sd are, more specifically, signals chopped by a high-frequency pulse and generated by a transmission waveform generation circuit 220 (
Vn=A sin 2π{(t/T)−(n/8)}
where A represents amplitude of the drive signal Sd, T represents a period of the drive signal Sd, and n represents a phase number (0, 1, 2, . . . 7).
When the drive signal Sd is supplied to the transmission electrode 23, an electric field pattern which periodically oscillates in the arrangement direction of the transmission electrode 23 (the measurement axis x-direction) is generated.
A pitch Wt of the periodical electric field pattern is eight time the pitch Pt0 of the transmission electrode 23.
The pitch Wt is set to be N time the pitch Pr of the reception electrodes 24a and 24b. (N is a positive integer.)
It is preferable that N is an odd number, such as 1, 3, or 5, and it is assumed that N=3 in the present exemplary embodiment.
Thus, three or four of the reception electrodes 24a and 24b are constantly capacitance-coupled with the eight continuous transmission electrodes 23. Then, (the phase of) the signal received by the reception electrodes 24a and 24b is to be determined by the combination of the transmission electrode 23 and the reception electrodes 24a and 24b which are capacitance-coupled with each other, but is changed according to the relative position of the detection head 21 to the main scale 22.
The first detection electrodes 26a and 26b are continuous sinusoidal electrodes having a period Wr1 and disposed so as to be capacitance-coupled with the first transmitter electrode 25a on the main scale 22 side. By disposing two sinusoidal electrodes 26a and 26b, which are shifted from each other by a half period, so as to engage each other, a pair of the first detection electrodes 26a and 26b is formed. The relation between the period Wr1 of the first detection electrodes 26a and 26b, and the arrangement pitch Pt1 of the first transmitter electrode 25a will be described later.
The second detection electrodes 27a and 27b are continuous sinusoidal electrodes having a period Wr2 and disposed so as to be capacitance-coupled with the second transmitter electrode 25b on the main scale 22 side. By disposing the two sinusoidal electrodes 27a and 27b which are shifted from each other by a half period so as to engage each other, a pair of the second detection electrodes 27a and 27b is formed. The relation between the period Wr2 of the second detection electrodes 27a and 27b, and the arrangement pitch Pt2 of the second transmitter electrode 25b will be described later.
In the present exemplary embodiment, it is assumed that the encoder is an absolute-type encoder, and three levels of phase changes, such as a coarse period (coarse scale), a medium period (medium scale), and a fine period (fine scale), are detected.
In other words, the pitch Pt1 of the first transmitter electrode 25a and the pitch Pt2 of the second transmitter electrode 25b are slightly different from the pitch Pr of the reception electrodes 24a and 24b, the first transmitter electrode 25a and the second transmitter electrode 25b respectively have an offset D1 and an offset D2 to the reception electrodes 24a and 24b.
The offsets D1 and D2 are respectively represented with the function of the distance x of the measurement direction from the reference position x0 as follows:
D1(x)=(Pr−Pt1)x/Pr
D2(x)=(Pr−Pt2)x/Pr
By the offsets D1 and D2, when the electric field patterns generated at the first and second reception electrodes 24a and 24b are transmitted to the first and second transmitter electrodes 25a and 25b, the change according to long periods λ1 and λ2 are added. (It is assumed a long period by the offset D1 is λ1, and a long period by the offset D2 is λ2.)
Then, it is assumed that the period of the first detection electrodes 26a and 26b, and the period of the second detection electrodes 27a and 27b are, for example, Wr1 (=3Pt1) and Wr2 (=3Pt2) respectively.
The first detection electrodes 26a and 26b, and the second detection electrodes 27a and 27b are capacitance-coupled with three first transmitter electrodes 25a and three second transmitter electrodes 25b, and the capacity change generated in the first transmitter electrode 25a and the second transmitter electrode 25b can be extracted as a detection current.
The transmission electrode 23 is regarded to be capacitance-coupled with the detection electrodes 26a, 26b, 27a. and 27b via the reception electrodes 24a and 24b, and the transmitter electrodes 25a and 25b.
For example, it will be described how the capacity between any one of the transmission electrodes 23 and the other one of the first detection electrodes (26a) is changed according to the position x.
The capacity is represented by Cn(B1).
The capacity Cn(B1) is represented as follows and illustrated in a graph of
Cn(B1)=B sin 2π{(x/λ1)−(n/8)}+C sin 2π{(x/Pr)−(3n/8)}+D
where B is amplitude of the long period, C is amplitude of the short period (pr), and D is an offset value.
Similarly, it will be described how the capacity between any one of the transmission electrodes 23 and the other of the first detection electrodes (26b) is changed according to the position x.
One of the first detection electrodes (26a) is shifted from the other (26b) by a half period, and the long period (λ1) is a reversed phase.
The capacity is represented by Cn(B2).
The capacity Cn(B2) is represented as the following expressions and illustrated in a graph of
Cn(B2)=−B sin 2π{(x/λ1)−(n/8)}+C sin 2π{(x/Pr)−(3n/8)}+D
The capacity is the function of the position x, and which phase of the transmission electrodes 23 to be strongly coupled with the detection electrode 26a, 26b is changed according to x.
The first detection electrodes 26a and 26b are capacitance-coupled with the transmission electrode 23, and voltage is induced in the first detection electrodes 26a and 26b.
The change of the induced voltage is extracted as detection signals B1 and B2 and represented as follows:
Detection signals C1 and C2 detected by the second detection electrodes 27a and 27b are represented similarly.
Here, it is assumed that the long period (λ1) of the detection signals B1 and B2 is several tens of times the short period (Pr).
Furthermore, it is assumed that long period (λ2) of the detection signals C1 and C2 is several tens of times the long period (λ1) of the detection signals B1 and B2.
Then, the phase displacement can be acquired at all levels of the coarse period (coarse scale), the medium period (medium scale), and the fine period (fine scale), by calculating the following expressions:
(coarse scale):C1−C2
(medium scale):B1−B2
(fine scale):(B1+B2)−(C1+C2)
In this connection, the results of [B1−B2] are illustrated in
Based on Expression 1, the coarse scale signal, the medium scale signal, and the fine scale signal are also represented, for example, as follows:
Here, it is assumed that, for example, the time of the zero-crossing point of the fine scale signal is t0, and the following expressions are established:
By counting the time from a reference time, when the phase of the reference signal is 0, to the zero-crossing point t0 with a counter or the like, the position x of the detection head 21 is calculated.
The signal processor 200 will be described.
The signal processor 200 includes a control circuit 210, a transmission waveform generation circuit 220, a demodulator 230, a phase detector 300, a combining circuit 270, and an actual size converter 280.
The control circuit 210 controls the operation timing of the entire system by supplying a drive control signal, a clock signal, and a reset signal to the circuits.
The control circuit 210 includes a timer 211. With the timer 211, the display refresh cycle of the display 17 is controlled so as to be a certain intermittent period (for example, at an interval of 100 msec). Then, ON and OFF of the circuit operations are controlled so that the phase data is extracted, combined, and displayed in each display refresh cycle. The control circuit 210 supplies the enable signal ENB, which rises at an interval of 100 msec and continues for a predetermined time, to the transmission waveform generation circuit 220, the demodulator 230, the phase detector 300, the combining circuit 270, and the actual size converter 280.
The transmission waveform generation circuit 220 generates the period signals a to h of eight phases, which are shifted from each other by 45°, and supplies the signals to the transmission electrodes 23 as the drive signal Sd.
The demodulator 230 includes a coarse scale demodulator 231, a medium scale demodulator 232, and a fine scale demodulator 233.
The detection signals C1 and C2 from the second detection electrodes 27a and 27b are input to the coarse scale demodulator 231.
Thus, the coarse scale demodulator 231 demodulates the coarse scale signal obtained by “C1−C2”.
The detection signals B1 and B2 from the first detection electrodes 26a and 26b are input to the medium scale demodulator 232.
Thus, the medium scale demodulator 232 demodulates the medium scale signal obtained by “B1−B2”.
The detection signals B1, B2, C1, and C2 from the first detection electrodes 26a and 26b, and the second detection electrodes 27a and 27b are input to the fine scale demodulator 233.
Thus, the fine scale demodulator 233 demodulates the fine scale signal obtained by “(B1+B2)−(C1+C2)”.
Specifically, in the demodulation, sampling. mixing, low-frequency filtering, or binarizing is performed to the transmission waveform in a chop frequency. Thus, the rectangular period signal CMP having the phase information at the edge is generated. In other words, a coarse scale signal (CMP-COA), a medium scale signal (CMP-MED), and a fine scale signal (CMP-FIN) are obtained.
The phase detector 300 includes a coarse phase detector 310, a medium phase detector 320, and a fine phase detector 330.
The coarse scale signal (CMP-COA) is input to the coarse phase detector 310.
The medium scale signal (CMP-MED) is input to the medium phase detector 320.
The fine scale signal (CMP-FIN) is input to the fine phase detector 330.
The phase detector 300 will be detailedly described.
The coarse phase detector 310, the medium phase detector 320. and the fine phase detector 330 have basically the same configuration, and the fine phase detector 330 will be exemplified here.
The fine phase detector 330 includes a counter 331, a sampling timing controller 340, a phase adjuster 350, and an average value calculator 360.
The counter 331 is a loop counter and counts up according to the clock pulse.
In the present exemplary embodiment, a cycle of the counter 331 is to be four periods of the period signal. (A period of the period signal equals to a period of the scale signal CMP. That is, a cycle of the counter 331 also equals to four periods of the scale signal CMP accordingly.)
This is based on the assumption that the average value of four count values is to be the phase information in the fine phase detector 330. A cycle of the counter 331 does not necessarily equal to exact four periods of the period signal, and is only required to be four periods or more of the period signal.
For example, when an average value of two count values is to be the phase information in the coarse phase detector 310 or the medium phase detector 320, a cycle of the counter is to be two periods of the reference signal.
Thus, when the number of the count values used to calculate the average value is k, a cycle of the counter is to be k/2 periods of the reference signal.
H, it is assumed that the counter 331 is a 10 bits counter. (As described above, 10 bits or more may be used.) In other words, the counter 331 counts so as to divide four periods of the reference signal Sd0 into 1023. This is equivalent to that a period of the period signal is divided by 8 bits (256). Thus, the count values of the low-order 8 bits are equivalent to that phase values in a period are indicated as digital values based on a cycle of the reference signal Sd0.
For example, when the control circuit 210 generates a start signal at a predetermined interval (for example, at an interval of 100 msec), the transmission waveform generation circuit 220, the demodulator 230, and the phase detector 300 start to operate in response to the start signal. In other words, in response to the start signal, the transmission waveform generation circuit 220 generates the drive signal Sd, and the counter 331 starts to count up from zero. Thus. the counter 331 synchronizes with the reference signal Sd0 at a phase number 0 (period signal a). The count value is output to the phase adjuster 350.
The fine scale signal (CMP-FIN) from the fine scale demodulator 233 and the enable signal ENB from the control circuit 210 at an interval of 100 msec are input to the sampling timing controller 340.
The sampling timing controller 340 instructs, based on the fine scale signal (CMP-FIN) and the enable signal ENB. the counter 331 to output the count value, and instructs, if necessary, the phase adjuster 350 to adjust the phase.
The sampling timing controller 340 includes a sampling signal generator 341 and an edge polarity determinator 342.
The enable signal ENB from the control circuit 210 and the fine scale signal (CMP-FIN) from the fine scale demodulator 233 are input to the sampling signal generator 341.
The sampling signal generator 341 generates sampling signal which rises four times at the timing of the edges of the fine scale signal (CMP-FIN) after the enable signal ENB rises.
Since the average value obtained by averaging four sampling values is the phase information in order to detect the phase of the fine scale signal, the sampling signal is set so as to rise four times.
For example, to detect the phase of the medium scale signal (CMP-MED) or the coarse scale signal (CMP-COA), when the average value is calculated from two sampling values, the sampling signal rises two times.
Whether the edge of the fine scale signal (CMP-FIN) is a rising edge or a falling edge is not distinguished.
For example, as illustrated in
This is similar to the background art.
On the other hand, as illustrated in
The counter 331 outputs the count value at the timing of the sampling signal.
The enable signal ENB from the control circuit 210 and the fine scale signal (CMP-FIN) from the fine scale demodulator 233 are input to the edge polarity determinator 342.
The edge polarity determinator 342 determines the edge polarity of the fine scale signal (CMP-FIN) which appears immediately after the enable signal ENB rises. Then, when the edge polarity of the fine scale signal (CMP-FIN) which appears immediately after the enable signal ENB rises is a falling edge, the edge polarity determinator 342 outputs the adjustment signal to the phase adjuster 350. For example, the edge polarity of the fine scale signal (CMP-FIN) which appears immediately after the enable signal ENB rises is a rising edge in the case of
In contrast, the edge polarity of the fine scale signal (CMP-FIN) which appears immediately after the enable signal ENB rises is a falling edge in the case of
In this case, the edge polarity determinator 342 supplies the adjustment signal at HIGH level to the phase adjuster 350.
The phase adjuster 350 adjusts the count value from the counter 331 according to the adjustment signal from the edge polarity determinator 342.
When the edge polarity of the fine scale signal (CMP-FIN) which appears immediately after the enable signal ENB rises is a falling edge, the edge polarity determinator 342 outputs the adjustment signal to the phase adjuster 350 (
When receiving the adjustment signal, the phase adjuster 350 adds an adjustment amount to the count value from the counter 331.
Here, the adjustment amount is a half period of the fine scale signal (CMP-FIN).
Since the counter 331 is set so that a cycle of the counter (1024) is equivalent to four periods, the half period of the fine scale signal (CMP-FIN) as the adjustment amount is equivalent to 128 in a counter value.
The value is represented by “0010000000” in binary.
In other words, the adjustment amount is, based on a cycle of the counter, to be ⅛ of a cycle of the counter.
When a cycle of the counter is 360° (2π), the adjustment amount is to be 45° (π/4).
The count value is adjusted according to the edge polarity at the time when the sampling is started.
The count value adjusted in this manner is output to the average value calculator 360.
When the adjustment signal is not received from the edge polarity determinator 342, the phase adjuster 350 directly outputs the count value from the counter 331 to the average value calculator 360.
The average value calculator 360 calculates the average value of the count values supplied from the phase adjuster 350.
The average value calculator 360 includes a data buffer 361 and a calculation executor 362.
The data buffer 361 buffers the count value supplied from the phase adjuster 350 four times and send the four count values to the calculation executor 362.
The calculation executor 362 calculates an average value of the four count values supplied from the buffer 361. That is, the four count values are added and divided by four.
When four count values are fetched according to the timing of the sampling signal and averaged, the value indicated by a triangle in the diagram is equivalent to the average value.
In the case of
The following cases cause problems, which will be described with reference to
In
In
As described above, the sampling signal rises four times from the falling edge which is the first edge of the fine scale signal (CMP-FIN) in this case. The count values of the counter 331 are fetched according to the sampling signal.
Then, the calculation executor 362 calculates the average value of the four count values.
The average value is indicated by a triangle in
However, the fetching of the count value is started from the falling edge of the fine scale signal (CMP-FIN) in the case of
The average value calculated in this manner has a shift in comparison with that in the case where the sampling is started from the rising edge.
Thus, when the value is directly used in the post processing (combining processing or actual size conversion), a shift is generated in the measurement value.
This problem is compared to the case of
By comparing the average value of
Thus, as illustrated in
Although the number of samples to be averaged is four in the above example, the adjustment amount may be similarly added when the number of samples to be averaged is the number other than four, for example, 2, 3, 5, 6 . . . .
For example, by comparing
In this case, the adjustment amount is, based on a cycle of the counter, to be ¼ of a cycle of counter.
When a period of the counter is 360° (2π), the adjustment amount is to be 90° (π/2).
When the number of count values to calculate an average value is k, a cycle of the counter is k/2 periods of the reference signal.
Thus, the adjustment amount is [a cycle of the counter/k].
The coarse phase detector 310 and the medium phase detector 320 detect the phase similarly to the fine phase detector 330.
The detected digital phase information is weighted and combined by the combining circuit 270.
The output from the combining circuit 270 is converted into an actual size value by the actual size converter 280. The actual size value acquired by the actual size converter 280 is displayed on the display 17.
The present exemplary embodiment having the above configuration has the following effects:
(1) Conventionally, the start of the sampling of the phase information has been withheld until a rising edge of the scale signal CMP appears. Thus, time and power have been wastefully consumed.
In contrast, the sampling of the phase information is started not only from a rising edge, but also from a falling edge in the present exemplary embodiment. Thus, the waiting time tw is within a half period of the scale signal CMP if it is estimated at most. For example, when the phase information is obtained by averaging four count values, it is possible to improve the power efficiency by about 10%.
Incidentally, a capacitive absolute encoder consumes lower power than other types of encoder, for example, a photoelectric or a magnetic encoder. Furthermore, although the capacitive encoder includes a phase discrimination type encoder and a voltage comparison type encoder, the phase discrimination type encoder consumes lower power than the other. From these facts, the displacement measuring device of the present exemplary embodiment consume extremely low power.
(2) When the sampling of the count value is started from a falling edge. inconsistencies are caused in the post processing (composing processing or actual size conversion) and an incorrect measurement value is displayed. However, in the present exemplary embodiment, the adjustment calculation is performed according to the edge polarity at the time when the sampling is started. Thus, when the sampling of the count value is started from a falling edge, the adjusted value is the same as the value when the sampling of the count value is started from a rising edge.
A precise displacement measuring device which does not wastefully consume the time and power can be implemented accordingly.
The present invention is not limited to the above exemplary embodiment and may be modified without departing from the scope of the invention.
The applicable range of the present invention is not limited to a capacitive encoder or a linear movement type encoder.
As long as it is an encoder which can calculate an absolute position based on the phase information, the present invention may be applied to a photoelectric or magnetic encoder as well as a rotary encoder.
In the above embodiment, it is assumed that the sampling is started from a rising edge as a standard and the post processing (composing processing or actual size conversion) is performed.
Thus, when the sampling is started from a falling edge, the adjustment amount is added for consistency with the standard, and vice versa. That is. it is assumed that the sampling is started from a falling edge as a standard and the post processing (composing processing or actual size conversion) is performed. In this case, when the sampling is started form a rising edge, the adjustment amount is necessary to be added.
Although the loop counter counts up, and the same theory can be applied to the loop counter which counts down. It is apparent that the technical scope of the present invention includes this type of modification.
It has been described that the adjustment amount is added to the count value before the average value is calculated. The adjustment amount may be added after the average value is calculated.
Number | Date | Country | Kind |
---|---|---|---|
2015-007660 | Jan 2015 | JP | national |