ENCODER ABNORMALITY DIAGNOSIS DEVICE
20220120591 · 2022-04-21
Inventors
Cpc classification
International classification
Abstract
An encoder abnormality diagnosis device configured to diagnose an abnormality in an encoder that outputs a cosine waveform and a sine waveform according to a rotation angle of an object includes a stop determination processing unit configured to determine whether the object is rotating or stopping, based on a change in a count value of a pulse signal obtained by pulsing of each of the cosine waveform and the sine waveform, a frequency measurement unit configured to measure a frequency of the pulse signal, and a frequency diagnosis unit configured to compare the frequency measured by the frequency measurement unit with a preset upper limit frequency when the stop determination processing unit determines that the object is stopping, and to determine that an abnormality has occurred in the encoder when the measured frequency exceeds the upper limit frequency.
Claims
1. An encoder abnormality diagnosis device configured to diagnose an abnormality in an encoder that outputs a cosine waveform and a sine waveform according to a rotation angle of an object, the encoder abnormality diagnosis device comprising: a stop determination processing unit configured to determine whether the object is rotating or stopping, based on a change in a count value of a pulse signal obtained by pulsing of each of the cosine waveform and the sine waveform; a frequency measurement unit configured to measure a frequency of the pulse signal; and a frequency diagnosis unit configured to compare the frequency measured by the frequency measurement unit with a preset upper limit frequency when the stop determination processing unit determines that the object is stopping, and to determine that an abnormality has occurred in the encoder when the measured frequency exceeds the upper limit frequency.
2. The encoder abnormality diagnosis device according to claim 1, wherein the upper limit frequency is determined based on a control cycle of the object.
3. The encoder abnormality diagnosis device according to claim 1, wherein the upper limit frequency is determined based on a maximum acceleration of the object and a hysteresis width used for the pulsing.
4. An encoder abnormality diagnosis method of diagnosing an abnormality in an encoder that outputs a cosine waveform and a sine waveform according to a rotation angle of an object, the method comprising the steps of: determining whether the object is rotating or stopping, based on a change in a count value of a pulse signal obtained by pulsing of each of the cosine waveform and the sine waveform; measuring a frequency of the pulse signal; and comparing the measured frequency of the pulse signal with a preset upper limit frequency when the object is determined to be stopping, and determining that an abnormality has occurred in the encoder when the measured frequency exceeds the upper limit frequency.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0015] Embodiment(s) of the present disclosure will be described based on the following figures, wherein:
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
DESCRIPTION OF EMBODIMENTS
[0023] A configuration of an encoder abnormality diagnosis device will be described by reference to
[0024] AD converters 10 and 11 perform AD-conversion on the signal Vc and the signal Vs that are output from the level conversion circuits 2 and 4, respectively, and output the respective AD-converted signals to a Lissajous radius calculation processing unit 12. The Lissajous radius calculation processing unit 12 performs various corrections including an offset correction, an amplitude ratio correction, a phase correction, and the like with respect to the AD conversion results of the signal Vc and the signal Vs that are output by the AD converters 10 and 11, respectively, and then calculates a Lissajous radius. A diagnosis processing unit 13 outputs an abnormal signal to the abnormality processing unit 14 in the case where the Lissajous radius is outside a predetermined reference range.
[0025] A stop determination processing unit 15 determines whether an object is rotating or stopping, based on the count value output from the counter 6. The stop determination processing unit 15 outputs, to a frequency diagnosis unit 17, a stop flag in an on state when determining that the object is stopping, and the stop flag in an off state when determining that the object is rotating. A frequency measurement unit 16 measures a frequency of the pulse signal output by the pulsing circuit 3, and outputs the measured frequency to the frequency diagnosis unit 17. The frequency diagnosis unit 17 compares the frequency of the pulse signal output by the frequency measurement unit 16 with an upper limit frequency when the stop flag output by the stop determination processing unit 15 is on, and outputs an abnormal signal to the abnormality processing unit 14 in the case where the frequency of the pulse signal exceeds the upper limit frequency.
[0026] Similarly, a stop determination processing unit 18 determines whether the object is rotating or stopping, based on the count value output from the counter 8. The stop determination processing unit 18 outputs, to a frequency diagnosis unit 20, a stop flag in an on state when determining that the object is stopping, and the stop flag in an off state when determining that the object is rotating. A frequency measurement unit 19 measures a frequency of the pulse signal output by the pulsing circuit 5, and outputs the measured frequency to the frequency diagnosis unit 20. The frequency diagnosis unit 20 compares the frequency of the pulse signal output by the frequency measurement unit 19 with an upper limit frequency when the stop flag output by the stop determination processing unit 18 is on, and outputs an abnormal signal to the abnormality processing unit 14 in the case where the frequency of the pulse signal exceeds the upper limit frequency.
[0027] The abnormality processing unit 14 performs an abnormality process such as turning off the energization of a motor, in the case where any one of the speed monitoring units 7 and 9, the diagnosis processing unit 13, and the frequency diagnosis units 17 and 20 outputs the abnormal signal.
[0028]
[0029] In step S16, the stop determination processing unit 15 checks the current state of the stop flag. As a result of the check, when the stop flag is off (No in S16), the stop determination processing unit 15 sets a current counter value as a value of a counter stop value (S18), and proceeds to step S20. The counter stop value is a counter value when the stop flag is switched from off to on. On the other hand, when the stop flag is on (Yes in S16), the stop determination processing unit 15 proceeds directly to step S20, without resetting the counter stop value.
[0030] In step S20, the stop determination processing unit 15 calculates, as a counter accumulated change value, a value obtained by subtracting the counter stop value from the current counter value. Then, when an absolute value of the counter accumulated change value is equal to or greater than 2 (No in S22), the stop determination processing unit 15 determines that the object is rotating, and turns off the stop flag (S14). On the other hand, when the absolute value of the counter accumulated change value is less than 2 (Yes in S22), the stop determination processing unit 15 determines that the object is stopping, and turns on the stop flag (S24). When the stop flag is set in step S14 or step S24, the stop determination processing unit 15 records the current counter value as the previous counter value (S26), and returns to step S10. Thereafter, similar processing is repeated every time the counter value is output.
[0031] As is clear from the foregoing description, in this example, whether the object is rotating is determined based on the absolute value of the counter difference value. Accordingly, in the case where the Lissajous waveform 21 as illustrated in
[0032] As described above, the determination result by the stop determination processing unit 15, 18 is input to the frequency diagnosis unit 17, 20. When the stop flag is on, the frequency diagnosis unit 17, 20 compares the frequency of the pulse signal output by the frequency measurement unit 16, 19 with a preset upper limit frequency f.sub.max. This is to determine that an abnormality has occurred in the case where the Lissajous waveform 21 as illustrated in
[0033] That is, in the case where the Lissajous waveform 21 as illustrated in
[0034] The upper limit frequency f.sub.max is set to a value that can exclude the case where the spindle is oscillated minutely. That is, the stop flag is turned on not only when the abnormality has occurred in the encoder but also when the spindle is oscillated minutely. In the case where the spindle is oscillated minutely, the frequency of the pulse signal is non-zero, but this state does not correspond to the abnormality in the encoder. Then, the upper limit frequency f.sub.max is set to a value that is sufficiently greater than the frequency of the pulse signal obtained when the minute oscillation has occurred, thereby preventing the minute oscillation from being determined as the abnormality.
[0035] The setting of the upper limit frequency f.sub.max will be described with reference to
[0036] Here, the frequency of the pulse signal 27 when the Lissajous waveform 21 as illustrated in
[0037] As another mode, the upper limit frequency f.sub.max may be determined based on an allowable maximum acceleration α.sub.max of the spindle. That is, as described above, when the pulse signal 27 is obtained, Peak to Peak of the sine waveform or the cosine waveform becomes equal to or greater than the hysteresis width 26 (hereinafter, referred to as a “hysteresis width ΔH”). Therefore, in the case of the minimum amplitude at which the pulse signal 27 changes, in the case of the Lissajous waveform 21 illustrated in
θ=(ΔH/2)×(1/Z)×sin(2πf.Math.t+ϕ) Expression 1
[0038] The acceleration α is obtained by differentiating expression 1 twice, and is represented by expression 2.
α=−(ΔH×2π.sup.2f.sup.2)/Z×sin(2πf.Math.t+ϕ) Expression 2
[0039] The frequency f when the acceleration a becomes the maximum acceleration α.sub.max may be set as the upper limit frequency f.sub.max. Accordingly, the upper limit frequency f.sub.max is obtained by solving the expression obtained by substituting α.sub.max for a in expression 2 for the frequency f, and is represented by the following expression 3.
f.sub.max=1/π×((α.sub.max.Math.Z)/(2ΔH)).sup.1/2 Expression 3
[0040] Thus, when the upper limit frequency f.sub.max is determined based on the control cycle or the maximum acceleration, the minute oscillation and the abnormality in the encoder can be detected distinctively from one another, and the abnormality in the encoder can be detected more accurately. A method of determining the upper limit frequency f.sub.max exemplified herein is an example, and the upper limit frequency may be any value that can differentiate the minute oscillation and the abnormality in the encoder.
REFERENCE SIGNS LIST
[0041] 1 Encoder [0042] 2, 4 Level conversion circuit [0043] 3, 5 Pulsing circuit [0044] 6, 8 Counter [0045] 7, 9 Speed monitoring unit [0046] 10, 11 AD converter [0047] 12 Lissajous radius calculation processing unit [0048] 13 Diagnosis processing unit [0049] 14 Abnormality processing unit [0050] 15, 18 Stop determination processing unit [0051] 16, 19 Frequency measurement unit [0052] 17, 20 Frequency diagnosis unit [0053] 21 Lissajous waveform [0054] 22 Lissajous radius [0055] 23 Upper limit threshold [0056] 24 Lower limit threshold [0057] 25 Pulsing circuit input signal [0058] 26 Hysteresis width [0059] 27 Pulse signal