Encoder signal processing device, encoder and signal processing method and program

DE102017213259B4Active Publication Date: 2024-09-19FANUC LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
DE102017213259
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2016-08-04
Filing Date
2017-08-01
Publication Date
2024-09-19
Estimated Expiration
2037-08-01

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A encoder signal processing device (D) that acquires position data at each predetermined time interval from an original signal, which is an analog amount generated in an encoder according to a movement of a measurement target object, wherein the encoder signal processing device (D) comprises: a unit for calculating an approximate curve (51) that computes an approximate curve of a sensing position of order M≥3, where M is odd, based on the position data at at least M+1 points taken at equal time intervals T within a single cycle of the original signal generated by the encoder, wherein the approximate curve passes through the M+1 points and T is less than the time of the cycle;a unit for calculating an approximate error (52) that calculates an approximate value of the acquisition error of the position data at any given time based on the approximate curve of the acquisition position calculated by the unit for calculating an approximate curve (51); and a position data correction unit (53) that corrects the acquisition error of the position data at any given time based on the approximate value of the acquisition error of the position data calculated by the unit for calculating an approximate error (52).
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND OF THE INVENTION Field of the invention

[0001] The present invention relates to a sensor signal processing device, a sensor and a Signal processing method and a program. State of the art

[0002] It is conventionally known that an encoder has a detection error that is synchronous to a cycle of an original signal. This detection error occurs because the original signal is not a ideal sine or cosine signal, but an offset voltage, an amplitude difference, a phase difference, a waveform distortion, etc. If an output signal from a sensor contains a detection error, the detection accuracy of the position of a measuring object decreases. To correct such a detection error, According to a technique disclosed in Patent Document 1, an error amount is automatically detected and during operation corrected, taking advantage of the fact that the detection error is synchronous to a cycle of an original In order to further increase the detection accuracy of the position detected by an encoder, according to a the technique disclosed in Patent Document 2, position data which is a detection value of an original position signal, output from the encoder is interpolated with respect to an error of a position signal of the encoder, and a relationship between a target rotational position and a duration required to reach the position on which Based on the interpolated position data.

[0003] DE 603 ​​04 111 T2 relates to a signal processing device for an encoder, comprising a Storage device arranged to obtain the error data as error data corresponding to a plurality of detected Position data from the individual determined position data and the ideal position data that was previously were obtained under the assumption that the position data within each period of the analog signals change linearly change, and to store the detected position data and the error data as reference data; and a Correction device arranged to obtain the detection error data by correcting the reference data used, which are stored in the storage device for the detected position data, which is carried out with the help of the Devices for recording position data are recorded, whereby the determined position data are recorded using the The obtained detection error data are corrected.

[0004] US 2012 / 0 116 715 A1 relates to an encoder comprising a detector, a first Position data computer, a first data converter, a proximity device and a third position data computer. The first data converter is configured to convert the first position data calculated by the first position data computer converts position data into second position data whose second width in bits is greater than a first width in bits of the first position data. The proximity device is configured to calculate a proximity function that derives position data when timing data is input based on a plurality of the second Position data obtained by the first data converter at a plurality of consecutive sampling times be converted.

[0005] DE 11 2006 002 928 B4 relates to a position sensing error correction method comprising the following steps: a first step in which a correction parameter is first stored in a first storage device, which specifies one of the correction functions which scan error correction values ​​of a position detector are calculated by the correction functions which are approximated by a series of periodic functions; a second Step for reading the correction parameter from the first storage device, for calculating the Sampling error correction values ​​corresponding to the sampling positions and storing them in its second Storage device; and a third step for reading out the sampling error correction values.

[0006] US 2008 / 0 117 992 A1 relates to a high accuracy position detection signal in which a High-order distortion errors corrected by using a simple processing circuit and method Two measuring objects are moved at a constant speed, and analog signals that are displacement detected by the sensor signal detection section are converted into digital values ​​by an A / D converter The position data is then calculated by a position data calculator. the position data is encoded in a section for detecting error correction parameters and stored in a first memory saved.

[0007] JP 2010 - 019 825 A relates to a relay device provided with a memory for storing roughly corrected Data that is generated at a greater interval than one sampling period of an RDC 64. The device records digital angle signal values ​​by scanning of resolver signals, corrects a corresponding digital angle signal value under the recorded digital Angle signal values ​​based on the roughly corrected data, interpolated with respect to the digital angle Individual values ​​that differ from the corresponding digital angle signal value, the roughly corrected data, the correspond to the digital angle signal values ​​in the time series before and after, and corrects the digital Angle signal values ​​based on the interpolated results. Patent Document 1: Japanese Patent JP 3 772 121 B2 Patent Document 2: Unexamined Japanese Patent Application JP H11 - 249 742 A. OVERVIEW OF THE INVENTION

[0008] However, in the technique disclosed in Patent Document 1, a detection error is calculated at positions located in are arranged at equal intervals within a cycle, the calculated detection errors are stored in a register stored, acquired points are linearly interpolated to eliminate any acquisition error at any position calculate, and the position data is then corrected. In this case, correction amounts (ie, velocity components) are constant at fixed time intervals between recorded points, whereas a Velocity component of a correction amount at a detected point is discontinuous and a Acceleration component of a correction amount changes abruptly. Due to this, there is a possibility that this abrupt change has an influence on a torque command of a motor, which produces a torque corresponding of acceleration. In the technique disclosed in Patent Document 2, it is difficult to detect a detection error that synchronous to a cycle of an original signal, since the correction using position data is carried out within one rotation of an encoder.

[0009] It is an object of the present invention to reduce a change in an acceleration component which has an influence on a torque command when an error in an encoder output signal is corrected. (1) To solve the problem, a sensor signal processing device (for example a encoder signal processing device D, which is described later) according to one aspect of the present Invention a sensor signal processing device (D) which generates position data at each predetermined time interval from an original signal which is an analog amount that is generated in a sensor according to a movement of a measurement target object, wherein the encoder signal processing device comprises: a unit for Calculation of an approximate curve (for example, a calculation circuit for coefficients of a curve M- ter order 51, which is to be described below), which is an approximate curve or an approximate course a detection position, calculated on the basis of position data at at least three or more points, taken at equal intervals within one cycle of the original signal received from the encoder; a unit for calculating an approximate error (for example a calculation circuit for a detection error according to an M-th order curve 52, which is subsequently which gives an approximate value of the detection error of the position data at any Time is calculated based on the approximate curve of the detection position, which is from the unit to the Calculation of an approximated curve; and a position data correction unit (for example a correction calculation circuit for an M-th order curve 53, to be described below), which Detection error of the position data at any given time based on the approximate value of the Detection error of the position data calculated by the approximate error calculation unit is. (2) In the encoder signal processing device according to (1), the unit for calculating an approximate Curve Calculate detection positions at corresponding times, which are obtained by evenly dividing a Time duration between points of position data at both ends of a position data group under predetermined time intervals, where the position data group consists of at least three points from continuously recorded (n+1) position data (n≥2), whereby the calculation is based on Values ​​of the position data group and a straight line connecting the points of the position data at both ends of the Position data group connects when the measurement target object is within a predetermined speed range with a speed fluctuation within a predetermined value, and a curve approximated to a detection position is calculated, the detection positions at (M+1) points (M≥2) from the position data at the (M+1) points, which are approximated before and behind any point in time from the points in time that are in the predetermined time intervals are evenly distributed. (3) In the encoder signal processing device according to (2), the unit for calculating an approximate Curve an M-th order curve passing through the (M+1) points as the approximated curve of the Calculate capture position. (4) In the encoder signal processing device according to (3), the M-th order curve may be an odd be in order. (5) In the encoder signal processing device according to any one of the aspects (1) to (4), the unit for Calculation of an approximate error Detection errors at positions arranged at equal intervals are calculated and stored in advance based on the approximate curve of the detection position and can linearly interpolate the stored detection errors to calculate the detection error at any position to calculate. (6) An encoder according to one aspect of the present invention is an encoder that transmits position data to every predetermined time interval from an original signal which is an analog amount that according to a movement of a measurement target object, the encoder comprising: a unit for Calculating an approximate curve that is an approximate curve of a detection position based on the position data is calculated at at least three or more points located at equal intervals within a cycle of the original signal generated by the encoder; a unit for Calculation of an approximate error, which provides an approximate value of the detection error of the position data at any time based on the approximate curve of the detection position obtained from the unit for calculating an approximate curve; and a Position data correction unit that corrects the detection error of the position data at any time on the Based on the approximate value of the detection error of the position data provided by the unit to Calculation of an approximate error is corrected. (7) A signal processing method according to one aspect of the present invention is a Encoder signal processing method for acquiring position data at each predetermined time interval from an original signal which is an analog amount that is transmitted in an encoder according to a movement of a measurement target object, the encoder signal processing method comprising: a step of calculating an approximate curve to create an approximate curve of a detection position based on the To calculate position data at at least three or more points located at equal intervals within a cycle of the original signal generated by the encoder; a step to calculate an approximate error to obtain an approximate value of the detection error of the position data at a any time point based on the approximate curve of the detection position, which is in the step for calculating an approximate curve; and a position data correction step to the detection error of the position data at any point in time based on the approximated value of the position data acquisition error that was detected in the step of calculating a approximated error is calculated. (8) A program according to one aspect of the present invention is a program for controlling a computer that has a encoder signal processing device which generates position data at each predetermined time interval from a original signal, which is an analog amount that is recorded in an encoder according to a movement of a measurement target object is generated, prompts to implement: a function for calculating an approximate Curve to create an approximate curve of a detection position based on the position data at at least three or more points located at equal intervals within a cycle of the original signal generated by the encoder; a function for calculating an approximate Error to obtain an approximate value of the detection error of the position data at any time based on the approximate curve of the detection position obtained from the function for Calculation of an approximate curve; and a position data correction function to Detection error of the position data at any point in time based on the approximated value to correct the detection error of the position data caused by the function for calculating an approximate error is calculated.

[0010] According to the present invention, it is possible to reduce a change in an acceleration component, which has an influence on a torque command when an error in an encoder output signal is corrected. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing a structure of an encoder signal processing device according to a embodiment of the present invention. Fig. 2 is a detailed block diagram of a start condition determination circuit. Fig. 3 is an explanatory view of a first embodiment of the present invention. Fig. 4 is a schematic view showing how an approximate curve of a detection position from recorded position data. Fig. 5 is a schematic view showing a relationship between detection points used for approximation used, and an approximated curve. Fig. 6 is a view showing a case where detection positions in the example of position data, which are shown in Fig. 4, are linearly interpolated. Fig. 7 is a view showing velocity components at positions PX1 to PX9 in the example of Position data shown in Fig. 6. Fig. 8 is a view showing acceleration components at positions PX1 to PX9 in the example of the system shown in Fig. 6 shows the position data displayed. Fig. 9 is a view showing velocity components at positions PX1 to PX9 in the example of the Fig. 4 shows the position data. Fig. 10 is a view showing acceleration components at positions PX1 to PX9 in the example of the system shown in Fig. 4 shows the position data displayed. Fig. 11 is a schematic view showing detection points used to calculate coefficients for a Forward rotation and backward rotation are used when the order of an approximated curve is of odd order (in this example, third order). Fig. 12 is a schematic view showing detection points used to calculate coefficients for a forward rotation and a backward rotation can be used if the order of an approximated curve is an even order (in this example a second order). Fig. 13 is a schematic view showing a circuit structure for calculating a curve M-th order of a detection error according to a third embodiment. Fig. 14 is a schematic view showing how in an M-th order curve formed by detection points a detection error is calculated in advance at a time when two adjacent Detection points are evenly distributed. Fig. 15 is a block diagram showing a structure when an operation for calculating detection error data and a position data correction operation is performed by software. Fig. 16 is a flowchart showing the flow of a detection error data calculation process (a process of equivalent to a process performed by a circuit for calculating detection error data is executed by a processor. Fig. 17 is a flowchart showing the flow of a position data correction process (a process that equivalent to a process performed by a detection error correction circuit) which executed by a processor. DETAILED DESCRIPTION OF THE INVENTION

[0011] With reference to the drawings, an embodiment of the present invention will be described below. [First embodiment] [Construction]

[0012] Fig. 1 is a block diagram showing a structure of an encoder signal processing device D according to a embodiment of the present invention. In the present embodiment, analog Amplifier circuits 1a and 1b original signals in the form of a sine signal Sa and a cosine signal Sb, which are a detection unit of a sensor according to the movement of a measurement target object so that they are suitable for feeding into analog-to-digital converter circuits 2a and 2b in the next stage The analog-to-digital converter circuits 2a and 2b convert the amplified analog signals at each predetermined sampling cycle into digital signals. A digital interpolation circuit 3 calculates the position within of a cycle or period of the original signal (one cycle of the sinusoidal signal) based on the converted digital len value and outputs the calculated position to a detection error data calculation circuit 4.

[0013] The detection error data calculation circuit 4 comprises a start condition determination circuit 41, a Register group 42, a detection error calculation circuit 43, a detection error storage register 44 and a averaging circuit 45. The start condition determination circuit 41 receives position data from the digital Interpolation circuit 3 and determines whether a start condition is met. If the condition is met, a Number of points of position data P(0) to P(n+1) that are a very small number (in this example one) larger than the number of samples corresponding to one cycle of the original signal is stored in register group 42. In this example, assume that a cycle is sampled (n+1) times (n is an integer of 2 or greater).

[0014] The detection error calculation circuit 43 calculates detection error data from positions located in the same intervals or distances within a cycle, based on the respective states of the points of the position data P(0) to P(n+1) stored in the register group 42. Furthermore, the Detection error storage register 44 the calculated past detection error data for some points in the Past. The averaging circuit 45 averages the multiple cases of past detection error data stored in the Detection error storage register 44 and outputs the averaged detection error data to the circuit for Coefficient calculation of an M-th order curve 51 of the detection error correction circuit 5. The averaging multiple points of the detection error data is carried out to increase the accuracy of the detection error data. For the purpose of simple calculation, the detection error storage register 44 and the averaging circuit 45 not provided, and the detection error data calculated by the detection error calculation circuit 43 can be stored in the circuit for calculating the coefficients of an M-th order curve 51 can be stored without further changes.

[0015] The detection error correction circuit 5 comprises a circuit for calculating coefficients of a curve M-th order 51, a circuit for calculating the detection error of an M-th order curve 52 and a circuit for Correction calculation of an M-th order curve 53. The circuit for calculating the coefficients of an M-th order curve 51 calculates a coefficient of the M-th order curve passing through (M+1) points before and after the points in the Detection error storage register 44 stores the detection errors. Where M is an integer of 2 or greater. The M-order curve detection error calculation circuit 52 calculates a detection error on a any point in time on the curve M-th order, of which the coefficient is determined by the circuit to Coefficient calculation of a curve of M-th order 51 is calculated. The circuit for the correction calculation of a curve M- ter order 53 calculates and corrects a detection error of the position data obtained from the digital Interpolation circuit 3 using the detection error detected by the circuit for Detection error calculation of an M-th order curve 52 is calculated and gives the corrected detection error to a Position data generating circuit 6. The position data generating circuit 6 generates position data on the Based on the corrected position data within a cycle and the data received from a counter (which is in the Block view not shown) that measures the cycle of an original signal.

[0016] Fig. 2 is a detailed block diagram of the start condition determination circuit 41. The Start condition determination circuit 41 comprises three position data registers 411a, 411b and 411c, which store the position data a current, a previous and a previous sampling cycle of the points of position data which are output from the digital interpolation circuit 3 in each predetermined sampling cycle, and further comprises a first and a second speed calculation circuit 412a and 412b, a Zero crossing detection circuit 413, an acceleration calculation circuit 414 and a Position data register storage start determination and error calculation start signal determination circuit 415.

[0017] The position data for each of the predetermined sampling cycles output from the digital interpolation circuit 3 are stored in the current position data register 411a, the position data stored in the current position data register 411a are stored in the previous position data register 411b, and the position data stored in the previous position data register 411b, are stored in the register for the position data preceding the previous position data. In this way, the position data is shifted as soon as the position data from the digital interpolation circuit 3 (at each sampling cycle), which determines the elements of the position data for the current, the previous, and the previous sampling cycle.

[0018] The first speed calculation circuit 412a calculates a current speed based on a Difference between the current position data stored in the current position data register 411a and the position data stored in the previous position data register 411b, and the second Speed ​​calculation circuit 412b calculates a current speed of one cycle before on the Based on a difference between the elements of the position data stored in the register for previous Position data 411b and the register for the preceding position data 411c are stored. Furthermore, the acceleration calculation circuit 414 calculates an acceleration based on the difference between the Speeds calculated by the first and second acceleration calculation circuits 412a and 412b. The zero-crossing detection circuit 413 detects a zero-crossing point, which is the beginning of a cycle of the original signals Sa and Sb, based on the elements of the position data stored in the register for currently Position data 411a and in the previous position data register 411c.

[0019] When the zero crossing is detected by the zero crossing detection circuit 413 under the condition that a readout condition for position data is met, the position data register stores start determination and Error calculation start signal determination circuit 415 in the register group 42 position data P(0) to P(n+1) for one cycle or longer of the original signal containing the detected zero crossing, to the subsequent Zero crossing. Furthermore, the position data register memory start determination and Error calculation start signal determination circuit 415 sends an error calculation start signal to the Detection error calculation circuit when the subsequent zero crossing is detected.

[0020] The condition for retrieving or reading position data is that the speed (the Difference between position data P(-1) and P(0)) obtained from the first speed calculation circuit 412a is calculated is within a predetermined range, and if the accuracy is to be improved, that a Acceleration (a difference between the difference between position data P(-2) and P(-1) and the difference between P (-1) and P(0)), which is calculated by the acceleration calculation circuit 414, within a predetermined range and an acceleration (a difference between position data (P(n-2) and P(n-1) and the difference between P(n-1) and P(n)), which is detected by the first speed calculation circuit 412a, within a predetermined value. Beforehand, the essential parts of the encoder signal processing device D are constructed according to of the present embodiment. Next, various embodiments of a detection error correction method carried out in this embodiment.

[0021] Fig. 3 is an explanatory view of a first embodiment in which it is assumed that position data of a cycle of an original signal through n samples. That is, it is assumed that a sampling cycle is equal to Ts and a movement speed of a moving object (a rotating object) to which the sensor's detection unit is attached, has a constant speed v. If further an amount of movement (an angle of rotation) of a moving object for one cycle is equal to L, then L=n·Ts·v. If the sampling time is recorded after a zero crossing at time zero, and if the Time sampled position data P(0) and the position data at the first sampling time after detection of the subsequent zero crossing is equal to P(n), then a period of time that elapses until the position data P(n) obtained from the position data P(0), approximately one cycle (P(n)-P(0)=L).

[0022] If elements of position data for n samples within this one cycle are stored in a graph whose horizontal axis is a time axis and whose vertical axis is a recording position, Circles are generated on a wavy curve, as shown in Fig. 3. Since in Fig. 3 points of If acquisition position data 0 to L are repeatedly acquired, the acquisition position data are stored contiguously on a straight line using a detection point when a cycle L reaches the detection point ´´0´´ of the next single cycle.

[0023] Although the position data is calculated for each sampling cycle Ts, a moving distance between the Samples (I=v·Ts) remain constant because the speed v is constant and the sampling cycle Ts is also constant. Therefore, the horizontal axis in Fig. 3 shows a distance (angle of rotation) of a moving object. That is, an m-th sampling time is a time that occurs m Ts later than a sampling time at which the Position data P(0) were obtained, and is the position corresponding to the movement distance (the angle of rotation) of the moving object (I=m·v·Ts).

[0024] Since the moving object moves with constant speed v and the distance L ent correspondingly covers one cycle of the original signal in n sampling cycles Ts, the position changes linearly and the The movement distance at the m-th scan is I=L·m / n. Therefore, if the position data P(n) have the same value like the position data P(0) one cycle later, the position data lie on a straight line, as shown by the dashed line in Fig. 3, which connects the elements of the position data P(0) and P(n). The position data shown in Fig. 3 The dashed straight line shown indicates positions to be detected when the moving object is moving during of a cycle. However, if the positions that were actually sampled and recorded are the position P(m), the indicated by the circles in Fig. 3, a detection error D(m) is calculated as follows: D(m)=P(m)-[P(0)+L ⋅m / n]=P(m)-[P(0)+{P(n)-P(0)}×m / n]

[0025] In the present embodiment, the detection error correction circuit 5 can supply the error data D(m) to any position data P(m) without being limited to the position data that is sampled and recorded and it can correct the position data. That is, the circuit for calculating the coefficients for a curve M- ter order 51 can calculate coefficients of the approximated curve, the detection error calculation circuit for an M-th order curve 52 can calculate a detection error, and the correction calculation circuit for a M-th order curve 53 can correct the position data.

[0026] Fig. 4 is a schematic view showing how an approximate curve of a detection position is recorded position data. Fig. 4 shows an example in which the approximated curve of the recorded position by the following third-order curve: P(tx)=Atx3+Btx2+Ctx+D

[0027] In equation (1), A, B, C, and D are coefficients. As shown in Fig. 4, at positions PX5 to PX8 (between detection points P(m-1) and P(m)) the coefficients of a third-order curve defined by the detection points P(m-2), P(m-1), P(m) and P(m+1), with two points before and after each, be calculated in the following way.

[0028] Fig. 5 is a schematic view showing a relationship between detection points used to approximate used, and an approximate curve. As shown in Fig. 5, if a time point at which in which a moving object passes through a detection point P(m-1), is equal to t=0, the times at which the moving object the detection points P(m-2), P(m) and P(m+1) with the times with constant time intervals T is given as -T, T and 2T. Therefore, the following four equations for the coefficients A, B, C and D of the 3 2 Third-order curve P(t)=At +Bt +Ct+D, passing through the four detection points P(m-2), P(m-1), P(m) and P(m+1), fulfilled. P(m-2)=-AT3+BT2-CT+DP(m-1)=DP(m)=AT3+BT2+CT+DP(m+1)=8AT3+4BT2+2CT+D

[0029] From these four equations, the coefficients A, B, C and D can be calculated as follows: A=(-P(m-2)+3P(m-1) -3P(m)+P(m+1)) / 6T3 B=(P(m-2)-2P(m-1)+P(m)) / 2T2 C=(-2P(m-2)-3P(m-1)+6P(m)-P(m+1)) / 6T3 D=P(m-1)

[0030] When the coefficients A, B, C and D are calculated in this way, the approximate third-order curve P (t), and the detection error correction circuit 5 can correct a detection error at any time on of the approximated curve P(t) and correct the position data. Therefore, it is possible to change the Velocity components of an error amount and a change in the acceleration components of the To reduce the error amount and to influence a torque command or torque setpoint of a motor In this example, coefficients are calculated using the acquisition points P(m-1) and P(m) However, for the other detection points P(m-2) and P(m-1) or P(m) and P(m+1) the coefficients a third-order curve in a similar way based on two detection points before and after the detection point can be calculated, and a detection error can be calculated at any point in time and the position data can be corrected. [Comparison example]

[0031] The encoder signal processing device D with the above-described structure can change the Reduce acceleration components that affect a torque command when an error in the The output signal of the encoder is corrected, compared to when detection points are linearly interpolated. Fig. 6 is a view showing a case where detection positions for the example shown in Fig. 4 Position data are linearly interpolated. Furthermore, Fig. 7 is a view showing velocity components at positions PX1 to PX9 in the example of the position data shown in Fig. 6, and Fig. 8 is a view showing Acceleration components at positions PX1 to PX9 in the example position data shown in Fig. 6. The acceleration components shown in Fig. 8 indicate differences at adjacent points in time between Velocity components at the times shown in Fig. 7. Since in Fig. 6 the corresponding Detection points are linearly interpolated, the detection positions between detection points lie on a interpolated straight line. In this case, the velocity components at the detection positions between detection points are constant and the acceleration components are zero.

[0032] Fig. 9 is a view showing velocity components at positions PX1 to PX9 for the exemplary Fig. 4 shows the position data. Furthermore, Fig. 10 is a diagram showing acceleration components at positions PX1 to PX9 in the example of position data shown in Fig. 4. The positions shown in Fig. 10 Acceleration components indicate differences at adjacent times between velocity components at the times shown in Fig. 9. In the example of the position data shown in Fig. 4, the Detection positions between detection points on an approximated curve. In this case, the Velocity components at positions PX1 to PX9 have the values ​​shown in Fig. 9 and the Acceleration components at positions PX1 to PX9 have the values ​​shown in Fig. 10.

[0033] If the velocity components (Fig. 7) obtained when detection points are linearly interpolated are compared with the velocity components (Fig. 9) obtained when detection points are interpolated according to an approximate curve, it can be seen that a large change in the Velocity components are avoided when the detection points are interpolated according to an approximate curve as is the case in the present invention. Similarly, if the acceleration components ( Fig. 8), which are obtained when detection points are linearly interpolated with the acceleration components ( Fig. 10) obtained when detection points are interpolated according to an approximate curve It can be seen that a large change in the acceleration components can be avoided if the detection points are interpolated according to an approximated curve, as is the case in the present invention is. [Second embodiment]

[0034] Next, a second embodiment of the present invention will be described. In the second Embodiment, the order of the approximated curve shown in the first embodiment is reduced to a odd order to be able to correct position data appropriately, even if a sensor rotates in a reverse direction.

[0035] Fig. 11 is a schematic view showing detection points used to calculate coefficients for a Forward rotation and backward rotation can be used when the order of an approximated curve is odd order (in this example, a third order). The detection positions for the forward rotation in Fig. 6 and the detection positions for reverse rotation are reversed. As shown in Fig. 11, it is possible if the order of an approximated curve is a third order, the coefficients A, B, C and D of the curve third order using four detection points, each before and after a target time t are arranged, and it is possible to detect a detection error P(t ) at any time within the range xx of t ≤ t ≤ t as follows: P(tx)=ATx3+-Btx2+Ctx+D m-1 xm

[0036] Furthermore, since in the case of reverse rotation the same four detection points before and after the target time arranged as they are used for the forward rotation, the coefficients of the approximated curve is uniquely determined.

[0037] Fig. 12 is a schematic view showing detection points used to calculate coefficients for a Forward rotation and backward rotation can be used when the order of an approximated curve is even order (in this example a second order). The detection positions for the forward rotation in Fig. 12 and the detection positions for the reverse rotation are swapped. If the order of a approximated curve is a second order, it is possible to calculate the coefficients A, B and C of a second order curve according to the following equations using a single detection point of a time T , which is before m-1 a target time t , and using two detection points at times t and t , which are determined according to the xm m+1 time t. A=(P(m-1)-2P(m)+P(m+1)) / 2 B=(-P(m-1)+2P(m+1)) / 2 C=P(m) x

[0038] Using these coefficients, a detection error P(t ) at any time within the x range of t ≤ t ≤ t can be calculated as follows: P(tx)=Atx2+Btx2+C m-1 xm

[0039] However, in the case of reverse rotation, where a detection point at time t before the target time t m-1 and two detection points at times t and t after time t, in a similar way to xm m+1 x the forward rotation, the coefficients of a second-order curve defined by three different points. Therefore, if the encoder rotates in the reverse direction, it is It may be impossible to correct the position data in an appropriate manner. That is, by setting the order the approximated curve to an odd order, it is possible to obtain the position data in a more suitable way correct. [Third Embodiment]

[0040] Next, a third embodiment of the present invention will be described. In the third In this embodiment, to simplify the calculation of a detection error and to speed up the process, a predetermined detection error of an approximated curve is calculated and stored in advance. Fig. 13 is a schematic view showing a circuit structure for calculating the detection error of an M-th order curve 52 according to the present embodiment. Furthermore, Fig. 14 is a schematic view showing how in a M-th order curve passing through the detection points, a detection error calculated at a time in advance can be achieved if the detection points are evenly distributed.

[0041] As shown in Fig. 13, the circuit for calculating the detection error of an M-th order curve 52 of the present embodiment, a register 52a and can therefore store a predetermined calculated detection error in the Register 52a. As shown in Fig. 14, the detection error calculation circuit calculates a curve M- order in advance a detection error that lies on an M-th order curve at a time when Detection points are evenly distributed, and stores the calculated detection error in register 52a. In Fig. 14 shows an example in which a time period T between detection points P(m-1) and P(m) is evenly divided into eight segments, and detection errors P(1) to P(7) on the M-th order curve are recorded at corresponding times t1 to t7. These detection errors P(1) to P(7) are stored in register 52a.

[0042] The M-th order curve detection error calculation circuit 52 calculates a detection error to any point in time by linear interpolation of a time period containing any point in time, where Detection errors at times before and after the arbitrary time point can be used if the detection error of the For example, if a detection error P(X) is calculated by linear interpolation of a time period between times t5 and t6 in Fig. 14, then the detection error P(X) can be calculated under Applying detection errors P(5) and P(6) can be calculated as follows: P(X)=(P(6)-P(5))x(tx-t5) / T+P(5)

[0043] By calculating the detection error in this way, it is possible to simplify the calculation and process compared to detecting errors on the M-th order curve at any time are calculated sequentially. [Modification 1]

[0044] In the above-described embodiments, the start condition determination circuit 41 is in the Detection error data calculation circuit 4 is provided, and a data read command is sent to the register group 42 and a reference data calculation command is issued based on a determination result obtained by the Start condition determination circuit 41. However, if necessary, the Start condition determination circuit 41 is not provided, and a controller, such as a numerical control, which controls a system or facility in which this sensor is installed, a Determine the start condition, and the controller can issue a data read command and a reference data calculation command spend. [Modification 2]

[0045] In the above-described embodiments, the detection error data calculation circuit 4 and the Detection error correction circuit 5 may be configured as processors and the execution may be performed by software. Fig. 15 is a block diagram showing a structure when a detection error data calculation process and a Position data correction process is performed by software.

[0046] As shown in Fig. 15, when a detection error data calculation process and a Position data correction process is carried out by software, the encoder signal processing device D according to the present invention comprises a processor 100, a read-only memory (ROM) 110, a random access memory (RAM) 120, and a storage unit 130 instead of the detection error data calculation circuit 4 and the Detection error correction circuit 5 shown in Fig. 1.

[0047] The processor 100 executes a program for a detection error data calculation process and a program for a position data correction process stored in the ROM 110 or the storage unit 130. Various Programs for controlling the encoder signal processing device D are stored in the ROM 110 in advance. RAM 120 is formed by a semiconductor memory, such as a dynamic random access memory (DRAM) and stores data generated when the processor 100 executes various processes.

[0048] The storage unit 130 is formed by a non-volatile storage device, such as a hard disk or a flash memory and contains various programs, such as a program for a detection error data calculation process and a program for a position data correction process, and various data elements contained in the Encoder signal processing device D can be used.

[0049] Fig. 16 is a flowchart showing the flow of a detection error data calculation process (a process that equivalent to the process performed by the detection error data calculation circuit 4), which is executed by the processor 100. If a reference data generation command is issued manually or as a command from a Control system that controls a system or facility in which the sensor is installed, the Processor 100 first checks whether a predetermined detection error calculation start condition is met, which is based on the Based on sampling position data output from the digital interpolation circuit 3. That is, it is determined whether a current speed corresponds to a predetermined value or a current acceleration is within a predetermined value (step a1).

[0050] When it is determined that the predetermined detection error calculation start condition is satisfied, one or more cycles of the sampling position data output from the digital interpolation circuit 3 are read (Steps a2 and a3). When the position data reading is completed, it is determined whether an acceleration to The time of the end of reading a cycle of position data is within a predetermined range (step a4). If the acceleration is outside the predetermined range, the process returns to step a1 and Position data is read in again, as this means that there is a change in speed within a Cycle in which the position data is determined.

[0051] If it is determined in step a4 that the acceleration is within the predetermined range, the read position data is regarded as constant speed data, and position data P(0) and P(1) and P (n) and P(n+1) at a target position PA and the positions before and after a target position PB, which are one cycle later than the position PA occurs, are calculated from the read position data (steps a5 and a6). Sampling time of the position data P(0) is set to the time ´´0´´ and the times tA and tB, which represent the Positions PA and PB are calculated by interpolation (step a7). In steps a6 and a7, if the position PA is defined as a detection position immediately after a zero crossing, the times tA and tB equal to ´´0´´, as well as the product of the sampling cycle Ts and the number of samples n, and the interpolation is not required. On the other hand, if the position PA is set to any position in a scanning cycle, the Time tA by interpolation (e.g. linear interpolation) from the position data P(0) and P(1) which were before and after the position PA. Similarly, the time tB can be calculated by interpolation from the Position data P(n) and P(n+1) that lie before and after the position PB, which occurs one cycle later than the position PA, be calculated.

[0052] A time period between the times tA and tB is divided equally and position data from which one expected to comply The values ​​recorded at the division points are calculated in a similar way by interpolation. Furthermore, a Detection error at the expected detection position (position of the subdivision point) is calculated, and the expected Detection position (position of the subdivision point) and the detection error corresponding to it are compared correlated stored (step a8).

[0053] An index j is increased by 1 (an initial value of the index j is set to 0) and it is determined whether the value of index j has reached a predetermined number (steps a9 and a10). If the value of index j has reached the predetermined number has not been reached, the process returns to step a1. If the processes of steps a1 to a10 are repeated are executed and the index j reaches the predetermined number, an average of the j detection errors calculated with reference to the expected detection positions (positions of the subdivision points) are stored, calculated (step a11), it is a set consisting of the expected detection positions (positions of the subdivision points) and the mean of the detection error, to the circuit for calculating the coefficients of an M-th order curve 51 output (step a12), and the detection error data calculation process is completed.

[0054] Fig. 17 is a flowchart showing the flow of a position data correction process (a process that equivalent to the process carried out by the detection error correction circuit 5) which is carried out by the Processor 100 is executed. When the position data correction process begins, the Detection error correction circuit 5 inputs position data P(x) which is the output of the digital interpolation circuit 3 (step b1), and the M-order curve coefficient calculation circuit 51 calculates coefficients of a Curve M-th order passing through M+1 points before and after the detection error storage register 4 stored recording errors (step b2).

[0055] Subsequently, the detection error calculation circuit for an M-th order curve 52 calculates a Detection errors at any point in time on the M-th order curve whose coefficients are determined by the circuit for Coefficient calculation of an M-th order curve 51 are calculated (step b3). The circuit then calculates for the correction calculation of a curve of M-th order 53 the detection error of the position data and corrects it, the output by the digital interpolation circuit 3, using the detection error, which is calculated by the circuit for calculating the detection error of an M-th order curve 52, and the Detection error is output to the position data generating circuit 6 (step b4). Thereafter, the Position data generating circuit 6 Position data based on the corrected position data (the corrected Position data within a single cycle) output in this way and based on the Data output by a counter that measures the cycle of an original signal. With this setup the functions of the detection error data calculation circuit 4 and the detection error correction circuit 5 be set up by software, and additions or changes to the functions can be made in a more flexible manner be executed.

[0056] The present invention is not limited to the embodiments described above and can be implemented in be changed appropriately. For example, in the detection error correction circuit 5, the order of the curve M-th order as an approximated curve in a suitable manner depending on a specific application goal of the present invention. Furthermore, the sampling cycle for sampling the position data P(n) in suitably determined depending on the required accuracy of the approximated curve or the like become.

[0057] The encoder signal processing device D according to the previously described embodiments can be completely or partially by hardware, software, or a combination thereof. Setting up the encoder signal processing device of the software that the encoder signal processing device is computer that reads a program and executes it. If the Encoder signal processing device D is designed in hardware, the encoder signal processing device D wholly or partly by an integrated circuit (IC), such as an integrated circuit with high Integration density (LSI), an application-specific integrated circuit (ASIC), by a gate array or by a field- programmable gate array (FPGA), to name a few examples.

[0058] If the encoder signal processing device D is completely or partially configured by software, the Encoder signal processing device D can be implemented by a computer containing a memory unit, such as a hard disk or ROM containing a program that performs all or part of the function of the encoder signal processing device D, and the computer may include a DRAM for storing data required for operations are required, have a CPU and a bus that connects the corresponding units, the computer contains the information necessary for operation of the DRAM and causes the CPU to execute the program.

[0059] These programs can be stored using various types of computer-readable media and can be Computer-readable media include various types of physical storage media. Examples of computer-readable media include a magnetic recording medium (for example, a flexible floppy disk, a magnetic tape, or a hard disk drive), a magnetic-optical recording medium (for example a magnetic-optical floppy disk), a CD-ROM read-only memory, a CD-R, a CD-R / W and a semiconductor memory (for example, a mask ROM, a programmable ROM (PROM), an erasable PROM (EPROM), a flash ROM, or a random access memory (RAM). Furthermore, these programs can be downloaded to a computer user via a network.

[0060] Although the embodiments of the present invention have been described in detail, the Embodiments are merely specific examples of how the present invention is implemented. The technical The scope of the present invention is not limited to the embodiments described above. Various Changes may be made without departing from the scope of the present invention, and these Modifications are also within the technical scope of the present invention. EXPLANATION OF REFERENCE SYMBOLS D Encoder signal processing device 1a, 1b Analog amplifier circuit 2a, 2b Analog-to-digital converter circuit 3 Digital interpolation circuit 4 Detection error data calculation circuit 41 Start condition determination circuit 42 Register group 43 Detection error calculation circuit 44 acquisition error storage registers 45 Averaging circuit 5 Detection error correction circuit 51 Circuit for calculating the coefficients of an M-th order curve 52 Circuit for calculating the detection error of an M-th order curve 52a Register 53 Circuit for calculating the correction of an M-th order curve 6 Position data generation circuit 411a, 411b, position data register 411c 412a First speed calculation circuit 412b Second speed calculation circuit 413 Zero-crossing detection circuit 414 Acceleration calculation circuit 415 Position data register memory start determination and Error calculation start signal determination circuit 100 processor 110 ROM 120 RAM 130 storage unit

Claims

1. A sensor signal processing device (D) which receives position data at each predetermined time interval from a original signal, which is an analog amount that is generated in a sensor according to a movement of a measurement target object is generated, wherein the encoder signal processing device (D) comprises: an approximate curve calculation unit (51) which calculates an approximate curve of a Detection position with order M≥3, where M is odd, calculated based on the position data at at least M+1 points taken at equal time intervals T within a single cycle of the signal generated by the encoder original signal, where the approximated curve passes through the M+1 points and T is smaller than the duration of the cycle; an approximate error calculation unit (52) which calculates an approximate value of the detection error of the Position data at any point in time based on the approximate curve of the detection position calculated by the approximate curve calculation unit (51); and a position data correction unit (53) which corrects the detection error of the position data at the arbitrary time point on the Based on the approximate value of the detection error of the position data used by the unit to calculate a approximated error (52) is corrected.

2. The encoder signal processing device (D) according to claim 1, wherein the unit for calculating an approximated curve (51), if the target object is within a predetermined speed range with a Speed ​​change within a predetermined value, an approximate curve of a Detection position is calculated, which is a detection position at M+1 points, where M≥3 and M is odd, from the Position data approximated at the M+1 points that lie before and after any of the points in time that by equally dividing a period of time between points of position data at both ends of a Position data group is obtained at predetermined time intervals, wherein the position data group consists of at least three elements of continuously acquired n+1 position data, where n≥3, and Position detection error calculated at the M+1 points.

3. The encoder signal processing device (D) according to one of claims 1 to 2, wherein the unit for calculating the approximated error (52) detection errors at positions arranged at equal intervals based on the approximate curve of the detection position is calculated and stored in advance and the stored Detection error is linearly interpolated to calculate the detection error at any position.

4. Encoder that acquires position data at each predetermined time interval from an original signal that is a analog amount generated according to a movement of a measurement target object, the encoder comprising: an approximate curve calculation unit (51) which calculates an approximate curve of a detection position with order M≥3, where M is odd, calculated based on the position data at at least M+1 points, the taken at equal time intervals T within one cycle of the original signal generated by the encoder where the approximated curve passes through the M+1 points and T is less than the duration of the cycle; an approximate error calculation unit (52) which calculates an approximate value of the detection error of the Position data at any point in time based on the approximate curve of the detection position obtained from the unit for calculating an approximate curve (51); and a position data correction unit (53) which corrects the detection error of the position data at the arbitrary time point on the Based on the approximate value of the detection error of the position data used by the unit to calculate a approximated error (52) is corrected.

5. A sensor signal processing method for acquiring position data at each predetermined time interval from a original signal, which is an analog amount that is generated in a sensor according to a movement of a measurement target object is generated, wherein the encoder signal processing method comprises: an approximate curve calculation step to calculate an approximate curve of a detection position with order M≥3, where M is odd, based on the detection error of the position data at least M+1 points located at equal time intervals T within a single cycle of the signal generated by the encoder original signal, where the approximated curve passes through the M+1 points and T is smaller than the duration of the cycle; an approximate error calculation step to determine an approximate value of the detection error of the Position data at any point in time based on the approximate curve of the detection position shown in the calculation step for an approximated curve; and a position data correction step to correct the position data acquisition error at any point in time based on the approximate value of the detection error of the position data obtained in the step of calculating the approximated error is calculated.

6. A non-transitory computer-readable storage medium for storing a program that a computer forming a sensor signal processing device (D) which generates position data at each predetermined Time interval from an original signal which is an analog amount stored in a sensor according to a Movement of a measurement target object causes the following to be implemented: a function for calculating an approximate curve to calculate an approximate curve of a detection position with order M≥3, where M is odd, based on the position data at at least M+1 points, which are measured at equal time intervals T within a single cycle of the original signal generated by the encoder where the approximated curve passes through the M+1 points and T is less than the duration of the cycle is; a function for calculating an approximate error to obtain an approximate value of the detection error of the Position data at any point in time based on the approximate curve of the detection position, the calculated by the function for calculating an approximate curve; and a position data correction function to correct the detection error of the position data at any time on the Based on the approximate value of the detection error of the position data obtained by the function for calculating an approximate error is calculated.

Citation Information

Patent Citations

  • Servo motor and position detecting method therefor

    JP1999249742A

  • Encoder signal processor

    JP3772121B2

  • Position scanning error correction method

    DE112006002928B4

  • signal processing device for an encoder

    DE60304111T2

  • Position detection apparatus, position detection method, and apparatus and method for detecting rotation angle position

    JP2010019825A