Position detection device and position detection method
11940303 ยท 2024-03-26
Assignee
Inventors
Cpc classification
G01R33/091
PHYSICS
G01D5/34794
PHYSICS
G01D5/24419
PHYSICS
G01B7/30
PHYSICS
G01D5/2452
PHYSICS
International classification
G01D5/244
PHYSICS
G01B7/30
PHYSICS
Abstract
There is provided a position detection device to suppress an influence of a signal distortion due to a processing error or the like, the position detection device including: a reference position calculation unit that calculates a reference position of a moving body on the basis of a first signal and a second signal, the first signal being detected from a first track provided on the moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; a slit specifying unit that specifies a slit corresponding to a position of the moving body; an in-slit position calculation unit that calculates an in-slit position of the moving body in the specified slit; and a correction unit that corrects an absolute position of the moving body.
Claims
1. A position detection device comprising: circuitry configured to: calculate a reference position of a moving body on a basis of a first signal and a second signal, the first signal being detected from a first track provided on the moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; specify a cycle corresponding to the reference position of the moving body among the scale of cycles of the first track on a basis of the reference position; calculate an interpolation angle of the moving body in the specified cycle on a basis of the first signal; calculate an absolute position of the moving body on a basis of a combination of the specified cycle and the interpolation angle; detect a position deviation occurs between the reference position and the absolute position on a basis of a difference between the reference position and the absolute position being greater than a predetermined value set based on a total number of the predetermined cycles of the first track; determine, based on the detected position deviation, a total number of cycles included in the difference between the reference position and the absolute position; and calculate a corrected absolute position, wherein the calculation of the corrected absolute position includes subtracting, from the absolute position, the determined total number of cycles included in the difference between the reference position and the absolute position, wherein the total number of cycles included in the difference between the reference position and the absolute position is determined by rounding a value obtained by dividing the difference between the reference position and the absolute position by a number of degrees included in a cycle in the first track, and wherein the corrected absolute position is determined by subtracting from the absolute position a value obtained by multiplying the total number of cycles by the number of degrees included in the cycle in the first track.
2. The position detection device according to claim 1, wherein the first signal includes two sinusoidal waves having a phase difference of 90? therebetween, and the second signal includes two sinusoidal waves having a phase difference of 90? therebetween.
3. The position detection device according to claim 2, wherein the circuitry is further configured to calculate the reference position from a difference between a first value and a second value, the first value being obtained by calculating an arctangent2 of the two sinusoidal waves of the first signal, and the second value being obtained by calculating an arctangent2 of the two sinusoidal waves of the second signal.
4. The position detection device according to claim 1, wherein the circuitry is further configured to detect that the position deviation occurs in a case where the difference is larger than half of the predetermined cycles.
5. The position detection device according to claim 2, wherein the circuitry is further configured to calculate the interpolation angle on a basis of a first value obtained by calculating an arctangent2 of the two sinusoidal waves of the first signal.
6. The position detection device according to claim 1, wherein the circuitry is further configured to: detect the first signal; and detect the second signal.
7. The position detection device according to claim 1, wherein the moving body rotates around a rotation center.
8. The position detection device according to claim 1, wherein the moving body linearly moves.
9. The position detection device according to claim 1, wherein the scale is configured by a gear shape or teeth provided on the moving body or is configured by alternately magnetizing N poles and S poles.
10. The position detection device according to claim 6, wherein the circuitry is further configured to: detect the first signal corresponding to a change in light or a change in a magnetic field due to movement of the scale of the first track; and detect the second signal corresponding to a change in light or a change in a magnetic field due to movement of the scale of the second track.
11. The position detection device according to claim 1, wherein the second track has a scale having cycles smaller by one cycle than the predetermined cycles.
12. The position detection device according to claim 1, wherein the total number of cycles included in the difference between the reference position and the absolute position is determined according to the following equation
13. A position detection method comprising: calculating a reference position of a moving body on a basis of a first signal and a second signal, the first signal being detected from a first track provided on the moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; specifying a cycle corresponding to the reference position of the moving body among the scale of cycles of the first track on a basis of the reference position; calculating an interpolation angle of the moving body in the specified cycle on a basis of the first signal; calculating an absolute position of the moving body on a basis of a combination of the specified cycle and the interpolation angle; detecting a position deviation occurs between the reference position and the absolute position on a basis of a difference between the reference position and the absolute position being greater than a predetermined value set based on a total number of the predetermined cycles of the first track; determining, based on the detected position deviation, a total number of cycles included in the difference between the reference position and the absolute position; and calculating a corrected absolute position, wherein the calculation of the corrected absolute position includes subtracting, from the absolute position, the determined total number of cycles included in the difference between the reference position and the absolute position, wherein the total number of cycles included in the difference between the reference position and the absolute position is determined by rounding a value obtained by dividing the difference between the reference position and the absolute position by a number of degrees included in a cycle in the first track, and wherein the corrected absolute position is determined by subtracting from the absolute position a value obtained by multiplying the total number of cycles by the number of degrees included in the cycle in the first track.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
MODE FOR CARRYING OUT THE INVENTION
(19) Hereinafter, preferred embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. Note that in the present specification and the drawings, components having substantially the same functional configuration will be denoted by the same reference numerals and an overlapping description will be omitted.
(20) Note that a description will be given in the following order.
(21) 1. Premise Technology
(22) 2. Configuration Example of Position Detection Device According to Present Embodiment
(23) 3. Configuration Example in Case of Three Tracks
(24) 1. Premise Technology
(25)
(26) The rotating body 100 is configured as, for example, a rotating body having a gear shape or a ruggedness or a rotating body in which N poles and S poles are alternately magnetized. The detection unit 201 and the detection unit. 202 detect changes in magnetism, light, and the like due to rotation of the rotating body 100.
(27) The rotating body 100 illustrated in
(28) Examples of the detection units 201 and 202 can include a magnetic sensor, a light receiving element and the like. The present embodiment is applicable to various encoders such as a magnetoresistive encoder, a magnetic (magnetization) encoder, an electric induction type encoder, and an optical encoder.
(29)
(30)
(31)
(32)
(33)
(34) When calculating an absolute angle, arctangent2 (a tan(2) (hereinafter, referred to as a tan2 or arc tan2)) of sin voltages and cos voltages of each of Track A and Track B are calculated, and a difference between arctangent2 (a tan(2)) of the sin voltages and the cos voltages is calculated to obtain the absolute angle from a cycle difference (one cycle) between the tracks. As illustrated in
?.sub.ref=a tan2(cos.sub.A,sin.sub.A)?a tan2(cos.sub.B,sin.sub.B)(1)
(35) More specifically, since Track A has 64 cycles, cycles of fluctuations of sin.sub.A and cos.sub.A are 64 cycles, respectively. Since calculating arctangent2 is equal to obtaining phases of sin.sub.A and cos.sub.A and sin.sub.A and cos.sub.A fluctuate in 64 cycles with respect to one period of the rotating body 100 (mechanical angle one period), the fluctuations of the phases (fluctuations of arctangent2) also occur in 64 cycles. Therefore, a calculation result of arctangent2 repeats an increase and decrease in 64 cycles. Since Track B has 63 cycles, a calculation result of arctangent2 repeats an increase and decrease in 63 cycles. Therefore, a tan(cos.sub.A sin.sub.A) repeats the increase and decrease in 64 cycles, while a tan(cos.sub.B sin.sub.B) repeats the increase and decrease in 63 cycles, and a difference between a tan(cos.sub.A sin.sub.A) and a tan(cos.sub.B sin.sub.B) thus increases with an increase of a rotation angle when the rotating body 100 rotates once. Therefore, the absolute angle ?.sub.ref can be calculated from Equation 1.
(36) As illustrated in
(37) Therefore, the following processing is performed to increase the accuracy. Here, a concept of slits is used. The slits can be represented by fan-shaped regions obtained by dividing one rotation (which is 2? [rad] and corresponds to a moving range of the rotating body 100) of the rotating body 100. When Track A is used for division of the slits, Track A has 64 cycles, such that 360?/64=5.625? and one slit has a fan shape with a central angle of 5.625?. One rotation of the rotating body 100 can be represented by 64 slits, such that 0 to 5.625? can be represented as a slit of slit number 1 and 5.625? to 11.25? can be represented by a slit of slit number 2. Therefore, as illustrated in
(38)
?.sub.interp=a tan2(cos.sub.A,sin.sub.A)(2)
(39) Since the right side of Equation 2 repeats an increase and decrease in 64 cycles each time the rotating body 100 rotates once, the interpolation angle ?.sub.interp represents an angle in one slit. Therefore, the absolute angle can be obtained from the slit number and a value of the interpolation angle ?.sub.interp. Since a resolution of the absolute angle can increase by this calculation method, the accuracy can be improved as compared with a case of obtaining ?.sub.ref described above.
(40)
(41) By the way, when the slit number is obtained, if the absolute angle ?.sub.ref is an angle near a boundary of the slit, an error may occur in calculation of a slit number near the boundary of the slit. For example, an angle error occurs due to an influence of a signal distortion, or the like, such that the slit number may be erroneously determined as an adjacent slit number. When the slit number is erroneous, the finally calculated absolute angle is deviated by an angle corresponding to one slit. In the method of calculating the absolute angle described above, it difficult to correct this angle deviation.
(42)
(43) When the angle error occurs in the absolute angle ?.sub.ref, a calculation result of the slit number is deviated as illustrated in an intermediate diagram of
(44) 2. Configuration Example of Position Detection Device According to Present Embodiment
(45)
(46) As described above, the rotating body 100 includes tracks A and B configured by a gear or rugged shape or magnetization. A cycle difference between. Track A and Track B is 1. Furthermore, as described above, one cycle of teeth, irregularities, and magnetization is referred to as a slit. For example, in a case where Track A has 64 slits, Track B has 63 slits.
(47) Rotation and movement of Track A are detected by the detection unit 200 of Track A. Furthermore, rotation and movement of Track B are detected by the detection unit 210 of Track B. Two sinusoidal waves (sin voltage and cos voltage) having a phase difference of 90? therebetween are obtained from the respective voltage detection units. The absolute angle calculation unit 250 calculates the absolute angle ?.sub.ref (reference angle) on the basis of Equation 1. By calculating arctangent2 (a tan2) of the signals of each of Track A and Track B and taking a difference between arctangent2 (a tan2) of the signals, it is possible to obtain the absolute angle ?.sub.ref using the cycle difference between Track A and Track B.
(48) As described above, since a distortion occurs in the signal due to mechanical errors of components or assembly errors of the detection units 200 and 210, a sufficient accuracy is not obtained with the absolute angle ?.sub.ref obtained by Equation 1. However, according to Equation 1, an approximate angle can be known. Therefore, in the present embodiment, the absolute angle ?.sub.ref is used as a reference angle at the time of detecting an angle deviation of the absolute angle obtained by another method with a higher accuracy. An error of the reference angle here should be equal to or less than ?360/2Na [deg] in which Na is the number of slits in Track A. In a case where this condition is not satisfied, an angle calculation method in a 3-track manner is used.
(49) The absolute angle calculation unit 500 calculates an absolute angle by another method having a higher accuracy than that of the absolute angle ?.sub.ref. This method is performed by the slit number calculation unit 300 and the interpolation angle calculation unit 400 described above. First, the slit number calculation unit 300 calculates which slit the absolute angle ?.sub.ref corresponds to. In other words, the slit number calculation unit 300 calculates a slit number corresponding to the absolute angle ?.sub.ref.
(50) At the same time, the interpolation angle calculation unit 400 calculates an interpolation angle in one slit. The interpolation angle calculation unit 400 calculates an interpolation angle in a slit, in the slit of the slit number calculated by the slit number calculation unit 300.
(51) The absolute angle calculation unit 500 calculates an absolute angle ?.sub.enc on the basis of the slit number calculated by the slit number calculation unit 300 and the interpolation angle calculated by the interpolation angle calculation unit 400. By calculating the absolute angle ?.sub.enc by this method, a calculation accuracy of the absolute angle ?.sub.enc can be improved as the number of slits in one track increases. Meanwhile, when the number of slits increases, a possibility that the reference absolute angle ?.sub.ref will be positioned near the boundary of the slit increases, and in a case of calculating the slit number on the basis of the absolute angle ?.sub.ref, a possibility of misreading the slit number at a boundary portion of the slit increases. As described above, in a case where one slit number is misread, a value of the absolute angle ?.sub.enc is deviated by an angle corresponding to one slit. Therefore, in the present embodiment, processing for correcting this angle deviation is performed.
(52) The angle deviation detection unit 600 detects an angle deviation due to the misreading of the slit number. Specifically, the angle deviation detection unit 600 determines whether or not there is an error in determination of the slit number on the basis of a magnitude of a difference ?? between the absolute angle ?.sub.ref and the absolute angle ?.sub.enc with reference to the absolute angle ?.sub.ref (reference angle) calculated in advance. The angle deviation detection unit 600 determines the magnitude of the difference ?? on the basis of the following Equation 2, and determines that there is an error in the determination of the slit number in a case of the following Equation 2 is established.
(53)
(54) In other words, an angle error ??.sub.ref of the absolute angle ?.sub.ref is only required to satisfy the following Equation 3. If the angle error ??.sub.ref of the absolute angle ?.sub.ref satisfies the following Equation 3, even though the angle error ??.sub.ref occurs, it does not exceed a boundary of an adjacent slit, such that erroneous determination of the slit number does not occur.
(55)
(56)
(57) In a case where the angle deviation is detected by the angle deviation detection unit 600, the angle deviation correction unit 700 corrects the angle deviation due to a calculation error of the slit number. Specifically, the angle deviation correction unit 700 obtains the number N.sub.err of slits in which the calculation error occurs from the difference ?? on the basis of the following Equation 4. The number N.sub.err of slits corresponds to the number of slits in which the calculation error occurs.
(58)
(59) For example, in a case where the determined slit number is deviated from a correct value by 2, N.sub.err=2. The angle deviation correction unit 700 calculates an absolute angle ?.sub.m in which the angle deviation is compensated for on the basis of the number of slits N.sub.err in which the calculation error occurs, on the basis of the following Equation 5. In a case where the determined slit number is deviated from the correct value by 1, the absolute angle ?.sub.enc is corrected by 5.625?, such that the absolute angle ?.sub.m is calculated. Similarly, in a case where the determined slit number is deviated from the correct value by 2, the absolute angle ?.sub.enc is corrected by 11.25?, such that the absolute angle ?.sub.m is calculated.
(60)
(61) As described above, the angle deviation detection unit 600 determines whether or not there is an error in determination of the slit number on the basis of a magnitude of a difference from the reference angle with reference to the reference angle (absolute angle ?.sub.ref) calculated in advance. Then, in a case where the error occurs in the determination of the slit number, the angle deviation due to the calculation error of the slit number is corrected by the angle deviation correction unit 700. Therefore, it is possible to detect the position of the rotating body 100 with a high accuracy.
(62)
(63) Furthermore, in step 814, arctangent2 (a tan2) of the sin voltage and the cos voltage of Track A is calculated to calculate the interpolation angle. In step S18, the slit number is calculated on the basis of the absolute angle ?.sub.ref.
(64) In step S20, the absolute angle ?.sub.enc is calculated from the slit number and the interpolation angle using Equation illustrated in step S20. In the next step S22, the absolute angle ?.sub.enc obtained in step 820 and the absolute angle ?.sub.ref (reference angle) are compared with each other to determine whether or not an error has occurred in the determination of the slit number. In a case where the error has occurred in the determination of the slit number, the processing proceeds to step S24, and the angle is corrected by the error in the slit determination. After step S24, the processing ends. Furthermore, in a case where the error has not occurred in the determination of the slit number in step S22, the processing ends.
(65) 3. Configuration Example in Case of Three Tracks
(66) Next, a configuration example in which a rotating body 100 includes three tracks A, B, and C will be described.
(67)
(68) In a method of using the three tracks, Track C having a certain cycle difference with respect to Track A is added to make an influence of an error smaller, such that an angle deviation is more certainly corrected. There is no problem in principle even though a cycle difference between Track A and Track C is an arbitrary value. However, as the cycle difference between Track A and Track C becomes larger, an accuracy is improved, but it becomes difficult to detect a slit number determination error, such that there is a trade-off relationship between the accuracy and the detection of the slit number determination error. Therefore, it is desirable to select an appropriate cycle difference between Track A and Track C from an inherent error. As an example, assuming that the cycle difference between Track A and Track C is 8 as described above, Track A has 64 cycles, Track B has 63 cycles, and Track C has 56 cycles.
(69) In the configuration illustrated in
(70) The area number calculation unit 310 calculates which area the absolute angle ?.sub.ref corresponds to. Here, the area represents an angle zone obtained by equally dividing 360? by the cycle difference between Track A and Track C, and means a region of 45? obtained by dividing 360? into eight equal parts in a case where the cycle difference is 8.
(71) At the same time, the interpolation angle calculation unit 410 calculates an interpolation angle in the area.
?.sub.interp=a tan2(cos.sub.A,sin.sub.A)?a tan2(cos.sub.c,sin.sub.c)(6)
(72) Since Track C has 56 cycles, cycles of fluctuations of sin.sub.c and cos.sub.c are 56 cycles, respectively. Therefore, when arctangent2 of sin.sub.c and cos.sub.c is calculated, 56 cycles of an increase and decrease are repeated each time the rotating body 100 rotates once. Since the right side of Equation 6 repeats an increase and decrease in eight cycles, which is a cycle difference between Track A and the Track C, each time the rotating body 100 rotates once the interpolation angle ?.sub.interp represents an angle within one area. Therefore, the absolute angle can be obtained from the area number and a value of the interpolation angle ?.sub.interp.
(73) The absolute angle calculation unit 510 calculates an absolute angle ?.sub.enc1 from the calculated area number and the interpolation angle. As described above, since the angle of one area is larger than that of one slit, the probability that the value of the absolute angle ?.sub.ref will exist near the boundary of the adjacent area is low, but an angle error may occur in the absolute angle ?.sub.enc1 obtained by the absolute angle calculation unit 510 due to a deviation in determination of the area number. For example, in a case where the area number calculation unit 310 erroneously determines an adjacent area number, in a case where the cycle difference between Track A and Track C is 8, an angular deviation of 360/8=45? corresponding to one area occurs. Therefore, a reference angle obtained by the absolute angle calculation unit 250 and the absolute angle obtained by the absolute angle calculation unit 510 are compared with each other to detect an angle deviation by the angle deviation detection unit 610 and correct the angle deviation by the angle deviation correction unit 710. Processing performed by the angle deviation detection unit 610 and the angle deviation correction unit 710 is basically similar to the processing performed by the angle deviation detection unit 600 and the angle deviation correction unit 700 illustrated in
(74)
(75) In step S36, the absolute angle ?.sub.ref is calculated by taking a difference between the values obtained in steps S30 and S32. In step S38, an area number N.sub.area is determined by using Equation in step S38, using the absolute angle ?.sub.ref, a cycle N.sub.A of Track A, and a cycle N.sub.C of Track C.
(76) In step S40, an interpolation angle ?.sub.interp in the area is calculated by taking a difference between the values obtained in steps S30 and S34. In step S42, the absolute angle ?.sub.enc1 is calculated from the area number and the interpolation angle ?.sub.interp using Equation illustrated in step S42. In the next step S44, the absolute angle ?.sub.enc1 obtained in step S42 and the absolute angle ?.sub.ref (reference angle) are compared with each other to determine whether or not an error has occurred in the determination of the area number. In a case where the error has occurred in the determination of the area number, the processing proceeds to step S46, and the absolute angle ?.sub.enc1 is corrected by the error in the area. determination. After step S46, the processing temporarily ends. Furthermore, in a case where the error has not occurred in the determination of the area number in step S44, the processing temporarily ends.
(77)
(78) In step S58, the absolute angle ?.sub.ref is calculated by taking a difference between the values obtained in steps S50 and S52. In step S60, a slit number N.sub.slit is determined by using Equation in step S60, using the absolute angle ?.sub.ref and a cycle N.sub.A of Track A. Furthermore, in step S56, the value obtained in step S50 is taken as an interpolation angle ?.sub.interp.
(79) In step S62, an absolute angle ?.sub.enc2 is calculated from the slit number N.sub.slit and the interpolation angle ?.sub.interp using Equation illustrated in step S62. In the next step S64, the absolute angle ?.sub.enc2 obtained in step S62 and the absolute angle ?.sub.enc1 corrected in step S46 of
(80) Hereinabove, the preferred embodiments of the present disclosure have been described in detail with reference to the accompanying drawings, but the technical scope of the present disclosure is not limited to such embodiments. It will be apparent to those skilled in the art of the present disclosure that various modifications or alterations can be conceived within the scope of the technical idea described in the claims, and it is naturally understood that these modifications or alterations also fall within the technical scope of the present disclosure.
(81) Furthermore, the effects described in the present specification are only illustrative or exemplary rather than being restrictive. That is, the technology according to the present disclosure can accomplish other effects apparent to those skilled in the art from the description of the present specification, in addition to or instead of the effects described above.
(82) Note that the following configurations also fall within the technical scope of the present disclosure.
(83) (1)
(84) A position detection device including:
(85) a reference position calculation unit that calculates a reference position of a moving body on the basis of a first signal and a second signal, the first signal being detected from a first track provided on the moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles;
(86) a slit specifying unit that specifies a slit corresponding to a position of the moving body among a plurality of slits on the basis of the reference position, the plurality of slits being obtained by dividing a moving range of the moving body;
(87) an in-slit position calculation unit that calculates an in-slit position of the moving body in the specified slit on a basis of the first signal; and
(88) a correction unit that corrects an absolute position of the moving body on the basis of the absolute position and the reference position, the absolute position being calculated on the basis of the specified slit and the in-slit position.
(89) (2)
(90) The position detection device according to the above (1), in which the first signal includes two sinusoidal waves having a phase difference of 90? therebetween, and the second signal includes two sinusoidal waves having a phase difference of 90? therebetween.
(91) (3)
(92) The position detection device according to the above (2), in which the reference position calculation unit calculates the reference position from a difference between a first value and a second value, the first value being obtained by calculating an arctangent of the two sinusoidal waves of the first signal, and the second value being obtained by calculating an arctangent of the two sinusoidal waves of the second signal.
(93) (4)
(94) The position detection device according to any one of the above (1) to (3), further including a detection unit that detects whether or not a position deviation occurs between the reference position and the absolute position on the basis of a difference between the reference position and the absolute position, in which the correction unit corrects the absolute position on the basis of the difference in a case where it is detected by the detection unit that the position deviation occurs.
(95) (5)
(96) The position detection device according to the above (4), in which the detection unit detects that the position deviation occurs in a case where the difference is larger than half of the predetermined cycles.
(97) (6)
(98) The position detection device according to the above (2), in which the in-slit position calculation unit calculates the in-slit position on the basis of a first value obtained by calculating an arctangent of the two sinusoidal waves of the first signal.
(99) (7)
(100) The position detection device according to any one of the above (1) to (6), further including as absolute position calculation unit that calculates the absolute position of the moving body.
(101) (8)
(102) The position detection device according to any one of the above (1) to (7), further including:
(103) a first signal detection unit that detects the first signal; and
(104) a second signal detection unit that detects the second signal.
(105) (9)
(106) The position detection device according to claim 1, further including:
(107) an area specifying unit that specifies an area corresponding to a position of the moving body among a plurality of areas on the basis of the reference position, the plurality of areas being obtained by dividing a moving range of the moving body;
(108) an in-area position calculating unit that calculates an in-area position of the moving body in the specified area on the basis of the first signal and a third signal, the third signal being detected from a third track provided on the moving body and having a scale of cycles less than the predetermined cycles; and
(109) a second correction unit that corrects a second absolute position of the moving body on the basis of the second absolute position and the reference position, the second absolute position being calculated on the basis of the specified area and the in-area position,
(110) in which the correction unit corrects the absolute position on the basis of the second absolute position and the absolute position using the second absolute position instead of the reference position.
(111) (10)
(112) The position detection device according to the above (9), further including a second detection unit that detects whether or not a position deviation occurs between the reference position and the second absolute position on the basis of a difference between the reference position and the second absolute position,
(113) in which the second correction unit corrects the second absolute position on the basis of the difference in a case where it is detected by the second detection unit that the position deviation occurs.
(114) (11)
(115) The position detection device according to the above (9), in which the in-area position calculation unit calculates the in-area position from a difference between a first value and a third value, the first value being obtained by calculating an arctangent of the two sinusoidal waves of the first signal, and the third value being obtained by calculating an arctangent of the two sinusoidal waves of the third signal.
(116) (12)
(117) The position detection device according to any one of the above (9) to (11), further including a second absolute position calculation unit that calculates the second absolute position of the moving body.
(118) (13)
(119) The position detection device according to any one of the above (9) to (12), further including a third signal detection unit that detects the third signal.
(120) (14)
(121) The position detection device according to any one of the above (1) to (13), in which the moving body rotates around a rotation center.
(122) (15)
(123) The position detection device according to any one of the above (1) to (13), in which the moving body linearly moves.
(124) (16)
(125) The position detection device according to any one of the above (1) to (15), in which the scale is configured by a gear shape or a rugged shape provided on the moving body or is configured by alternately magnetizing N poles and S poles.
(126) (17)
(127) The position detection device according to the above (8), in which the first signal detection unit detects the first signal corresponding to a change in light or a change in a magnetic field due to movement of the scale of the first track, and
(128) the second signal detection unit detects the second signal corresponding to a change in light or a change in a magnetic field due to movement of the scale of the second track.
(129) (18)
(130) The position detection device according to any one of the above (1) to (17), in which the second track has a scale having cycles smaller by one cycle than the predetermined cycles.
(131) (19)
(132) A position detection method including: calculating a reference position of a moving body on the basis of a first signal and a second signal, the first signal being detected from a first track provided on the moving body and having a scale of predetermined cycles, and the second signal being detected from a second track provided on the moving body and having a scale of cycles less than the predetermined cycles; specifying a slit corresponding to a position of the moving body among a plurality of slits on the basis of the reference position, the plurality of slits being obtained by dividing a moving range of the moving body; calculating an in-slit position of the moving body in the specified slit on the basis of the first signal; and correcting an absolute position of the moving body on the basis of the absolute position and the reference position, the absolute position being calculated on the basis of the specified slit and the in-slit position.
REFERENCE SIGNS LIST
(133) 100 Rotating body 200, 210, 220 Detection unit 250 First absolute angle calculation unit 300 Slit number calculation unit 310 Area number calculation unit 400 Interpolation angle calculation unit 500, 510 Absolute angle calculation unit 600 Angle deviation detection unit 700 Angle deviation correction unit