[go: up one dir, main page]

WO2024134705A1 - Magnetic rotary encoder and backup control method therefor - Google Patents

Magnetic rotary encoder and backup control method therefor Download PDF

Info

Publication number
WO2024134705A1
WO2024134705A1 PCT/JP2022/046581 JP2022046581W WO2024134705A1 WO 2024134705 A1 WO2024134705 A1 WO 2024134705A1 JP 2022046581 W JP2022046581 W JP 2022046581W WO 2024134705 A1 WO2024134705 A1 WO 2024134705A1
Authority
WO
WIPO (PCT)
Prior art keywords
magnetic sensor
data
signal
processing unit
analog signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/JP2022/046581
Other languages
French (fr)
Japanese (ja)
Inventor
純一 多田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Delta Electronics Japan Inc
Original Assignee
Delta Electronics Japan Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Delta Electronics Japan Inc filed Critical Delta Electronics Japan Inc
Priority to CN202280006886.3A priority Critical patent/CN120359392A/en
Priority to JP2023511600A priority patent/JPWO2024134705A1/ja
Priority to PCT/JP2022/046581 priority patent/WO2024134705A1/en
Priority to TW112106731A priority patent/TWI849769B/en
Publication of WO2024134705A1 publication Critical patent/WO2024134705A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains

Definitions

  • the present invention relates to a magnetic rotary encoder and a backup control method thereof, and to a magnetic rotary encoder with a backup function in the event of failure of a magnetic sensor or loss of power, and to a backup control method.
  • Rotary encoders are used to detect the angular position and rotational speed of a rotating shaft driven by a rotating electric machine.
  • a motor such as a brushless DC motor
  • absolute digital signals and incremental digital signals related to the angular position are generated and output based on the angular position and rotational speed of the rotating shaft detected by a magnetic sensor, and these signals are used to control the motor as a servo motor.
  • Rotary encoders used to control equipment such as industrial robots where system redundancy is important are provided with a backup control function (fail-safe function) that uses other normal magnetic sensors so that the equipment can continue to operate safely even if the rotary encoder breaks down during operation.
  • the rotation angle detection device disclosed in Patent Document 1 has a magnetic flux detection unit that includes three or more rotation angle sensors using magnetic detection elements such as MR elements or Hall elements, and a rotation angle derivation unit that calculates the rotation angle of the output shaft based on the rotation of the rotation angle sensors other than the rotation angle sensor that has been determined to be abnormal.
  • Patent Document 2 discloses an invention in which, in a motor rotation angle detection device equipped with a GMR sensor and an AMR sensor, under normal circumstances, the output of the AMR sensor is corrected using the output of the GMR sensor to determine the mechanical angle ⁇ , and in the event of a failure of the GMR sensor, the mechanical angle ⁇ is detected using only the output of the AMR sensor to execute backup control.
  • the microcomputer is equipped with a counter, and when it determines that it is time to perform offset correction based on the output of the GMR sensor, it records the counter value as 1 in the counter, and in the event of a failure of the GMR sensor, it performs offset correction on the output value of the AMR sensor based on this counter value.
  • the encoder with an optical or magnetic angle detection unit disclosed in Patent Document 3 includes a primary battery, such as a battery, button cell, or dry cell, and a rechargeable secondary battery.
  • This secondary battery is charged by an electric signal generating unit that uses a magnetosensitive wire, such as a Wiegand wire, and the invention disclosed is capable of detecting at least a portion of the rotational position information of the rotating shaft (e.g., multi-rotation information) even when the main power supply of the device in which the encoder device is mounted is not turned on (emergency state, backup state).
  • Patent Document 1 if one rotation angle sensor of a rotation angle detection device is determined to be abnormal, the rotation angle of the output shaft can be calculated based on the rotation of only the other normal rotation angle sensors. Therefore, various industrial machines controlled by this rotation angle detection device have the advantage that they can continue to operate safely even if one rotation angle sensor becomes abnormal.
  • the invention of Patent Document 1 requires that three or more rotation angle sensors with the same type and characteristics be used, and if high-precision rotation angle sensors are used, the overall cost may increase. Depending on the application of various industrial machines, etc., there are also fields where backup control is required using cheaper rotation angle sensors that are less prone to failure.
  • the GMR sensor and AMR sensor are arranged at 180 degree intervals, so an offset occurs between the output of the GMR sensor and the output of the AMR sensor. Therefore, when the GMR sensor fails, the output value of the AMR sensor is offset corrected based on this counter value. However, this offset occurs due to the special structure in which the GMR sensor and AMR sensor are arranged at 180 degree intervals. Furthermore, Patent Document 2 does not mention making any correction other than the above offset correction when the GMR sensor fails.
  • the power supply system is equipped with a power supply switch (power supply selection section, selection section), and this power supply switch is configured to switch (select) whether power is supplied to the position detection system from a primary battery or a secondary battery charged by an electrical signal generating unit.
  • a power supply switch power supply selection section, selection section
  • this power supply switch is configured to switch (select) whether power is supplied to the position detection system from a primary battery or a secondary battery charged by an electrical signal generating unit.
  • the power supply switch fails, there is a possibility that power will not be supplied appropriately to the position detection system.
  • One object of the present invention is to provide a magnetic rotary encoder and a backup control method thereof which can generate highly accurate rotation angle information using the output signal of a first magnetic sensor under normal conditions, and generate relatively highly accurate rotation angle information by using the output signal of a second magnetic sensor which is less accurate than the first magnetic sensor but less expensive as position information for backup control in the event that the first magnetic sensor fails.
  • Another object of the present invention is to provide a magnetic rotary encoder equipped with a backup control function that can properly record information on the rotation angle of the motor's shaft even during a power outage, and properly provide the necessary information the next time the motor is started.
  • a rotary encoder includes: A magnet fixed to the rotating shaft; a first magnetic sensor signal processing unit that performs AD conversion on a first analog signal that is an output of a first magnetic sensor disposed opposite the magnet, and generates first digital data including two types of information, an absolute signal and an incremental signal, related to a rotation angle and a rotation direction of the rotating shaft, based on the AD converted data of the output of the first magnetic sensor; a second magnetic sensor signal processing unit that performs AD conversion on a second analog signal that is an output of a second magnetic sensor disposed opposite to the magnet, and generates second digital data including two types of information, an absolute signal and an incremental signal, related to the rotation angle and the rotation direction of the rotating shaft, based on the AD converted data of the output of the second magnetic sensor, the second magnetic sensor has a lower resolution than the first magnetic sensor; the second magnetic sensor signal processing unit has a fail-safe function that backs up the first magnetic sensor signal processing unit,
  • the second magnetic sensor signal processing unit includes: calibrating the second analog signal of
  • a rotary encoder can be provided that uses a second magnetic sensor, which is less accurate than the first magnetic sensor but is inexpensive, to generate relatively accurate position information, enabling highly reliable backup control.
  • the first magnetic sensor is arranged on a printed circuit board at a position corresponding to the axis of the rotating shaft
  • the second magnetic sensors are arranged on the same side of the printed circuit board as the first magnetic sensor and on a circumference centered on the axis of the rotating shaft, at 120 degree intervals
  • one temperature sensor is arranged on the printed circuit board.
  • the rotary encoder includes, as power supply units, a main power supply, a Barkhausen effect power supply, and a sub-battery, whose output voltage is controlled to a predetermined power.
  • the Barkhausen effect power supply and the sub-battery are power supplies that provide backup power in the event that the main power supply is lost.
  • the Barkhausen effect power supply is provided on the printed circuit board so as to be located on the back side of the first magnetic sensor, and includes a Barkhausen effect element that generates power by utilizing the rotating magnetic field of the magnet.
  • the sub-battery has a capacitor that is charged by the main power supply and the Barkhausen effect power supply.
  • a magnetic rotary encoder can be provided that has a backup control function that can properly record information on the rotation angle of the motor's rotating shaft even if either the first magnetic sensor or the second magnetic sensor fails, and even during a power outage, and can properly provide the information necessary the next time the motor is started.
  • the first analog signal, the second analog signal, the first digital data, and the second digital data are monitored, and if it is determined as a result of monitoring each of the data that there is an abnormality in the first magnetic sensor or the processing unit for the first magnetic sensor signal, in the processing unit for the second magnetic sensor signal, a calibrated analog signal is generated from the second analog signal of the second magnetic sensor based on a calibration history of the second analog signal, and calibrated second digital data is generated based on the calibrated analog signal and calibration data for the second digital data.
  • a calibrated analog signal is generated from the second analog signal of the second magnetic sensor based on a calibration history of the second analog signal
  • calibrated second digital data is generated based on the calibrated analog signal and calibration data for the second digital data.
  • FIG. 1 is a functional block diagram showing a configuration example of a rotary encoder according to a first embodiment of the present invention
  • 1 is a diagram illustrating an example of the configuration of a servo control system including a rotary encoder according to a first embodiment
  • 2 is a vertical cross-sectional view showing a configuration example of a magnetic sensor and a power supply unit in the rotary encoder of the first embodiment
  • FIG. FIG. 2 is a diagram illustrating an example of the circuit configuration of a power supply unit in the first embodiment.
  • 10 is a time chart showing the operation of the power supply unit, illustrating an example of the relationship between the power supply and the output signal of the rotary encoder when the main power supply goes from a normal state to a power outage.
  • FIG. 13 is a diagram illustrating another example of the configuration of the circuit of the power supply unit.
  • FIG. 11 is a diagram showing a process of digitizing and absoluteizing a first magnetic sensor signal.
  • 5 is a flowchart showing signal processing in a processing unit for a first magnetic sensor signal in the first embodiment.
  • 9A and 9B are diagrams showing examples of A-phase and B-phase signals based on the signal processing of FIG. 8, and incremental Z-phase, U-phase, V-phase, and W-phase signals generated based on these signals.
  • FIG. 11 is a diagram showing a process of digitizing and absoluteizing a second magnetic sensor signal.
  • 6 is a flowchart showing signal processing in a second magnetic sensor signal processing unit in the first embodiment.
  • FIG. 4 is a flowchart showing a process of a fail-safe control unit in the first embodiment.
  • 10 is a flowchart showing data processing of a processing unit for a second magnetic sensor signal during normal operation.
  • 13 is a flowchart showing data processing of a second magnetic sensor signal processing unit in a fail-safe mode.
  • FIG. 1 is a functional block diagram showing an example of the configuration of a rotary encoder
  • FIG. 2 is a diagram showing an example of the configuration of a servo control system equipped with this rotary encoder.
  • the rotary encoder 10 includes a magnetic sensor unit 11, a power supply unit 12, a temperature sensor 13, a system control unit 14, a first magnetic sensor signal processing unit 15, and a second magnetic sensor signal processing unit 16.
  • the rotary encoder 10 further includes one flat magnet 110 magnetized with one pole each of N and S.
  • This flat magnet is, for example, a ferrite magnet, and is fixed to one end surface of the rotating shaft 510 of the motor 50 as shown in Fig. 3.
  • a rare earth magnet such as a neodymium magnet or a samarium-cobalt magnet may be used instead of the ferrite magnet.
  • the magnetic sensor unit 11 includes a first magnetic sensor 111 and a second magnetic sensor 112 , and the first magnetic sensor 111 includes a temperature sensor 113 .
  • the first magnetic sensor 111 is composed of a pair of magnetic sensors (Sin, Cos), and is disposed in a position facing the magnet 110 in the axial direction of the rotating shaft 510. That is, the first magnetic sensor 111 is disposed on the printed circuit board 17 in a position corresponding to the axis O-O of the rotating shaft 510.
  • the power supply unit 12 includes a main power supply 121, a Barkhausen effect power supply 122, and a sub-battery 123.
  • the Barkhausen effect power supply 122 and the sub-battery 123 function as power supplies that supply power to the rotary encoder 10 when the main power supply is lost.
  • a Barkhausen effect power supply unit 115 is installed near the magnet 110. This Barkhausen effect power supply unit 115 is fixed to the printed circuit board 17 at a position that is the back surface of the first magnetic sensor 111 (see FIG. 3).
  • This Barkhausen effect power supply unit 115 has a compound magnetic wire and a coil. This compound magnetic wire is centered on the axis O-O and is arranged in a direction perpendicular to this axis.
  • the Barkhausen effect power supply unit 115 generates power by the Barkhausen effect in response to the magnetic flux ⁇ b of the flat magnet 110 as the rotating shaft 510 rotates, and this output is supplied to the Barkhausen effect power supply 122.
  • the system control unit 14 has a function of outputting information from the first magnetic sensor signal processing unit 15 as the output of the rotary encoder 10 when the first magnetic sensor 111 and the first magnetic sensor signal processing unit 15 are functioning normally, and outputting information from the second magnetic sensor signal processing unit 16 when an abnormality occurs in the first magnetic sensor 111 and the first magnetic sensor signal processing unit 15.
  • the initial setting section 141 of the system control unit 14 has a setting section 142 that sets the motor type, number of poles, origin of the rotation axis, output conditions of the rotary encoder, etc. according to conditions input via a user interface, and a function for retaining fail-safe control data 143.
  • the fail-safe control data 143 includes, for example, data on trigonometric functions used to calibrate the analog output of the second magnetic sensor based on the analog output of the first magnetic sensor for data calibration, and data on linear functions used to calibrate the digital of the second magnetic sensor based on the digital output of the first magnetic sensor.
  • the encoder input/output control unit 144 has a function of controlling the input/output of the rotary encoder 10 according to initially set conditions.
  • the fail-safe control unit 145 controls the fail-safe mode that is executed when a magnetic sensor or other device fails.
  • the output switching unit 146 has a function of switching the output of the rotary encoder according to the operating state of the rotary encoder.
  • the serial/parallel signal transmitting/receiving unit 147 has a function of converting various types of information into parallel or serial signals and transmitting/receiving them between the rotary encoder 10 and the servo control device 40.
  • the rotary encoder 10 of the present invention can be applied to various rotating electrical machines that require absolute data and incremental A, B, and Z data.
  • the processing unit 15 of the first magnetic sensor signal performs AD conversion on the first analog signal, which is the output of the first magnetic sensor arranged opposite to the magnet 110, and generates first digital data related to the rotation angle and rotation direction of the rotating shaft based on the AD conversion data of the output of the first magnetic sensor. That is, the processing unit 15 of the first magnetic sensor signal has a function of generating two types of information, that is, a high-resolution (e.g., 27 bit/revolution) absolute signal and an incremental signal, which are quantized under a predetermined condition, as first digital data with high accuracy with respect to the rotation angle information of the rotating shaft. For example, incremental A, B, Z, (U, V, W) signals are converted from the rotary encoder as the first digital data into transmission data (BUS) for serial transmission and transmitted to the servo control device via a communication cable.
  • BUS transmission data
  • the second magnetic sensor signal processing unit 16 also performs AD conversion on the second analog signal, which is the output of the second magnetic sensor arranged opposite the magnet 110, and generates second digital data related to the rotation angle and direction of the rotating shaft based on the AD converted data of the output of the second magnetic sensor.
  • the second magnetic sensor signal processing unit 16 has the function of generating and outputting two types of information, an absolute signal and an incremental signal with a relatively high resolution (e.g., 21 bits/revolution), with high precision as second digital data, regarding the rotation angle information of the rotating shaft, in which the analog output of the second magnetic sensor 112 is corrected based on the correction history for the signal generated by the first magnetic sensor signal processing unit and quantized under predetermined conditions.
  • the first magnetic sensor signal processing unit 15 includes an analog signal (sin, cos)/amplitude detection section 151 , which is a first analog signal processing section, an AD converter 152 , and a digital signal processing section 153 .
  • the analog signal (sin, cos)/amplitude detection unit 151 receives sampling data of the first analog signal (sin signal, cos signal) of the first magnetic sensor 111 as time-series data, calculates the number of rotations, and temporarily records in memory the rotation angle (mechanical angle) and amplitude of these analog signals, the number of rotations Nx of the rotating shaft, and the data of the temperature sensor 13 in association with each other.
  • the sampling data of the analog signal of the first magnetic sensor 111 is input to, for example, a 64-bit AD converter 152 (ADC-1 (sin) 1521, ADC-2 (cos) 1522) and converted into digital values, and these converted values are recorded in the EEPROM-1 (1523) as time-series data.
  • ADC-1 sin
  • ADC-2 cos
  • the first magnetic sensor absolute signal generating unit 1532 of the digital signal processing unit 153 obtains AD converted data of the rotating shaft from the EEPROM-1, generates an absolute signal of the rotation angle of the rotating shaft, and records it in the EEPROM-2 as time-series data. Moreover, the digital signal/frequency/rotation direction detection unit 1531 of the first magnetic sensor obtains a digital value from the EEPROM-1, calculates its frequency, and records it together with the rotation direction data in the EEPROM-2.
  • the incremental A, B, Z, (U, V, W) signal generating unit 1533 of the first magnetic sensor obtains the digital value of the absolute signal of the rotation angle of the rotating shaft from EEPROM-2 as the first digital data, generates incremental A, B, Z, (U, V, W) signals, and records them in EEPROM-3 as time-series data.
  • the second magnetic sensor signal processing unit 16 includes an analog signal processing section 160 , an AD converter 162 , and a digital signal processing section 163 .
  • the distortion correction/amplitude/synchronization correction unit 161 for the analog signal of the second magnetic sensor receives sampling data of the second analog signal (sine signal of H1, sine signal of H2, sine signal of H3) of the second magnetic sensor 112 as time-series data, performs distortion correction corresponding to the eccentricity of each Hall element (H1, H2, H3) with respect to the axis O-O, calculates the rotation speed, and records it in memory.
  • the rotation angle (mechanical angle) and amplitude of the first analog signal of the first magnetic sensor 111, the number of rotations Nx, and data of the temperature sensor 13 are acquired from the analog signal (sin, cos)/amplitude detection section 151 of the first magnetic sensor signal processing unit 15. Then, these data are correlated and temporarily recorded in memory. Furthermore, the data for each revolution of the second analog signal of the second magnetic sensor 112 is subjected to amplitude correction and synchronization correction, i.e., data calibration, based on the rotation angle (mechanical angle) and amplitude of the first analog signal, the number of revolutions Nx, and the data of the temperature sensor 13, and the calibrated analog data is recorded in the EEPROM-4 (165) together with the correction history.
  • amplitude correction and synchronization correction i.e., data calibration
  • the second analog signal may be subjected to amplitude correction and synchronization correction for each signal corresponding to each Hall element (H1, H2, H3) individually with the first analog signal.
  • the data of the second analog signal at any rotation angle of the second magnetic sensor 112 can be directly calibrated based on the data of the first analog signal of the first magnetic sensor 111 in a corresponding positional relationship, based on the preset data of the relationship between the approximation of a trigonometric function and the temperature sensor 13.
  • the calibrated analog data is input to, for example, a 64-bit AD converter 162 (ADC-3 to 5 (1621-1623)) and converted into digital values, and these converted values are recorded in an EEPROM-5 (1624) as time-series data.
  • the fail-safe/signal correction unit 164 performs amplitude and synchronization correction of the second analog signal of the second magnetic sensor based on the correction history recorded in the EEPROM-4 (165), and records the result in the EEPROM-4 (165) as calibrated analog data.
  • the second magnetic sensor absolute signal generating unit 1632 of the digital signal processing unit 163 acquires AD conversion data for each rotation of the rotating shaft from the EEPROM-5, generates an absolute signal of the rotation angle of the rotating shaft, and records it in memory as time-series (provisional) absolute data.
  • This (provisional) absolute data is calibrated in the second magnetic sensor digital signal detection and frequency/rotation direction correction unit 1631.
  • the second magnetic sensor digital signal detection and frequency/rotation direction correction unit 1631 acquires the frequency/rotation direction data of the digital signal for each rotation of the first magnetic sensor generated by the first magnetic sensor digital signal frequency/rotation direction detection unit 1531, performs synchronization and rotation direction correction of the time-series absolute data of the second magnetic sensor, and records the result in the EEPROM-7 as second digital data, i.e., the second magnetic sensor's (formal) absolute data.
  • the correction history of the absolute data is recorded in EEPROM-6 (166).
  • the second digital data at any rotation angle of the second magnetic sensor 112 can be calibrated based on the first digital data of the first magnetic sensor 111, which is in a corresponding positional relationship, based on a preset approximation of a linear function and the data of the temperature sensor 13.
  • the incremental A, B, Z, (U, V, W) signal generating unit 1633 of the second magnetic sensor obtains the digital value of the calibrated absolute signal of the rotation angle of the rotating shaft from the EEPROM-7, generates incremental A, B, Z, (U, V, W) signals, and records them in the EEPROM-8 as time-series data.
  • the AD conversion data for each rotation of the rotating shaft obtained from EEPROM-5 is used to correct the frequency/rotation direction of the absolute data of the second magnetic sensor based on the correction history of the absolute data recorded in EEPROM-6, and the result is recorded in EEPROM-6 as a calibrated digital value/correction history.
  • the functional blocks may be divided in any way, and it goes without saying that the functional blocks may be realized by a common program, or a specific functional block may be realized by a plurality of different programs or IC circuits.
  • each of the above functions can be realized by installing a program for executing each of the above functions in a microcomputer having a CPU and memory.
  • the rotary encoder 10 together with the servo control device 40 and the motor 50, constitutes a servo control system.
  • the magnetic sensor unit 11 except for the flat magnet 110, the power supply unit 12, the temperature sensor 13, the system control unit 14, the first magnetic sensor signal processing unit 15, and the second magnetic sensor signal processing unit 16, are formed or mounted on a printed circuit board 17.
  • This printed circuit board is fixed to a housing (not shown) of the motor 50.
  • the system control unit 14, the first magnetic sensor signal processing unit 15, and the second magnetic sensor signal processing unit 16 are realized as a dedicated FPGA 18 (Field Programmable Gate Array), or as an ASIC (Application Specific Integrated Circuit), or as an IC circuit chip using a general-purpose single-chip microcomputer, and are formed on a printed circuit board 17.
  • the system control unit 14, the first magnetic sensor signal processing unit 15, and the second magnetic sensor signal processing unit 16 are functionally divided blocks, and these functions are realized by writing programs in the digital signal processing unit, SSC interface, incremental interface, etc. of the FPGA or ASIC.
  • the FPGA includes a ROM, a RAM, and at least one rewritable (overwritable) nonvolatile memory, and is connected to the CPU via a bus.
  • a EEPROM or FRAM Feroelectric Random Access Memory, (registered trademark)
  • such a memory will be simply referred to as an EEPROM.
  • the pair of magnetoresistance effect elements constituting the first magnetic sensor 111 are arranged at a predetermined interval in the direction of rotation of the rotating shaft so that the phases of the output analog signals are shifted by 90 degrees from each other.
  • a TMR (Tunnel magnetoresistance effect) element is used as the first magnetic sensor 111.
  • the first magnetic sensor 111 senses the magnetic flux ⁇ a of the flat magnet 110 as the rotating shaft 510 rotates, and outputs a sine wave and a cosine wave.
  • the position of one end of the boundary line between the north pole region and the south pole region of magnet 110 is a specific position in the circumferential direction on the rotation shaft, that is, the origin position (Z 0 ) corresponding to the rising point of the A-phase pulse.
  • Hall elements The three Hall elements of the second magnetic sensor 112 are arranged at equal intervals on the printed circuit board 17, radially outside the first magnetic sensor 111. Hall ICs may be used instead of these Hall elements. Hereinafter, the Hall elements or Hall ICs will simply be referred to as "Hall elements.”
  • the main power supply 121 of the power supply unit 12 includes a main power supply section 1211 in which power supplied from, for example, a commercial power supply is converted into DC power and controlled to a predetermined DC voltage Vcc, for example, 5 V.
  • This main power supply section 1211 supplies power to an output terminal 124 via a diode 1221.
  • the Barkhausen effect power generation power supply 122 outputs a positive and negative pulse waveform at 180 degree intervals for each rotation of the rotating shaft from the Barkhausen effect power generation unit 115. This power is supplied to the output terminal 124 via a full-wave waveform circuit 1222, a smoothing circuit 1223, and a diode 1231 as DC power of a predetermined voltage Vcc.
  • the sub-battery 123 includes a current limiting circuit 1232, a capacitor 1233, and a voltage limiting circuit 1234, and supplies DC power of a predetermined voltage Vcc to the output terminal 124.
  • the capacitor 1233 is supplied with power from both the main power supply 121 and the Barkhausen effect power generation power supply 122 individually.
  • the capacitor 1233 functions as a power supply that supplies power to the rotary encoder 10 when the power supply from the main power supply is lost and the rotation of the rotating shaft is also stopped.
  • the current limiting circuit 1232 controls the capacitor 1233 so that an allowable range of charge is accumulated in the capacitor 1233 by limiting the current supplied to the capacitor 1233 when the motor rotation speed is high and the amount of power generated by the Barkhausen effect power generation unit 115 is large.
  • an electric double layer capacitor may be used as the capacitor 1233.
  • the capacitor 1233 may be configured by connecting multiple capacitors in parallel in order to make the voltage drop gentle.
  • the power supply line connected to the output terminal 124 of the power supply unit 12 is configured as three electrically independent lines, and power is supplied to the system control unit 14, the first magnetic sensor signal processing unit 15, the second magnetic sensor signal processing unit 16, and each sensor of the magnetic sensor unit 11.
  • FIG. 5 is a time chart showing the operation of the power supply unit, and is a diagram showing an example of the relationship between the power supply and the output signal of the rotary encoder when the main power supply goes from a normal state to a power outage.
  • the main power supply unit 1211 of the main power supply is unable to supply power at time t1, for example due to a power outage or malfunction, power is supplied to the rotary encoder 10 from the Barkhausen effect power generation power supply 122 which generates power as the rotating shaft rotates.
  • the output of the Barkhausen effect power generation decreases, and at time t2, it becomes impossible to supply DC power of the specified voltage Vcc.
  • the charge stored in the capacitor 1233 of the sub-battery 123 supplies power of the voltage Vcc to the rotary encoder 10. This allows the rotary encoder 10 to generate and record information on the rotation angle of the rotating shaft for a long period of time, for example, until time t3 when the rotation of the rotating shaft completely stops.
  • the rotating shaft is forcibly rotated by an external force, for example, human force, via a robot arm after the rotating shaft has stopped due to a power outage
  • power is supplied to the rotary encoder 10 from time t4 to t5 by the output of the Barkhausen effect power generation and the charge stored in the capacitor 1233. Therefore, even if the rotating shaft is rotated by an external force after the rotating shaft has stopped due to a power outage, information on the rotation angle of the rotating shaft is recorded.
  • Fig. 6 is a diagram showing another example of the configuration of the circuit of the power supply unit.
  • a MOSFET 1236 controlled by a PWM control unit 1235 is adopted, and the current supplied from the Barkhausen effect power generating unit 115 to the capacitor 1233 is PWM controlled.
  • Reference numeral 1237 denotes a resistor for current detection.
  • the capacitor 1233 is supplied with power individually from both the main power supply 121 and the Barkhausen effect power generating source 122.
  • the MOSFET 1236 is PWM controlled according to the detected values of the charging voltage and current of the capacitor 1233, and the charge stored in the capacitor 1233 is controlled to be an optimal value.
  • the rotary encoder 10 can generate and record information on the rotation angle of the rotating shaft for a long period of time, for example, until the rotation of the rotating shaft stops or until it is subsequently driven by an external force.
  • the first magnetic sensor signal processing unit 15 obtains information on the number of poles of the motor and the origin of the rotation shaft from the initial setting values (S701). 7A, the first magnetic sensor (TMR sensor) 111 outputs a first analog signal of 360 degrees (mechanical angle) each for one period of a sine wave and a cosine wave in response to one rotation of the rotating shaft.
  • the data of the rotation angle (mechanical angle) and amplitude of these first analog signals, and the number of rotations Nx, are correlated with the temperature Ta of the temperature sensor 13 by the analog signal (sin, cos)/amplitude detection section 151 of the first magnetic sensor signal processing unit 15, and recorded in memory.
  • analog signal (sin, cos)/amplitude detection section 151 of the first magnetic sensor signal processing unit 15 is necessary since Hall elements are more susceptible to the influence of the ambient temperature than TMR sensors.
  • the first analog signal output from the first magnetic sensor is an accurate sine wave
  • y1 i.e., amplitude
  • y1(x, t) Asin2 ⁇ (t/T-x/ ⁇ ) (1)
  • T the period
  • the wavelength
  • A a constant.
  • the actual analog signal output from the first magnetic sensor is temperature compensated and can be considered to be close to the above equation (1).
  • an approximate trigonometric function y1(x, t, Ta) expressing the relationship between the sine wave and cosine wave of the actual analog signal output from the first magnetic sensor and the substrate temperature Ta can be obtained in advance and stored as initial setting data.
  • this approximate trigonometric function data on the rotation angle (mechanical angle) and amplitude of the first analog signal, and the number of rotations Nx can be generated. This makes it possible to generate highly accurate calibration data for the second analog signal over a wide range from low rotation speeds to high rotation speeds.
  • the analog signals (sine signal, cosine signal) are input to an AD converter 152, quantized, and converted into a multi-divided digital signal by an interpolation process, and then converted into digital values containing information on phases A and B. These converted values are correlated with the rotation speed Nx and temperature Ta, and are recorded in the EEPROM-1.
  • the first magnetic sensor signal processing unit 15 obtains AD converted data of the first magnetic sensor signal (sine and cosine waves) from the EEPROM-1 (S702).
  • the first magnetic sensor signal processing unit 15 further performs time division or other interpolation on the digital waveform based on the AD converted data of the first analog signal (sine signal, cosine signal) as necessary, converts it into, for example, 27-bit data of a rotation angle indicating an absolute position from the origin, and calculates it as an absolute value (S703). Then, the absolute value is assigned a memory address and recorded in the memory (S704). That is, as shown in FIG.
  • the digital signal/frequency/rotation direction detection unit 1531 of the first magnetic sensor calculates the frequency for each rotation of the rotating shaft in either direction based on the digital value in EEPROM-1, generates an absolute value for each rotation in either direction, and records this in EEPROM-2 together with the rotation speed Nx, temperature Ta, and rotation direction data.
  • the absolute value obtained based on the digital value of EEPROM-1 is y2(x, t)
  • y2(x, t) can be expressed as a linear function related to the temperature Ta. That is, the absolute value as shown in FIG. 7C based on the actual analog signal output from the first magnetic sensor can also be approximated by the linear function. Therefore, an approximation formula for the absolute value based on the sine wave and cosine wave of the actual analog signal output from the first magnetic sensor according to the temperature Ta can be obtained in advance and stored as initial setting data.
  • the approximation formula for the absolute value can be used to generate the absolute value for each forward and reverse rotation. This makes it possible to generate highly accurate absolute data calibration data over a wide range from low speed rotation to high speed rotation.
  • the digital signal/frequency/rotation direction detection unit 1531 of the first magnetic sensor generates multi-rotation information including the rotation direction, rotation angle, and rotation count from the origin information and absolute value, and records this in EEPROM-2 (S711).
  • the absolute signal generation unit 1532 of the first magnetic sensor calculates the number of rotations from the origin information and the absolute value (S721), generates multi-rotation absolute information, and records it in EEPROM-2 as multi-rotation absolute data (S722).
  • the incremental A, B, Z (U, V, W) signal generating unit 1533 of the first magnetic sensor calculates A-phase and B-phase data from the AD conversion data and absolute value based on the A-phase and B-phase information shown in FIG. 7B (S731), and calculates the width data of Z-phase synchronized with the rising edge of A-phase and B-phase (S732). Furthermore, based on the A-phase, B-phase, and Z-phase width data, it generates U-phase, V-phase, and W-phase data as shown in FIG. 9 (S733), assigns addresses to the A-phase, B-phase, Z-phase, U-phase, V-phase, and W-phase data, and records them in EEPROM-3 as incremental data (S734).
  • a sine signal (H1 to H3), a sine signal of H2, and a sine signal of H3) that rises or falls every 180 degrees of one rotation is obtained as a second analog signal as shown by the solid line in Fig. 10(A).
  • This waveform shows data that has been corrected for distortion based on the installation position.
  • the Hall elements as the second magnetic sensor are subject to large fluctuations due to position errors, variations in element characteristics, environmental temperature, etc.
  • the dashed line shown in Fig. 10(A) shows the output of the corresponding first magnetic sensor.
  • the analog output data of the Hall element is stored in memory in association with the data of the rotation speed Nx and the temperature Ta.
  • the analog output data of the Hall element associated with the data of the temperature Ta can also be expressed by an approximation formula, similar to the above formula (1).
  • the rotation angle (mechanical angle) and amplitude of the analog signal of the first magnetic sensor 111, the number of revolutions Nx, and the data of the temperature sensor 13 are acquired from the first analog signal (sin, cos)/amplitude detection unit 151 of the processing unit 15 of the first magnetic sensor signal.
  • the data of the second analog signal of the second magnetic sensor 112 for each revolution is subjected to amplitude correction and synchronization correction, that is, data calibration, based on the rotation angle (mechanical angle) and amplitude of the first analog signal, the number of revolutions Nx, and the data of the temperature Ta of the temperature sensor 13, and the calibrated analog data is associated with the data of the number of revolutions Nx and the temperature Ta, and is recorded in the EEPROM-4 (165) together with the correction history.
  • (B) of FIG. 10 shows an example of the calibrated analog data of the second magnetic sensor 112.
  • this correction history can also be expressed by the calibrated analog data y2 using an approximate trigonometric function y2(x, t, Ta) representing the sine wave and cosine wave of the first analog signal.
  • This calibrated analog data is input to the AD converter 162 (ADC-3 to ADC-5) and converted into digital values, and these converted values are recorded in the EEPROM-5 as time-series data.
  • FIG. 10C shows an example of digitally converted data in which the signal of the second magnetic sensor 112 is converted into a digital value including information on A phase and B phase.
  • FIG. 10D shows an example of a (provisional) absolute value based on the output of the second magnetic sensor signal.
  • the (provisional) absolute value shown by the solid line includes a phase error that depends on the characteristics of the second magnetic sensor. (Note that the error is shown in an exaggerated manner for ease of understanding.) In particular, it is assumed that the second analog signal is converted to digital without being able to fully eliminate the error caused by the influence of temperature Ta at the stage of the second analog signal.
  • the dashed line shown in FIG. 10D shows the absolute value based on the corresponding output of the first magnetic sensor.
  • the digital signal detection and frequency/rotation direction correction section 1631 of the second magnetic sensor signal processing unit 16 multi-rotation information including the rotation direction, rotation angle, and rotation count is generated from the origin information and absolute value, and recorded in the EEPROM-7 (S911 in FIG. 11). That is, the second magnetic sensor digital signal detection and frequency/rotation direction correction unit 1631 acquires the frequency/rotation direction data of the digital signal for each rotation of the first magnetic sensor generated by the first magnetic sensor digital signal and frequency/rotation direction detection unit 1531, performs synchronization and rotation direction correction on the (provisional) absolute data of the second magnetic sensor in time series, and records the result as the (formal) absolute data of the second magnetic sensor in EEPROM-7.
  • Fig. 10(E) shows an example of a (formal) absolute value based on the output of the second magnetic sensor signal.
  • the absolute value in Fig. 10(E) can also be approximated by a linear function as described above.
  • the second magnetic sensor signal processing unit 16 obtains information on the number of poles of the motor and the origin of the rotating shaft from the initial setting (S901). From the initial setting, trigonometric function approximation and linear function data for data calibration can also be obtained. The second magnetic sensor signal processing unit 16 then obtains calibrated AD conversion data of the second magnetic sensor signal (sine wave) from the EEPROM-6 (S902). Based on the AD conversion data, the digital waveform is interpolated by time division or the like as necessary, and converted into, for example, 23-bit data of a rotation angle indicating an absolute position from the origin, and a (provisional) absolute value is calculated (S903). Then, the (provisional) absolute value is assigned a memory address and recorded in the memory (S904).
  • the absolute signal generation unit 1632 of the second magnetic sensor of the digital signal processing unit 163 calculates the number of rotations from the origin information and the absolute value (S921), generates multi-rotation absolute information, and records it in the EEPROM-7 as multi-rotation absolute data (S922).
  • the incremental A, B, Z (U, V, W) signal generation unit 1633 of the second magnetic sensor of the digital signal processing unit 163 calculates A-phase and B-phase data from the AD conversion data and absolute value (S931), calculates Z-phase width data synchronized with the rising edge of A-phase and B-phase (S932), generates U-phase, V-phase, and W-phase data based on the A-phase, B-phase, and Z-phase width data (S933), assigns addresses to the A-phase, B-phase, Z-phase, U-phase, V-phase, and W-phase data, and records it in the EEPROM-8 as incremental data (S934).
  • EEPEOM1-3 If the data in EEPEOM1-3 is not normal in S1010, then it is determined whether the data in EEPEOM4-8 is normal or not (S1020), and if normal, an error is displayed in the first magnetic sensor or the processing unit for the first magnetic sensor signal (S1021), and fail-safe mode operation is performed using the data in EEPEOM4-8 (S1022), and this continues until operation ends (S1023, S1024). If the data in EEPEOM4-8 is not normal in S1020, an encoder error is displayed (S1030), and operation end processing is performed (S1031, S1032).
  • the second magnetic sensor signal processing unit obtains information on the number of poles of the motor and the origin of the rotation shaft from the data processing initial setting of the second magnetic sensor during normal operation (S1012). Then, the second analog signal data of the second magnetic sensor is obtained and distortion correction processing is performed (S1103).Furthermore, the first analog signal data of the first magnetic sensor, which is in a synchronous relationship with the signal of the second magnetic sensor, is obtained (S1104). Next, the amplitude of the second analog signal data of the second magnetic sensor is calibrated based on the amplitude of the first analog signal data of the corresponding first magnetic sensor (S1105).
  • the calibrated analog signal data of the second magnetic sensor is recorded in EEPROM-4 (S1106). Furthermore, the analog signal correction history is recorded in EEPROM-4 (S1107).
  • the calibrated analog signal data is AD converted by the AD converter 162, and the second digital data is recorded in EEPROM-5 (S1108).
  • the second digital data of the second magnetic sensor is obtained from the EEPROM-5 (S1109), and the rotation angle and rotation direction of the second digital data of the second magnetic sensor are calibrated based on the rotation angle and rotation direction of the corresponding first digital data of the first magnetic sensor (S1110).
  • the calibrated digital data of the second magnetic sensor is recorded in the EEPROM-6 (S1111).
  • the correction history of the second digital data is recorded in the EEPROM-6 (S1112). The above process is repeated until the end of operation.
  • data processing (S1201) of the second magnetic sensor signal processing unit in the fail-safe mode of the rotary encoder will be described with reference to FIG.
  • the number of poles of the motor, information on the origin of the rotation shaft, and fail-safe control data are obtained from the initial setting values (S1202).
  • data on the second analog signal of the second magnetic sensor is obtained (S1203).
  • data on the correction history of the analog signal is obtained from the EEPROM-4 (S1204).
  • the distortion and amplitude of the data on the second analog signal of the second magnetic sensor are calibrated based on the fail-safe control data and the correction history of the analog signal (S1205).
  • the calibrated analog signal data of the second magnetic sensor is recorded in the EEPROM-4 (S1206).
  • the calibrated analog signal data is AD converted by the AD converter 162, and the second digital data is recorded in the EEPROM-5 (S1207).
  • the second digital data of the second magnetic sensor is obtained from EEPROM-5 (S1208).
  • the digital data correction history data is obtained from EEPROM-6 (S1209).
  • the rotation angle and rotation direction of the second digital data of the second magnetic sensor are calibrated based on the fail-safe control data and the (digital data) correction history data (S1210).
  • the calibrated digital data of the second magnetic sensor is recorded in EEPROM-6 (S1211). The above process is repeated until the end of operation.
  • the second digital data of the second magnetic sensor is calibrated based on the first digital data of the first magnetic sensor, and the second digital data of the second magnetic sensor can be calibrated during backup control based on the calibration history.
  • an AMR (Anisotropic magnetoresistance effect) element may be used as the second magnetic sensor instead of a Hall element.
  • a GMR (Giant magnetoresistance effect) element may be used.
  • the present invention can also be used with other types of motors, such as stepping motors. It can also be widely applied to a variety of motors, including synchronous motors and induction motors. It can also be applied to servo control devices that use these motors.
  • Rotary encoder 11 Magnetic sensor unit 110 Magnet 111 First magnetic sensor 112 Second magnetic sensor 113 Temperature sensor 12 Power supply unit 121 Main power supply 122 Barkhausen effect power supply 123 Sub-battery 13 Temperature sensor 130 Encoder output control unit 14 System control unit 142 Setting unit 143 Fail-safe control data 144 Encoder input/output control unit 145 Fail-safe control unit 146 Output switching unit 147 Serial/parallel signal transmission/reception unit 15 First magnetic sensor signal processing unit 151 First magnetic sensor analog signal (sin, cos)/amplitude detection unit 152 AD converter 1521 ADC-1 (sin) 1522 ADC-2 (cos) 1523 EEPROM-1 153 Digital signal processing unit 1531 Digital signal/frequency/rotation direction detection unit of first magnetic sensor 1532 Absolute signal generation unit of first magnetic sensor 1533 First magnetic sensor incremental A, B, Z, (U, V, W) signal generating unit 16 Second magnetic sensor signal processing unit 160 Analog signal processing unit 161 Distortion correction, amplitude, and synchronization correction unit for analog

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The present invention comprises: a processing unit for a first magnetic sensor signal that, in order to generate highly precise rotation angle information as position information for backup control on the occasion of failure of a first magnetic sensor using an output signal from a second magnetic sensor which is less precise and cheaper than the first magnetic sensor, generates first analog data and first digital data pertaining to the rotation angle of an axis of rotation on the basis of the output of the first magnetic sensor; and a processing unit for a second magnetic sensor signal that generates second analog data and second digital data pertaining to the axis of rotation on the basis of AD conversion data for the output of the second magnetic sensor. The second magnetic sensor has a lower resolution than the first magnetic sensor, the output of the second magnetic sensor is calibrated on the basis of the output of the first magnetic sensor, and the second analog data and the second digital data pertaining to the second magnetic sensor are calibrated on the basis of a calibration history of the second magnetic sensor as a fail-safe function for a rotary encoder.

Description

磁気式ロータリーエンコーダ及びそのバックアップ制御方法Magnetic rotary encoder and backup control method thereof 技術背景Technical Background

 本発明は、磁気式ロータリーエンコーダ及びそのバックアップ制御方法に係り、磁気センサなどの故障時や電源が失われた時に、バックアップを行う機能を備えた磁気式ロータリーエンコーダ、及びバックアップ制御方法に関するものである。 The present invention relates to a magnetic rotary encoder and a backup control method thereof, and to a magnetic rotary encoder with a backup function in the event of failure of a magnetic sensor or loss of power, and to a backup control method.

 ロータリーエンコーダは、回転電機で駆動される回転軸の角度位置や回転速度を検知するために使用される。特に、モータ、例えば、ブラシレスDCモータに関して、磁気センサで検知された回転軸の角度位置や回転速度に基づき、角度位置に関するアブソリュートデジタル信号やインクリメンタルデジタル信号を生成して出力し、これらの信号がモータをサーボモータとして制御するのに用いられている。システムの冗長性が重視される産業用ロボットなどの機器を制御するのに用いられるロータリーエンコーダには、そのロータリーエンコーダが動作中に故障した場合でもその機器の動作を安全に継続できるように、他の正常な磁気センサを用いたバックアップ制御機能(フェイルセーフ機能)が付与されている。 Rotary encoders are used to detect the angular position and rotational speed of a rotating shaft driven by a rotating electric machine. In particular, for a motor, such as a brushless DC motor, absolute digital signals and incremental digital signals related to the angular position are generated and output based on the angular position and rotational speed of the rotating shaft detected by a magnetic sensor, and these signals are used to control the motor as a servo motor. Rotary encoders used to control equipment such as industrial robots where system redundancy is important are provided with a backup control function (fail-safe function) that uses other normal magnetic sensors so that the equipment can continue to operate safely even if the rotary encoder breaks down during operation.

 特許文献1に開示された回転角度検出装置は、磁束検出部がMR素子またはホール素子等の磁気検出素子を用いた回転角センサを3個以上備え、異常と判定された回転角センサ以外の前記回転角センサの回転に基づいて出力軸の回転角度を算出する回転角度導出部を備えている。 The rotation angle detection device disclosed in Patent Document 1 has a magnetic flux detection unit that includes three or more rotation angle sensors using magnetic detection elements such as MR elements or Hall elements, and a rotation angle derivation unit that calculates the rotation angle of the output shaft based on the rotation of the rotation angle sensors other than the rotation angle sensor that has been determined to be abnormal.

 特許文献2には、GMRセンサとAMRセンサとを備えたモータの回転角検出装置において、通常時は、GMRセンサの出力によってAMRセンサの出力を補正して機械角θを求め、GMRセンサが故障した場合には、AMRセンサの出力のみで機械角θを検出してバックアップ制御を実行する発明が開示されている。マイクロコンピュータはカウンタを備えており、GMRセンサの出力からオフセット補正をするタイミングと判定すると、カウンタにカウンタ値を1として記録しておき、GMRセンサが故障したときは、このカウンタ値に基づいて、AMRセンサの出力値をオフセット補正する。 Patent Document 2 discloses an invention in which, in a motor rotation angle detection device equipped with a GMR sensor and an AMR sensor, under normal circumstances, the output of the AMR sensor is corrected using the output of the GMR sensor to determine the mechanical angle θ, and in the event of a failure of the GMR sensor, the mechanical angle θ is detected using only the output of the AMR sensor to execute backup control. The microcomputer is equipped with a counter, and when it determines that it is time to perform offset correction based on the output of the GMR sensor, it records the counter value as 1 in the counter, and in the event of a failure of the GMR sensor, it performs offset correction on the output value of the AMR sensor based on this counter value.

 特許文献3に開示された、光学式または磁気式の角度検出部を備えたエンコーダは、バッテリー、ボタン型電池、乾電池などの一次電池と、充電可能な二次電池とを備えている。そして、この二次電池は、ウィーガントワイヤ等の感磁性ワイヤを利用した電気信号発生ユニットにより充電されるようになっており、エンコーダ装置が搭載される装置の主電源が投入されていない状態(非常時状態、バックアップ状態)でも、回転軸の回転位置情報の少なくとも一部(例えば多回転情報)を検出するようにした発明が開示されている。 The encoder with an optical or magnetic angle detection unit disclosed in Patent Document 3 includes a primary battery, such as a battery, button cell, or dry cell, and a rechargeable secondary battery. This secondary battery is charged by an electric signal generating unit that uses a magnetosensitive wire, such as a Wiegand wire, and the invention disclosed is capable of detecting at least a portion of the rotational position information of the rotating shaft (e.g., multi-rotation information) even when the main power supply of the device in which the encoder device is mounted is not turned on (emergency state, backup state).

特開2022-164402号公報JP 2022-164402 A 特開2022-105702号公報JP 2022-105702 A 特開2016-109554号公報JP 2016-109554 A

 特許文献1の発明は、回転角度検出装置の1つの回転角センサが異常と判定された場合、他の正常な回転角センサのみの回転に基づいて出力軸の回転角度を算出できる。そのため、この回転角度検出装置で制御される各種産業用機械等は、1つの回転角センサが異常になっても、安全に運転を継続できる利点がある。他方、特許文献1の発明では、3個以上の回転角センサに、同じ種類、同じ特性を有するものを採用する必要があり、高精度の回転角センサを採用した場合、全体のコストが上昇する可能性がある。各種産業用機械等の用途によっては、より安価で故障の少ない回転角センサでバックアップ制御を行うのが必要とされる分野もある。 In the invention of Patent Document 1, if one rotation angle sensor of a rotation angle detection device is determined to be abnormal, the rotation angle of the output shaft can be calculated based on the rotation of only the other normal rotation angle sensors. Therefore, various industrial machines controlled by this rotation angle detection device have the advantage that they can continue to operate safely even if one rotation angle sensor becomes abnormal. On the other hand, the invention of Patent Document 1 requires that three or more rotation angle sensors with the same type and characteristics be used, and if high-precision rotation angle sensors are used, the overall cost may increase. Depending on the application of various industrial machines, etc., there are also fields where backup control is required using cheaper rotation angle sensors that are less prone to failure.

 特許文献2の発明は、GMRセンサとAMRセンサが180度間隔で配置されているために、GMRセンサの出力とAMRセンサの出力にオフセットが生じる。そのため、GMRセンサが故障したときは、このカウンタ値に基づいて、AMRセンサの出力値をオフセット補正する。しかし、このオフセットは、GMRセンサとAMRセンサが180度間隔で配置されているという特殊な構造により生ずるものである。さらに、特許文献2には、GMRセンサが故障したときに、上記オフセット補正以外の補正を行うことは記載されていない。 In the invention of Patent Document 2, the GMR sensor and AMR sensor are arranged at 180 degree intervals, so an offset occurs between the output of the GMR sensor and the output of the AMR sensor. Therefore, when the GMR sensor fails, the output value of the AMR sensor is offset corrected based on this counter value. However, this offset occurs due to the special structure in which the GMR sensor and AMR sensor are arranged at 180 degree intervals. Furthermore, Patent Document 2 does not mention making any correction other than the above offset correction when the GMR sensor fails.

 特許文献3の発明では、電力供給系が電源切替器(電源選択部、選択部)を備えており、この電源切替器は、位置検出系に対して一次電池と、電気信号発生ユニットにより充電される二次電池との、いずれから電力を供給するかを切り替える(選択する)ように構成されている。しかし、電源切替器が故障したときには、位置検出系に適切に電源が供給されない可能性がある。 In the invention of Patent Document 3, the power supply system is equipped with a power supply switch (power supply selection section, selection section), and this power supply switch is configured to switch (select) whether power is supplied to the position detection system from a primary battery or a secondary battery charged by an electrical signal generating unit. However, if the power supply switch fails, there is a possibility that power will not be supplied appropriately to the position detection system.

 本発明の1つの課題は、通常時は、第一の磁気センサの出力信号を利用して高精度の回転角度情報を生成し、前記第一の磁気センサが故障した場合のバックアップ制御のための位置情報として、前記第一の磁気センサよりも精度は低く安価な第二の磁気センサの出力信号を利用しながら、比較的高い精度の回転角度情報を生成できる、磁気式ロータリーエンコーダ及びそのバックアップ制御方法を提供することにある。
 本発明の他の課題は、停電時にも、モータの回転軸の回転角度の情報を適切に記録し、次回モータが起動される際に必要な情報を適切に提供できるバックアップ制御機能を備えた、磁気式ロータリーエンコーダを提供することにある。
One object of the present invention is to provide a magnetic rotary encoder and a backup control method thereof which can generate highly accurate rotation angle information using the output signal of a first magnetic sensor under normal conditions, and generate relatively highly accurate rotation angle information by using the output signal of a second magnetic sensor which is less accurate than the first magnetic sensor but less expensive as position information for backup control in the event that the first magnetic sensor fails.
Another object of the present invention is to provide a magnetic rotary encoder equipped with a backup control function that can properly record information on the rotation angle of the motor's shaft even during a power outage, and properly provide the necessary information the next time the motor is started.

 本発明の1つの態様によれば、ロータリーエンコーダは、
 回転軸に固定されるマグネットと、
 前記マグネットに対向して配置された第1の磁気センサの出力である第1のアナログ信号を、AD変換し、前記第1の磁気センサの出力のAD変換データに基づき、前記回転軸の回転角度、回転方向に関する、アブソリュート信号とインクリメンタル信号の2系統の情報を含む、第1のデジタルデータを生成する第一磁気センサ信号の処理ユニットと、
 前記マグネットに対向して配置された第2の磁気センサの出力である第2のアナログ信号を、AD変換し、前記第2の磁気センサの出力のAD変換データに基づき、前記回転軸の前記回転角度、前記回転方向に関する、アブソリュート信号とインクリメンタル信号の2系統の情報を含む、第2のデジタルデータを生成する第二磁気センサ信号の処理ユニットとを備えたロータリーエンコーダであって、
 前記第2の磁気センサは、前記第1の磁気センサより分解能が劣り、
 前記第二磁気センサ信号の処理ユニットは、前記第一磁気センサ信号の処理ユニットをバックアップするフェイルセーフ機能を有しており、
 前記第二磁気センサ信号の処理ユニットは、
 前記第2の磁気センサの前記第2のアナログ信号を、前記第1の磁気センサの前記第1のアナログ信号のデータに基づいて較正して前記AD変換を行い、前記第2の磁気センサの出力の前記AD変換データを前記第1の磁気センサの前記第1のデジタルデータに基づいて較正して、前記第2のデジタルデータを生成するとともに、
 前記第2のアナログ信号の較正履歴、及び前記第2のデジタルデータの較正履歴を記録する機能を備え、
 前記ロータリーエンコーダの前記フェイルセーフ機能は、
 前記第1の磁気センサ及び又は前記第一磁気センサ信号の処理ユニットが故障したときに、前記第2のアナログ信号の較正履歴に基づいて、前記第2の磁気センサの前記第2のアナログ信号を較正し、前記第2のデジタルデータの較正履歴に基づいて、前記第2の磁気センサの前記第2のデジタルデータを較正するように構成されている。
According to one aspect of the present invention, a rotary encoder includes:
A magnet fixed to the rotating shaft;
a first magnetic sensor signal processing unit that performs AD conversion on a first analog signal that is an output of a first magnetic sensor disposed opposite the magnet, and generates first digital data including two types of information, an absolute signal and an incremental signal, related to a rotation angle and a rotation direction of the rotating shaft, based on the AD converted data of the output of the first magnetic sensor;
a second magnetic sensor signal processing unit that performs AD conversion on a second analog signal that is an output of a second magnetic sensor disposed opposite to the magnet, and generates second digital data including two types of information, an absolute signal and an incremental signal, related to the rotation angle and the rotation direction of the rotating shaft, based on the AD converted data of the output of the second magnetic sensor,
the second magnetic sensor has a lower resolution than the first magnetic sensor;
the second magnetic sensor signal processing unit has a fail-safe function that backs up the first magnetic sensor signal processing unit,
The second magnetic sensor signal processing unit includes:
calibrating the second analog signal of the second magnetic sensor based on data of the first analog signal of the first magnetic sensor to perform the AD conversion, and calibrating the AD converted data of an output of the second magnetic sensor based on the first digital data of the first magnetic sensor to generate the second digital data;
a function of recording a calibration history of the second analog signal and a calibration history of the second digital data;
The fail-safe function of the rotary encoder is
When the first magnetic sensor and/or the processing unit for the first magnetic sensor signal fails, the second analog signal of the second magnetic sensor is calibrated based on a calibration history of the second analog signal, and the second digital data of the second magnetic sensor is calibrated based on a calibration history of the second digital data.

 本発明の1つの態様によれば、第1の磁気センサに比べて精度は劣るものの安価な第2の磁気センサを利用して比較的高い精度の位置情報を生成し、信頼性の高いバックアップ制御を可能にする、ロータリーエンコーダを提供できる。 According to one aspect of the present invention, a rotary encoder can be provided that uses a second magnetic sensor, which is less accurate than the first magnetic sensor but is inexpensive, to generate relatively accurate position information, enabling highly reliable backup control.

 本発明の他の態様によれば、前記第1の磁気センサは、前記回転軸の軸芯に対応する位置において、プリント基板の上に配置され、前記第2の磁気センサは、前記プリント基板の上の前記第1の磁気センサと同じ面で、かつ、前記回転軸の軸芯を中心とする1つの円周上に、120度間隔で配置され、前記プリント基板の上に、1つの温度センサ-が配置されている。
 前記ロータリーエンコーダは、電源ユニットとして、出力電圧が所定の電力に制御される、主電源、バルクハウゼン効果発電電源、及びサブバッテリを備えており、前記バルクハウゼン効果発電電源、及び前記サブバッテリは、前記主電源が失われたときのバックアップを行う電源であり、前記バルクハウゼン効果発電電源は、前記プリント基板に、前記第1の磁気センサの裏側に位置するようにして設けられ、前記マグネットの回転磁場を利用して発電するバルクハウゼン効果素子を備えており、前記サブバッテリは、前記主電源及び前記バルクハウゼン効果発電電源により充電されるコンデンサを有している。
 この態様によれば、前記第1の磁気センサ及び前記第2の磁気センサのいずれが故障した場合でも、さらには、停電時にも、モータの回転軸の回転角度の情報を適切に記録し、次回モータが起動される際に必要な情報を適切に提供できるバックアップ制御機能を備えた、磁気式ロータリーエンコーダを提供することができる。
According to another aspect of the present invention, the first magnetic sensor is arranged on a printed circuit board at a position corresponding to the axis of the rotating shaft, the second magnetic sensors are arranged on the same side of the printed circuit board as the first magnetic sensor and on a circumference centered on the axis of the rotating shaft, at 120 degree intervals, and one temperature sensor is arranged on the printed circuit board.
The rotary encoder includes, as power supply units, a main power supply, a Barkhausen effect power supply, and a sub-battery, whose output voltage is controlled to a predetermined power. The Barkhausen effect power supply and the sub-battery are power supplies that provide backup power in the event that the main power supply is lost. The Barkhausen effect power supply is provided on the printed circuit board so as to be located on the back side of the first magnetic sensor, and includes a Barkhausen effect element that generates power by utilizing the rotating magnetic field of the magnet. The sub-battery has a capacitor that is charged by the main power supply and the Barkhausen effect power supply.
According to this aspect, a magnetic rotary encoder can be provided that has a backup control function that can properly record information on the rotation angle of the motor's rotating shaft even if either the first magnetic sensor or the second magnetic sensor fails, and even during a power outage, and can properly provide the information necessary the next time the motor is started.

 本発明のさらに他の態様によれば、前記第1のアナログ信号、前記第2のアナログ信号、前記第1のデジタルデータ、前記第2のデジタルデータをモニタし、前記各データのモニタの結果、前記第1の磁気センサ又は前記第一磁気センサ信号の処理ユニットに異常があると判定された場合、前記第二磁気センサ信号の処理ユニットにおいて、前記第2の磁気センサの前記第2のアナログ信号を、前記第2のアナログ信号の較正履歴に基づいた較正済アナログ信号を生成し、前記較正済アナログ信号と前記第2のデジタルデータの較正用データに基づいて、較正済の前記第2のデジタルデータを生成する。
 この態様によれば、前記第1の磁気センサが故障した場合でも、信頼性の高いバックアップ制御を行うことができる。
According to yet another aspect of the present invention, the first analog signal, the second analog signal, the first digital data, and the second digital data are monitored, and if it is determined as a result of monitoring each of the data that there is an abnormality in the first magnetic sensor or the processing unit for the first magnetic sensor signal, in the processing unit for the second magnetic sensor signal, a calibrated analog signal is generated from the second analog signal of the second magnetic sensor based on a calibration history of the second analog signal, and calibrated second digital data is generated based on the calibrated analog signal and calibration data for the second digital data.
According to this aspect, even if the first magnetic sensor fails, highly reliable backup control can be performed.

本発明の第1の実施例に係るロータリーエンコーダの構成例を示す、機能ブロック図である。1 is a functional block diagram showing a configuration example of a rotary encoder according to a first embodiment of the present invention; 第1の実施例のロータリーエンコーダを備えたサーボ制御システムの構成例を示す図である。1 is a diagram illustrating an example of the configuration of a servo control system including a rotary encoder according to a first embodiment; 第1の実施例のロータリーエンコーダにおける、磁気センサ及び電源ユニットの構成例を示す縦断面図である。2 is a vertical cross-sectional view showing a configuration example of a magnetic sensor and a power supply unit in the rotary encoder of the first embodiment; FIG. 第1の実施例における、電源ユニットの回路の構成例を示す図である。FIG. 2 is a diagram illustrating an example of the circuit configuration of a power supply unit in the first embodiment. 前記電源ユニットの動作を示すタイムチャートであり、主電源の電源が正常な状態から停電した場合の、電源とロータリーエンコーダの出力信号の関係の一例を示す図である。10 is a time chart showing the operation of the power supply unit, illustrating an example of the relationship between the power supply and the output signal of the rotary encoder when the main power supply goes from a normal state to a power outage. FIG. 電源ユニットの回路の他の構成例を示す図である。FIG. 13 is a diagram illustrating another example of the configuration of the circuit of the power supply unit. 第一の磁気センサ信号のデジタル化、アブソリュート化の処理を示す図である。FIG. 11 is a diagram showing a process of digitizing and absoluteizing a first magnetic sensor signal. 第1の実施例における、第一の磁気センサ信号の処理ユニットにおける信号処理を示す、フローチャートである。5 is a flowchart showing signal processing in a processing unit for a first magnetic sensor signal in the first embodiment. 図8の信号処理に基づく、A相、B相の信号と、これらの信号に基づいて生成される、インクリメンタルZ相、U相,V相,W相の信号の例を示す図である。9A and 9B are diagrams showing examples of A-phase and B-phase signals based on the signal processing of FIG. 8, and incremental Z-phase, U-phase, V-phase, and W-phase signals generated based on these signals. 第二の磁気センサ信号のデジタル化、アブソリュート化の処理を示す図である。FIG. 11 is a diagram showing a process of digitizing and absoluteizing a second magnetic sensor signal. 第1の実施例における、第二磁気センサ信号の処理ユニットにおける信号処理を示す、フローチャートである。6 is a flowchart showing signal processing in a second magnetic sensor signal processing unit in the first embodiment. 第1の実施例における、フェイルセーフ制御ユニットの処理を示す、フローチャートである。4 is a flowchart showing a process of a fail-safe control unit in the first embodiment. 通常運転時の、第二磁気センサ信号の処理ユニットのデータ処理を示すフローチャートである。10 is a flowchart showing data processing of a processing unit for a second magnetic sensor signal during normal operation. フェイルセーフモード時の、第二磁気センサ信号の処理ユニットのデータ処理を示すフローチャートである。13 is a flowchart showing data processing of a second magnetic sensor signal processing unit in a fail-safe mode.

 以下、図面を参照しながら、本発明の第1の実施例について説明する。
 まず、図1~図3を参照しながら、本発明の第1の実施例に係るロータリーエンコーダの、全体の構成及び機能について説明する。
 図1は、ロータリーエンコーダの構成例を示す、機能ブロック図であり、図2は、このロータリーエンコーダを備えたサーボ制御システムの構成例を示す図である。
 ロータリーエンコーダ10は、磁気センサユニット11、電源ユニット12、温度センサ13、システムコントロールユニット14、第一磁気センサ信号の処理ユニット15、第二磁気センサ信号の処理ユニット16を備えている。
 ロータリーエンコーダ10は、さらに、N,S各1極着磁された1個の平板状のマグネット110を備えている。この平板状のマグネットは、例えばフェライト磁石であり、図3に示したように、モータ50の回転軸510の一端面に固定される。なお、フェライト磁石の代わりに、ネオジム磁石やサマリウムコバルト磁石等の希土類磁石を採用しても良い。
 磁気センサユニット11は、第1の磁気センサ111と第2の磁気センサ112を備えており、第1の磁気センサ111は、温度センサ113を有している。
 第1の磁気センサ111は、1対の磁気センサ(Sin,Cos)で構成され、回転軸510の軸方向においてマグネット110に対向する位置に配置される。すなわち、第1の磁気センサ111は、回転軸510の軸芯O-Oに対応する位置において、プリント基板17上に配置される。
A first embodiment of the present invention will now be described with reference to the drawings.
First, the overall configuration and functions of a rotary encoder according to a first embodiment of the present invention will be described with reference to FIGS.
FIG. 1 is a functional block diagram showing an example of the configuration of a rotary encoder, and FIG. 2 is a diagram showing an example of the configuration of a servo control system equipped with this rotary encoder.
The rotary encoder 10 includes a magnetic sensor unit 11, a power supply unit 12, a temperature sensor 13, a system control unit 14, a first magnetic sensor signal processing unit 15, and a second magnetic sensor signal processing unit 16.
The rotary encoder 10 further includes one flat magnet 110 magnetized with one pole each of N and S. This flat magnet is, for example, a ferrite magnet, and is fixed to one end surface of the rotating shaft 510 of the motor 50 as shown in Fig. 3. Note that a rare earth magnet such as a neodymium magnet or a samarium-cobalt magnet may be used instead of the ferrite magnet.
The magnetic sensor unit 11 includes a first magnetic sensor 111 and a second magnetic sensor 112 , and the first magnetic sensor 111 includes a temperature sensor 113 .
The first magnetic sensor 111 is composed of a pair of magnetic sensors (Sin, Cos), and is disposed in a position facing the magnet 110 in the axial direction of the rotating shaft 510. That is, the first magnetic sensor 111 is disposed on the printed circuit board 17 in a position corresponding to the axis O-O of the rotating shaft 510.

 本発明に用いる第1の磁気センサ111としては、高精度の分解能が得られセンサを採用し、第2の磁気センサは、第1の磁気センサより分解能は劣るものの、構造が簡単で故障しにくい磁気センサが望ましい。
 第1の実施例では、第1の磁気センサ111として、TMRセンサを採用し、第2の磁気センサ112として、120度間隔で配置された3個のホール素子(H1,H2,H3)を採用している。ホール素子には、例えば、GaAsの素子が使用される。なお、TMRセンサは、温度センサを内蔵し、その出力は温度補償されているものとする。
The first magnetic sensor 111 used in the present invention is a sensor that can obtain high-precision resolution, and the second magnetic sensor is preferably a magnetic sensor that has a lower resolution than the first magnetic sensor but has a simple structure and is less likely to break down.
In the first embodiment, a TMR sensor is used as the first magnetic sensor 111, and three Hall elements (H1, H2, H3) arranged at 120 degree intervals are used as the second magnetic sensor 112. For example, GaAs elements are used for the Hall elements. The TMR sensor includes a built-in temperature sensor, and its output is temperature compensated.

 電源ユニット12は、主電源121、バルクハウゼン効果発電電源122、サブバッテリ123を含んでいる。バルクハウゼン効果発電電源122及びサブバッテリ123は、主電源の電源が失われた時に、ロータリーエンコーダ10に電力を供給する電源として機能する。マグネット110の近傍には、バルクハウゼン効果発電ユニット115が設置される。このバルクハウゼン効果発電ユニット115は、プリント基板17上の、第1の磁気センサ111の背面となる位置に固定されている(図3参照)。このバルクハウゼン効果発電ユニット115は、複合磁性ワイヤ及びコイルを有する。この複合磁性ワイヤは、軸線O-Oを中心とし、かつ、この軸線に直交する方向に配置されている。バルクハウゼン効果発電ユニット115は、回転軸510の回転に伴い平板状のマグネット110の磁束Φbに伴いバルクハウゼン効果よる電力を生成し、この出力は、バルクハウゼン効果発電電源122に供給される。 The power supply unit 12 includes a main power supply 121, a Barkhausen effect power supply 122, and a sub-battery 123. The Barkhausen effect power supply 122 and the sub-battery 123 function as power supplies that supply power to the rotary encoder 10 when the main power supply is lost. A Barkhausen effect power supply unit 115 is installed near the magnet 110. This Barkhausen effect power supply unit 115 is fixed to the printed circuit board 17 at a position that is the back surface of the first magnetic sensor 111 (see FIG. 3). This Barkhausen effect power supply unit 115 has a compound magnetic wire and a coil. This compound magnetic wire is centered on the axis O-O and is arranged in a direction perpendicular to this axis. The Barkhausen effect power supply unit 115 generates power by the Barkhausen effect in response to the magnetic flux Φb of the flat magnet 110 as the rotating shaft 510 rotates, and this output is supplied to the Barkhausen effect power supply 122.

 システムコントロールユニット14は、ロータリーエンコーダ10の出力として、第1の磁気センサ111及び第一磁気センサ信号の処理ユニット15が正常に機能しているときは、第一磁気センサ信号の処理ユニット15の情報を出力し、第1の磁気センサ111及び第一磁気センサ信号の処理ユニット15に異常が発生したときは、第二磁気センサ信号の処理ユニット16の情報を出力する機能を備えている。 The system control unit 14 has a function of outputting information from the first magnetic sensor signal processing unit 15 as the output of the rotary encoder 10 when the first magnetic sensor 111 and the first magnetic sensor signal processing unit 15 are functioning normally, and outputting information from the second magnetic sensor signal processing unit 16 when an abnormality occurs in the first magnetic sensor 111 and the first magnetic sensor signal processing unit 15.

 システムコントロールユニット14の初期設定部141は、ユーザインタフェースを介して入力された条件に従って、モータの種類、極数、回転軸の原点やロータリーエンコーダの出力条件等を設定する設定部142、及び、フェイルセーフ制御用データ143の保持機能を有している。フェイルセーフ制御用データ143には、例えば、データの較正のために、第1の磁気センサのアナログ出力に基づき第2の磁気センサのアナログ出力を較正するために使用する、三角関数に関するデータや、第1の磁気センサのデジタル出力に基づき第2の磁気センサのデジタルを較正するために使用する、一次関数に関するデータ等が含まれる。 The initial setting section 141 of the system control unit 14 has a setting section 142 that sets the motor type, number of poles, origin of the rotation axis, output conditions of the rotary encoder, etc. according to conditions input via a user interface, and a function for retaining fail-safe control data 143. The fail-safe control data 143 includes, for example, data on trigonometric functions used to calibrate the analog output of the second magnetic sensor based on the analog output of the first magnetic sensor for data calibration, and data on linear functions used to calibrate the digital of the second magnetic sensor based on the digital output of the first magnetic sensor.

 エンコーダ入出力制御ユニット144は、初期設定された条件に従って、ロータリーエンコーダ10の入出力を制御する機能を有する。フェイルセーフ制御ユニット145は、磁気センサなどの故障時に実行される、フェイルセーフモードの制御を行う。出力切替ユニット146は、ロータリーエンコーダの運転状態に応じて、ロータリーエンコーダの出力を切り替える機能を有する。シリアル/パラレル信号送受信ユニット147は、ロータリーエンコーダ10とサーボ制御装置40の間で、各種の情報を、パラレル信号もしくはシリアル信号に変換し、送受信する機能を有している。 The encoder input/output control unit 144 has a function of controlling the input/output of the rotary encoder 10 according to initially set conditions. The fail-safe control unit 145 controls the fail-safe mode that is executed when a magnetic sensor or other device fails. The output switching unit 146 has a function of switching the output of the rotary encoder according to the operating state of the rotary encoder. The serial/parallel signal transmitting/receiving unit 147 has a function of converting various types of information into parallel or serial signals and transmitting/receiving them between the rotary encoder 10 and the servo control device 40.

 本発明のロータリーエンコーダ10は、アブソリュートデータ及びインクリメンタルA,B,Zのデータを必要とする各種の回転電機に適用できる。 The rotary encoder 10 of the present invention can be applied to various rotating electrical machines that require absolute data and incremental A, B, and Z data.

 以下では、本発明を、ブラシレスDCモータを対象とした、ロータリーエンコーダに適用した構成について、より具体的に説明する。
 第一磁気センサ信号の処理ユニット15は、マグネット110に対向して配置された第1の磁気センサの出力である第1のアナログ信号を、AD変換し、第1の磁気センサの出力のAD変換データに基づき、回転軸の回転角度、回転方向に関する第1のデジタルデータを生成する。すなわち、第一磁気センサ信号の処理ユニット15は、回転軸の回転角度情報に関して、第1の磁気センサ111のアナログ出力が所定の条件で量子化された、高分解能(例えば、27bit/回転)のアブソリュート信号とインクリメンタル信号の2系統の情報を、第1のデジタルデータとして、高精度に生成する機能を備えている。ロータリーエンコーダからは、第1のデジタルデータとして、例えば、インクリメンタルA,B,Z,(U,V,W)信号が、シリアル伝送用の送信データ(BUS)に変換され、通信ケーブルを介してサーボ制御装置へ送信される。
The following will more specifically describe a configuration in which the present invention is applied to a rotary encoder for a brushless DC motor.
The processing unit 15 of the first magnetic sensor signal performs AD conversion on the first analog signal, which is the output of the first magnetic sensor arranged opposite to the magnet 110, and generates first digital data related to the rotation angle and rotation direction of the rotating shaft based on the AD conversion data of the output of the first magnetic sensor. That is, the processing unit 15 of the first magnetic sensor signal has a function of generating two types of information, that is, a high-resolution (e.g., 27 bit/revolution) absolute signal and an incremental signal, which are quantized under a predetermined condition, as first digital data with high accuracy with respect to the rotation angle information of the rotating shaft. For example, incremental A, B, Z, (U, V, W) signals are converted from the rotary encoder as the first digital data into transmission data (BUS) for serial transmission and transmitted to the servo control device via a communication cable.

 また、第二磁気センサ信号の処理ユニット16は、マグネット110に対向して配置された第2の磁気センサの出力である第2のアナログ信号を、AD変換し、前記第2の磁気センサの出力のAD変換データに基づき、前記回転軸の回転角度、回転方向に関する第2のデジタルデータを生成する。すなわち、第二磁気センサ信号の処理ユニット16は、回転軸の回転角度情報に関して、第2の磁気センサ112のアナログ出力が第一磁気センサ信号の処理ユニットで生成された信号に対する補正履歴に基づき補正され所定の条件で量子化された、比較的高い分解能(例えば、21bit/回転)のアブソリュート信号とインクリメンタル信号の2系統の情報を、第2のデジタルデータとして、高精度に生成して出力する機能を備えている。 The second magnetic sensor signal processing unit 16 also performs AD conversion on the second analog signal, which is the output of the second magnetic sensor arranged opposite the magnet 110, and generates second digital data related to the rotation angle and direction of the rotating shaft based on the AD converted data of the output of the second magnetic sensor. In other words, the second magnetic sensor signal processing unit 16 has the function of generating and outputting two types of information, an absolute signal and an incremental signal with a relatively high resolution (e.g., 21 bits/revolution), with high precision as second digital data, regarding the rotation angle information of the rotating shaft, in which the analog output of the second magnetic sensor 112 is corrected based on the correction history for the signal generated by the first magnetic sensor signal processing unit and quantized under predetermined conditions.

 第一磁気センサ信号の処理ユニット15は、第1のアナログ信号の処理部であるアナログ信号(sin,cos)・振幅検出部151と、AD変換器152と、デジタル信号処理部153を備えている。
 アナログ信号(sin,cos)・振幅検出部151は、第1の磁気センサ111の、第1のアナログ信号(sin信号,cos信号)のサンプリングデータを時系列データとして受け取り、回転数を算出し、これらアナログ信号の回転角(機械角)とアナログ信号の振幅、及び、回転軸の回転数Nx、温度センサ13のデータを、関係づけて一時的にメモリに記録する。同時に、第1の磁気センサ111のアナログ信号のサンプリングデータは、例えば64ビットのAD変換器152(ADC-1(sin)1521、ADC-2(cos)1522)に入力されてデジタル値に変換され、それらの変換値が時系列データとしてEEPROM-1(1523)に記録される。
The first magnetic sensor signal processing unit 15 includes an analog signal (sin, cos)/amplitude detection section 151 , which is a first analog signal processing section, an AD converter 152 , and a digital signal processing section 153 .
The analog signal (sin, cos)/amplitude detection unit 151 receives sampling data of the first analog signal (sin signal, cos signal) of the first magnetic sensor 111 as time-series data, calculates the number of rotations, and temporarily records in memory the rotation angle (mechanical angle) and amplitude of these analog signals, the number of rotations Nx of the rotating shaft, and the data of the temperature sensor 13 in association with each other. At the same time, the sampling data of the analog signal of the first magnetic sensor 111 is input to, for example, a 64-bit AD converter 152 (ADC-1 (sin) 1521, ADC-2 (cos) 1522) and converted into digital values, and these converted values are recorded in the EEPROM-1 (1523) as time-series data.

 デジタル信号処理部153の第一磁気センサのアブソリュート信号生成ユニット1532は、EEPROM-1から、回転軸のAD変換のデータを取得し、回転軸の回転角度のアブソリュート信号を生成し、時系列データとしてEEPROM-2に記録する。
 また、第一磁気センサのデジタル信号・周波数/回転方向検出部1531は、EEPROM-1から、デジタル値を取得し、その周波数を算出し、それを回転方向のデータと共に、EEPROM-2に記録する。
 他方、第一磁気センサのインクリメンタルA,B,Z,(U,V,W)信号生成ユニット1533は、EEPROM-2から、第1のデジタルデータとして、回転軸の回転角度のアブソリュート信号のデジタル値を取得し、インクリメンタルA,B,Z,(U,V,W)信号を生成し、時系列データとしてEEPROM-3に記録する。
The first magnetic sensor absolute signal generating unit 1532 of the digital signal processing unit 153 obtains AD converted data of the rotating shaft from the EEPROM-1, generates an absolute signal of the rotation angle of the rotating shaft, and records it in the EEPROM-2 as time-series data.
Moreover, the digital signal/frequency/rotation direction detection unit 1531 of the first magnetic sensor obtains a digital value from the EEPROM-1, calculates its frequency, and records it together with the rotation direction data in the EEPROM-2.
On the other hand, the incremental A, B, Z, (U, V, W) signal generating unit 1533 of the first magnetic sensor obtains the digital value of the absolute signal of the rotation angle of the rotating shaft from EEPROM-2 as the first digital data, generates incremental A, B, Z, (U, V, W) signals, and records them in EEPROM-3 as time-series data.

 第二磁気センサ信号の処理ユニット16は、アナログ信号処理部160、AD変換器162、及び、デジタル信号処理部163を備えている。
 第二磁気センサのアナログ信号の歪補正・振幅・同期補正部161は、第2の磁気センサ112の、第2のアナログ信号(H1のsin信号,H2のsin信号,H3のsin信号)のサンプリングデータを時系列データとして受け取り、各ホール素子(H1,H2,H3)の軸芯O-Oに対する偏芯に対応する歪補正を行い、回転数を算出し、メモリに記録する。
 一方、第一磁気センサ信号の処理ユニット15のアナログ信号(sin,cos)・振幅検出部151から、第1の磁気センサ111の第1のアナログ信号の回転角(機械角)とアナログ信号の振幅、及び、回転数Nx、温度センサ13のデータを、取得する。そして、これらのデータを、関係づけて一時的にメモリに記録する。
 さらに、第2の磁気センサ112の第2のアナログ信号の1回転毎のデータを、第1のアナログ信号の回転角(機械角)と振幅、及び、回転数Nx、温度センサ13のデータに基づき、振幅補正、同期補正、すなわち、データの較正を行い、較正済のアナログデータを、補正履歴とともに、EEPROM-4(165)に記録する。
 なお、第2のアナログ信号は、各ホール素子(H1,H2,H3)に対応する各信号を個別に、第1のアナログ信号と振幅補正、同期補正を行っても良いが、処理の高速化のために、纏めて振幅補正、同期補正するのが望ましい。
The second magnetic sensor signal processing unit 16 includes an analog signal processing section 160 , an AD converter 162 , and a digital signal processing section 163 .
The distortion correction/amplitude/synchronization correction unit 161 for the analog signal of the second magnetic sensor receives sampling data of the second analog signal (sine signal of H1, sine signal of H2, sine signal of H3) of the second magnetic sensor 112 as time-series data, performs distortion correction corresponding to the eccentricity of each Hall element (H1, H2, H3) with respect to the axis O-O, calculates the rotation speed, and records it in memory.
On the other hand, the rotation angle (mechanical angle) and amplitude of the first analog signal of the first magnetic sensor 111, the number of rotations Nx, and data of the temperature sensor 13 are acquired from the analog signal (sin, cos)/amplitude detection section 151 of the first magnetic sensor signal processing unit 15. Then, these data are correlated and temporarily recorded in memory.
Furthermore, the data for each revolution of the second analog signal of the second magnetic sensor 112 is subjected to amplitude correction and synchronization correction, i.e., data calibration, based on the rotation angle (mechanical angle) and amplitude of the first analog signal, the number of revolutions Nx, and the data of the temperature sensor 13, and the calibrated analog data is recorded in the EEPROM-4 (165) together with the correction history.
In addition, the second analog signal may be subjected to amplitude correction and synchronization correction for each signal corresponding to each Hall element (H1, H2, H3) individually with the first analog signal. However, in order to speed up processing, it is preferable to perform amplitude correction and synchronization correction for all the signals together.

 また、第2のアナログ信号のデータの較正に、温度センサ13のデータと関係づけられた三角関数の近似式を利用すれば、データの較正を1回転毎のデータで行う必要はなく、所定の角度範囲やサンプリング単位等で行うことができる。すなわち、第2の磁気センサ112の任意の回転角度における、第2のアナログ信号のデータを、予め設定された、三角関数の近似式と温度センサ13の関係のデータに基づき、対応する位置関係にある第1の磁気センサ111の第1アナログ信号のデータに基づき、直接、較正することができる。
 較正済のアナログデータは、例えば64ビットの、AD変換器162(ADC-3~5(1621-1623))に入力されてデジタル値に変換され、それらの変換値が時系列データとしてEEPROM-5(1624)に記録される。
 フェイルセーフ・信号補正部164は、第1の磁気センサ111または第一磁気センサ信号の処理ユニット15が故障した「フェイルセーフモード」において、EEPROM-4(165)に記録されている補正履歴を基に、第二磁気センサの第2のアナログ信号の振幅・同期補正を行い、その結果を較正済のアナログデータとして、EEPROM-4(165)に記録する。
Furthermore, if an approximation of a trigonometric function related to the data of the temperature sensor 13 is used to calibrate the data of the second analog signal, it is not necessary to calibrate the data for each rotation, but it can be performed in a predetermined angle range or sampling unit, etc. In other words, the data of the second analog signal at any rotation angle of the second magnetic sensor 112 can be directly calibrated based on the data of the first analog signal of the first magnetic sensor 111 in a corresponding positional relationship, based on the preset data of the relationship between the approximation of a trigonometric function and the temperature sensor 13.
The calibrated analog data is input to, for example, a 64-bit AD converter 162 (ADC-3 to 5 (1621-1623)) and converted into digital values, and these converted values are recorded in an EEPROM-5 (1624) as time-series data.
In a "fail-safe mode" in which the first magnetic sensor 111 or the processing unit 15 for the first magnetic sensor signal has failed, the fail-safe/signal correction unit 164 performs amplitude and synchronization correction of the second analog signal of the second magnetic sensor based on the correction history recorded in the EEPROM-4 (165), and records the result in the EEPROM-4 (165) as calibrated analog data.

 デジタル信号処理部163の第二磁気センサのアブソリュート信号生成ユニット1632は、EEPROM-5から、回転軸の1回転毎のAD変換のデータを取得し、回転軸の回転角度のアブソリュート信号を生成し、時系列の(暫定的な)アブソリュートデータとしてメモリに記録する。この(暫定的な)アブソリュートデータは、第二磁気センサのデジタル信号検出・周波数/回転方向補正部1631において、較正される。すなわち、第二磁気センサのデジタル信号検出・周波数/回転方向補正部1631は、第一磁気センサのデジタル信号・周波数/回転方向検出部1531で生成された、第一磁気センサの1回転毎のデジタル信号の周波数/回転方向のデータを取得し、第二磁気センサの時系列のアブソリュートデータの同期・回転方向の補正を行い、その結果を、第2のデジタルデータ、すなわち、第二磁気センサの(正式な)アブソリュートデータとして、EEPROM-7に記録する。また、アブソリュートデータの補正履歴は、EEPROM-6(166)に記録される。 The second magnetic sensor absolute signal generating unit 1632 of the digital signal processing unit 163 acquires AD conversion data for each rotation of the rotating shaft from the EEPROM-5, generates an absolute signal of the rotation angle of the rotating shaft, and records it in memory as time-series (provisional) absolute data. This (provisional) absolute data is calibrated in the second magnetic sensor digital signal detection and frequency/rotation direction correction unit 1631. In other words, the second magnetic sensor digital signal detection and frequency/rotation direction correction unit 1631 acquires the frequency/rotation direction data of the digital signal for each rotation of the first magnetic sensor generated by the first magnetic sensor digital signal frequency/rotation direction detection unit 1531, performs synchronization and rotation direction correction of the time-series absolute data of the second magnetic sensor, and records the result in the EEPROM-7 as second digital data, i.e., the second magnetic sensor's (formal) absolute data. In addition, the correction history of the absolute data is recorded in EEPROM-6 (166).

 なお、データの較正に、一次関数の近似式を利用すれば、データの較正を1回転毎のデータで行う必要はなく、所定の角度範囲で行うことができる。すなわち、第2の磁気センサ112の任意の回転角度における、第2のデジタルデータを、予め設定された、一次関数の近似式と温度センサ13のデータに基づき、対応する位置関係にある第1の磁気センサ111の第1のデジタルデータに基づき、較正することができる。 If an approximation of a linear function is used to calibrate the data, it is not necessary to calibrate the data for each rotation, but it can be done within a specified angle range. In other words, the second digital data at any rotation angle of the second magnetic sensor 112 can be calibrated based on the first digital data of the first magnetic sensor 111, which is in a corresponding positional relationship, based on a preset approximation of a linear function and the data of the temperature sensor 13.

 他方、第二磁気センサのインクリメンタルA,B,Z,(U,V,W)信号生成ユニット1633は、EEPROM-7から、較正済の、回転軸の回転角度のアブソリュート信号のデジタル値を取得し、インクリメンタルA,B,Z,(U,V,W)信号を生成し、時系列データとしてEEPROM-8に記録する。
 「フェイルセーフモード」においては、EEPROM-5から取得した回転軸の1回転毎のAD変換のデータを、EEPROM-6に記録されているアブソリュートデータの補正履歴に基づいて、第二磁気センサのアブソリュートデータの周波数/回転方向の補正を行い、その結果を較正済デジタル値・補正履歴として、EEPROM-6に記録する。
On the other hand, the incremental A, B, Z, (U, V, W) signal generating unit 1633 of the second magnetic sensor obtains the digital value of the calibrated absolute signal of the rotation angle of the rotating shaft from the EEPROM-7, generates incremental A, B, Z, (U, V, W) signals, and records them in the EEPROM-8 as time-series data.
In the "fail-safe mode," the AD conversion data for each rotation of the rotating shaft obtained from EEPROM-5 is used to correct the frequency/rotation direction of the absolute data of the second magnetic sensor based on the correction history of the absolute data recorded in EEPROM-6, and the result is recorded in EEPROM-6 as a calibrated digital value/correction history.

 なお、図1に示した各機能ブロックは、一例として表示したものである。各機能ブロックの区分は任意であり、上記複数の機能ブロックを共通のプログラムで実現しても良く、或いは、特定の上記機能ブロックを異なる複数のプログラムやIC回路で実現しても良いことは言うまでもない。
 あるいはまた、CPUやメモリを備えたマイクロコンピュータに、上記各機能を実行するためのプログラムを実装することで、上記各機能を実現することも可能である。
1 are merely examples. The functional blocks may be divided in any way, and it goes without saying that the functional blocks may be realized by a common program, or a specific functional block may be realized by a plurality of different programs or IC circuits.
Alternatively, each of the above functions can be realized by installing a program for executing each of the above functions in a microcomputer having a CPU and memory.

 図2に示すように、ロータリーエンコーダ10は、サーボ制御装置40、モータ50と共に、サーボ制御システムを構成している。 As shown in FIG. 2, the rotary encoder 10, together with the servo control device 40 and the motor 50, constitutes a servo control system.

 ロータリーエンコーダ10の殆ど、すなわち、磁気センサユニット11の平板状のマグネット110を除く部分と、電源ユニット12、温度センサ13、システムコントロールユニット14、第一磁気センサ信号の処理ユニット15、及び、第二磁気センサ信号の処理ユニット16は、プリント基板17上に形成、もしくは実装される。このプリント基板は、モータ50のハウジング(図示略)に固定される。
 特に、システムコントロールユニット14、第一磁気センサ信号の処理ユニット15、第二磁気センサ信号の処理ユニット16は、専用のFPGA18(Field Programmable Gate Array)として、あるいは、ASIC(Application Specific Integrated Circuit)として、あるいは、汎用のシングルチップマイコンを用いたIC回路のチップとして実現され、プリント基板17上に形成される。
 なお、システムコントロールユニット14、第一磁気センサ信号の処理ユニット15、及び第二磁気センサ信号の処理ユニット16は、機能的に分割されたブロックであり、これらの機能は、FPGAやASICの、デジタル信号処理ユニット、SSCインターフェース、インクリメンタルインターフェース等における、プログラムの記述により、実現される。
 なお、FPGAには、ROM、RAM、及び、少なくとも1つの書き換え(重ね書き)可能な不揮発性のメモリが含まれており、バスを介してCPUと接続されている。また、書き換え(重ね書き)可能な不揮発性のメモリとして、EEPROMやFRAM(Ferroelectric Random Access Memory、(登録商標))などを採用すればよい。以下の説明では、このようなメモリを、単にEEPROMとして記載する。
Most of the rotary encoder 10, i.e., the magnetic sensor unit 11 except for the flat magnet 110, the power supply unit 12, the temperature sensor 13, the system control unit 14, the first magnetic sensor signal processing unit 15, and the second magnetic sensor signal processing unit 16, are formed or mounted on a printed circuit board 17. This printed circuit board is fixed to a housing (not shown) of the motor 50.
In particular, the system control unit 14, the first magnetic sensor signal processing unit 15, and the second magnetic sensor signal processing unit 16 are realized as a dedicated FPGA 18 (Field Programmable Gate Array), or as an ASIC (Application Specific Integrated Circuit), or as an IC circuit chip using a general-purpose single-chip microcomputer, and are formed on a printed circuit board 17.
The system control unit 14, the first magnetic sensor signal processing unit 15, and the second magnetic sensor signal processing unit 16 are functionally divided blocks, and these functions are realized by writing programs in the digital signal processing unit, SSC interface, incremental interface, etc. of the FPGA or ASIC.
The FPGA includes a ROM, a RAM, and at least one rewritable (overwritable) nonvolatile memory, and is connected to the CPU via a bus. As the rewritable (overwritable) nonvolatile memory, an EEPROM or FRAM (Ferroelectric Random Access Memory, (registered trademark)) may be used. In the following description, such a memory will be simply referred to as an EEPROM.

 第1の磁気センサ111を構成する1対の磁気抵抗効果素子は、出力されるアナログ信号の位相が互いに90度ずれるように、回転軸の回転方向に、所定の間隔を空けて配置されている。第1の磁気センサ111として、TMR(Tunnel magnetoresistance effect)素子が用いられる。第1の磁気センサ111は、回転軸510の回転に伴い平板状のマグネット110の磁束Φaを感知してサイン波、コサイン波を出力する。 The pair of magnetoresistance effect elements constituting the first magnetic sensor 111 are arranged at a predetermined interval in the direction of rotation of the rotating shaft so that the phases of the output analog signals are shifted by 90 degrees from each other. A TMR (Tunnel magnetoresistance effect) element is used as the first magnetic sensor 111. The first magnetic sensor 111 senses the magnetic flux Φa of the flat magnet 110 as the rotating shaft 510 rotates, and outputs a sine wave and a cosine wave.

 なお、マグネット110の、N極領域とS極領域の境界線上の一方の端の位置が、回転軸上の周方向上の特定の位置、すなわち、A相のパルスの立ち上がり時点に相当する原点位置(Z)である。 The position of one end of the boundary line between the north pole region and the south pole region of magnet 110 is a specific position in the circumferential direction on the rotation shaft, that is, the origin position (Z 0 ) corresponding to the rising point of the A-phase pulse.

 第2の磁気センサ112の3個の、ホール素子は、第1の磁気センサ111の半径方向外側において、プリント基板17上に等間隔に配置される。このホール素子の代わりに、ホールICを用いても良い。以下では、ホール素子又はホールICを、単に「ホール素子」と記載する。 The three Hall elements of the second magnetic sensor 112 are arranged at equal intervals on the printed circuit board 17, radially outside the first magnetic sensor 111. Hall ICs may be used instead of these Hall elements. Hereinafter, the Hall elements or Hall ICs will simply be referred to as "Hall elements."

 次に、第1の実施例における、電源ユニットの回路の構成例について、図4を参照しながら説明する。
 電源ユニット12の主電源121は、例えば商用電源から供給された電力が直流電源に変換され、所定の直流電圧Vcc、例えば5Vに制御される主電源部1211を備えている。この主電源部1211は、ダイオード1221を経て出力端子124に電力を供給する。
Next, an example of the circuit configuration of the power supply unit in the first embodiment will be described with reference to FIG.
The main power supply 121 of the power supply unit 12 includes a main power supply section 1211 in which power supplied from, for example, a commercial power supply is converted into DC power and controlled to a predetermined DC voltage Vcc, for example, 5 V. This main power supply section 1211 supplies power to an output terminal 124 via a diode 1221.

 バルクハウゼン効果発電電源122は、バルクハウゼン効果発電ユニット115から、回転軸の1回転毎に、180度間隔で正負のパルス状の波形として出力される。この電力を、全波波形回路1222、平滑回路1223、ダイオード1231を介して、出力端子124に、所定の電圧Vccの直流電力を供給する。
 サブバッテリ123は、電流制限回路1232、コンデンサ1233、電圧制限回路1234を備え、出力端子124に、所定の電圧Vccの直流電力を供給する。コンデンサ1233は、主電源121とバルクハウゼン効果発電電源122の双方から、個別に、電力を供給される。コンデンサ1233は、主電源の電源が失われ、さらに、回転軸も回転を停止した状態、ロータリーエンコーダ10に電力を供給する電源として機能する。電流制限回路1232は、モータの回転数が高く、バルクハウゼン効果発電ユニット115により発電される電力量が多い場合に、コンデンサ1233に供給される電流を制限することで、コンデンサ1233に許容範囲の電荷が蓄積されるように制御するものである。コンデンサ1233には、例えば、電気二重層キャパシタを採用しても良い。コンデンサ1233は、電圧低下を緩やかにするために、複数のコンデンサを並列接続して構成しても良い。
 電源ユニット12の出力端子124に接続された電源ラインは、電気的には独立した3系統のラインとして構成され、システムコントロールユニット14、第一磁気センサ信号の処理ユニット15、第二磁気センサ信号の処理ユニット16、及び、磁気センサユニット11の各センサに電力が供給される。
The Barkhausen effect power generation power supply 122 outputs a positive and negative pulse waveform at 180 degree intervals for each rotation of the rotating shaft from the Barkhausen effect power generation unit 115. This power is supplied to the output terminal 124 via a full-wave waveform circuit 1222, a smoothing circuit 1223, and a diode 1231 as DC power of a predetermined voltage Vcc.
The sub-battery 123 includes a current limiting circuit 1232, a capacitor 1233, and a voltage limiting circuit 1234, and supplies DC power of a predetermined voltage Vcc to the output terminal 124. The capacitor 1233 is supplied with power from both the main power supply 121 and the Barkhausen effect power generation power supply 122 individually. The capacitor 1233 functions as a power supply that supplies power to the rotary encoder 10 when the power supply from the main power supply is lost and the rotation of the rotating shaft is also stopped. The current limiting circuit 1232 controls the capacitor 1233 so that an allowable range of charge is accumulated in the capacitor 1233 by limiting the current supplied to the capacitor 1233 when the motor rotation speed is high and the amount of power generated by the Barkhausen effect power generation unit 115 is large. For example, an electric double layer capacitor may be used as the capacitor 1233. The capacitor 1233 may be configured by connecting multiple capacitors in parallel in order to make the voltage drop gentle.
The power supply line connected to the output terminal 124 of the power supply unit 12 is configured as three electrically independent lines, and power is supplied to the system control unit 14, the first magnetic sensor signal processing unit 15, the second magnetic sensor signal processing unit 16, and each sensor of the magnetic sensor unit 11.

 図5は、電源ユニットの動作を示すタイムチャートであり、主電源の電源が正常な状態から停電した場合の、電源とロータリーエンコーダの出力信号の関係の一例を示す図である。
 主電源の主電源部1211が、時刻t1で、例えば停電や故障により電力を供給できなくなった時には、回転軸の回転に伴い発電されるバルクハウゼン効果発電電源122からロータリーエンコーダ10に電力が供給される。
FIG. 5 is a time chart showing the operation of the power supply unit, and is a diagram showing an example of the relationship between the power supply and the output signal of the rotary encoder when the main power supply goes from a normal state to a power outage.
When the main power supply unit 1211 of the main power supply is unable to supply power at time t1, for example due to a power outage or malfunction, power is supplied to the rotary encoder 10 from the Barkhausen effect power generation power supply 122 which generates power as the rotating shaft rotates.

 停電後、時間の経過とともに回転軸の回転数が低下すると、バルクハウゼン効果発電の出力は小さくなり、時刻t2で、所定の電圧Vccの直流電力を供給できなくなる。この状態になると、サブバッテリ123のコンデンサに1233に蓄積されていた電荷により、ロータリーエンコーダ10に電圧Vccの電力が供給される。
 これにより、ロータリーエンコーダ10は、長時間、例えば、回転軸の回転が完全に停止する時刻t3で、まで、回転軸の回転角度の情報を生成し、記録することができる。
 さらに、停電により回転軸が停止した後、外力、例えば、人の力により、ロボットアームを介して回転軸が強制的に回転された場合には、バルクハウゼン効果発電の出力とコンデンサに1233に蓄積されていた電荷により、時刻t4~t5の間、ロータリーエンコーダ10に電力が供給される。そのため、停電により回転軸が停止した後に外力で回転軸が回転した状態でも、回転軸の回転角度の情報が記録される。
As the rotation speed of the rotating shaft decreases over time after the power outage, the output of the Barkhausen effect power generation decreases, and at time t2, it becomes impossible to supply DC power of the specified voltage Vcc. When this state occurs, the charge stored in the capacitor 1233 of the sub-battery 123 supplies power of the voltage Vcc to the rotary encoder 10.
This allows the rotary encoder 10 to generate and record information on the rotation angle of the rotating shaft for a long period of time, for example, until time t3 when the rotation of the rotating shaft completely stops.
Furthermore, if the rotating shaft is forcibly rotated by an external force, for example, human force, via a robot arm after the rotating shaft has stopped due to a power outage, power is supplied to the rotary encoder 10 from time t4 to t5 by the output of the Barkhausen effect power generation and the charge stored in the capacitor 1233. Therefore, even if the rotating shaft is rotated by an external force after the rotating shaft has stopped due to a power outage, information on the rotation angle of the rotating shaft is recorded.

 次に、図6は、電源ユニットの回路の他の構成例を示す図である。図4の電流制限回路1232に代えて、PWM制御部1235で制御されるMOSFET1236を採用し、バルクハウゼン効果発電ユニット115からコンデンサ1233に供給される電流をPWM制御する。符号の1237は電流検出用の抵抗である。コンデンサ1233は、主電源121とバルクハウゼン効果発電電源122の双方から、個別に、電力を供給される。この例では、コンデンサ1233の充電電圧や電流の検出値に応じて、MOSFET1236のPWM制御を行い、コンデンサ1233に蓄積される電荷が最適値になるように制御している。
 この例でも、ロータリーエンコーダ10は、長時間、例えば、回転軸の回転が停止するまで、あるいは、その後の外力駆動時まで、回転軸の回転角度の情報を生成し、記録することができる。
Next, Fig. 6 is a diagram showing another example of the configuration of the circuit of the power supply unit. Instead of the current limiting circuit 1232 in Fig. 4, a MOSFET 1236 controlled by a PWM control unit 1235 is adopted, and the current supplied from the Barkhausen effect power generating unit 115 to the capacitor 1233 is PWM controlled. Reference numeral 1237 denotes a resistor for current detection. The capacitor 1233 is supplied with power individually from both the main power supply 121 and the Barkhausen effect power generating source 122. In this example, the MOSFET 1236 is PWM controlled according to the detected values of the charging voltage and current of the capacitor 1233, and the charge stored in the capacitor 1233 is controlled to be an optimal value.
In this example as well, the rotary encoder 10 can generate and record information on the rotation angle of the rotating shaft for a long period of time, for example, until the rotation of the rotating shaft stops or until it is subsequently driven by an external force.

 次に、図7、図8、図9を参照しながら、第一磁気センサ信号の処理ユニット15における、第一の磁気センサ信号のデジタル化、アブソリュート化の処理について、説明する。
 第一磁気センサ信号の処理ユニット15は、初期設定値から、モータの極数、回転軸の原点の情報を取得する(S701)。
 図7の(A)に示すように、第1の磁気センサ(TMRセンサ)111からは、回転軸の1回転に対応して、SIN波、COS波の各々で360度(機械角)、各々1周期分の第1のアナログ信号が出力される。これら第1のアナログ信号の回転角(機械角)と振幅、及び、回転数Nxのデータは、第一磁気センサ信号の処理ユニット15のアナログ信号(sin,cos)・振幅検出部151により、温度センサ13の温度Taと関係づけてられて、メモリに記録される。一般的に、ホール素子は、TMRセンサに比べて雰囲気の温度の影響を大きく受けやすいのでこのような処理が必要である。
Next, the process of digitizing and converting the first magnetic sensor signal into an absolute value in the first magnetic sensor signal processing unit 15 will be described with reference to FIGS.
The first magnetic sensor signal processing unit 15 obtains information on the number of poles of the motor and the origin of the rotation shaft from the initial setting values (S701).
7A, the first magnetic sensor (TMR sensor) 111 outputs a first analog signal of 360 degrees (mechanical angle) each for one period of a sine wave and a cosine wave in response to one rotation of the rotating shaft. The data of the rotation angle (mechanical angle) and amplitude of these first analog signals, and the number of rotations Nx, are correlated with the temperature Ta of the temperature sensor 13 by the analog signal (sin, cos)/amplitude detection section 151 of the first magnetic sensor signal processing unit 15, and recorded in memory. Generally, such processing is necessary since Hall elements are more susceptible to the influence of the ambient temperature than TMR sensors.

 ここで、第1の磁気センサ(TMRセンサ)から出力される第1のアナログ信号が、正確な正弦波であると仮定した場合、時刻t、位置xにおける変位y1(すなわち振幅)をy1(x,t)とすると、y1(x,t)は、次式で表わされる。
 y1(x,t)=Asin2π(t/T-x/λ)    (1)
 ただし、Tは周期、λは波長であり、Aは定数である。
 第1の磁気センサから出力される実際のアナログ信号は、温度補償済であり、上記式(1)に近似したものと考えることができる。
 そのため、第1の磁気センサから出力される実際のアナログ信号のSIN波、COS波を、基板の温度Taとの関係で表す三角関数の近似式、y1(x,t、Ta)をあらかじめ取得し、初期設定データとして保持しておくことができる。この三角関数の近似式を用いて、上記第1のアナログ信号の回転角(機械角)と振幅、及び、回転数Nxのデータを生成することができる。これにより、低速回転域から高速回転域まで広範囲にわたり、精度の高い、第2のアナログ信号の較正用データを生成できる。
Here, assuming that the first analog signal output from the first magnetic sensor (TMR sensor) is an accurate sine wave, if the displacement y1 (i.e., amplitude) at time t and position x is y1(x, t), y1(x, t) can be expressed by the following equation.
y1 (x, t) = Asin2π (t/T-x/λ) (1)
where T is the period, λ is the wavelength, and A is a constant.
The actual analog signal output from the first magnetic sensor is temperature compensated and can be considered to be close to the above equation (1).
Therefore, an approximate trigonometric function y1(x, t, Ta) expressing the relationship between the sine wave and cosine wave of the actual analog signal output from the first magnetic sensor and the substrate temperature Ta can be obtained in advance and stored as initial setting data. Using this approximate trigonometric function, data on the rotation angle (mechanical angle) and amplitude of the first analog signal, and the number of rotations Nx can be generated. This makes it possible to generate highly accurate calibration data for the second analog signal over a wide range from low rotation speeds to high rotation speeds.

 図7の(B)に示すように、アナログ信号(sin信号,cos信号)は、AD変換器152に入力されて、量子化され内挿処理により多分割されたデジタル信号に変換され、A相、B相の情報を含むデジタル値に変換され、それらの変換値が、回転数Nx、温度Taと関係づけてられて、EEPROM-1に記録される。
 図8のフローチャートに示すように、第一磁気センサ信号の処理ユニット15は、EEPROM-1から、第一磁気センサ信号(Sin, Cos波)のAD変換のデータを取得する(S702)。第一磁気センサ信号の処理ユニット15は、さらに、第1のアナログ信号(sin信号,cos信号)のAD変換データに基づき、デジタル波形を必要に応じて時間分割等により補間し、原点からの絶対位置を示す、例えば27ビットの、回転角度のデータに変更し、アブソリュート値として算出する(S703)。そして、アブソリュート値にメモリの番地付けを行い、メモリに記録する(S704)。
 すなわち、図7の(C)に示すように、第一磁気センサのデジタル信号・周波数/回転方向検出部1531により、EEPROM-1のデジタル値に基づき、回転軸の正逆1回転毎の周波数が算出され、正逆1回転毎のアブソリュート値が生成され、回転数Nx、温度Ta及び回転方向のデータと共に、EEPROM-2に記録される。
As shown in FIG. 7B, the analog signals (sine signal, cosine signal) are input to an AD converter 152, quantized, and converted into a multi-divided digital signal by an interpolation process, and then converted into digital values containing information on phases A and B. These converted values are correlated with the rotation speed Nx and temperature Ta, and are recorded in the EEPROM-1.
As shown in the flowchart of Fig. 8, the first magnetic sensor signal processing unit 15 obtains AD converted data of the first magnetic sensor signal (sine and cosine waves) from the EEPROM-1 (S702). The first magnetic sensor signal processing unit 15 further performs time division or other interpolation on the digital waveform based on the AD converted data of the first analog signal (sine signal, cosine signal) as necessary, converts it into, for example, 27-bit data of a rotation angle indicating an absolute position from the origin, and calculates it as an absolute value (S703). Then, the absolute value is assigned a memory address and recorded in the memory (S704).
That is, as shown in FIG. 7C, the digital signal/frequency/rotation direction detection unit 1531 of the first magnetic sensor calculates the frequency for each rotation of the rotating shaft in either direction based on the digital value in EEPROM-1, generates an absolute value for each rotation in either direction, and records this in EEPROM-2 together with the rotation speed Nx, temperature Ta, and rotation direction data.

 ここで、第1の磁気センサから出力される第1のアナログ信号が、正確な正弦波であると仮定した場合、EEPROM-1のデジタル値に基づき得られるアブソリュート値をy2(x,t)とすると、y2(x,t)は、温度Taと関係のある、一次関数で表わすことができる。
 すなわち、第1の磁気センサから出力される実際のアナログ信号に基づいた、図7の(C)に示すようなアブソリュート値は、上記一次関数で近似することもできる。そのため、温度Taに応じて、第1の磁気センサから出力される実際のアナログ信号のSIN波、COS波に基づいたアブソリュート値の近似式をあらかじめ取得し、初期設定データとして保持しておくことができる。このアブソリュート値の近似式を用いて、上記正逆1回転毎のアブソリュート値を生成することができる。これにより、低速回転域から高速回転域まで広範囲にわたり、精度の高い、アブソリュートデータの較正用データを生成できる。
Here, assuming that the first analog signal output from the first magnetic sensor is an accurate sine wave, and the absolute value obtained based on the digital value of EEPROM-1 is y2(x, t), y2(x, t) can be expressed as a linear function related to the temperature Ta.
That is, the absolute value as shown in FIG. 7C based on the actual analog signal output from the first magnetic sensor can also be approximated by the linear function. Therefore, an approximation formula for the absolute value based on the sine wave and cosine wave of the actual analog signal output from the first magnetic sensor according to the temperature Ta can be obtained in advance and stored as initial setting data. The approximation formula for the absolute value can be used to generate the absolute value for each forward and reverse rotation. This makes it possible to generate highly accurate absolute data calibration data over a wide range from low speed rotation to high speed rotation.

 さらに、第一磁気センサのデジタル信号・周波数/回転方向検出部1531では、原点情報とアブソリュート値から、回転方向、回転角度、回転数を含む多回転情報を生成しEEPROM-2に記録する(S711)。 Furthermore, the digital signal/frequency/rotation direction detection unit 1531 of the first magnetic sensor generates multi-rotation information including the rotation direction, rotation angle, and rotation count from the origin information and absolute value, and records this in EEPROM-2 (S711).

 第一磁気センサのアブソリュート信号生成ユニット1532は、原点情報とアブソリュート値から回転数を算出し(S721)、多回転アブソリュート情報を生成し、多回転アブソリュートデータとして、EEPROM-2に記録する(S722)。 The absolute signal generation unit 1532 of the first magnetic sensor calculates the number of rotations from the origin information and the absolute value (S721), generates multi-rotation absolute information, and records it in EEPROM-2 as multi-rotation absolute data (S722).

 また、第一磁気センサのインクリメンタルA,B,Z,(U,V,W)信号生成ユニット1533は、AD変換データとアブソリュート値から、図7の(B)に示したA相、B相の情報に基づき、A相、B相のデータを算出し(S731)、A相、B相の立ち上がりに同期するZ相の幅のデータを算出する(S732)。さらに、A相、B相、Z相の幅のデータを基に、図9に示すような、U,V,W相のデータを生成し(S733)、A相、B相、Z相、U,V,W相のデータに番地付けを行い、インクリメンタルデータとして、EEPROM-3に記録する(S734)。 The incremental A, B, Z (U, V, W) signal generating unit 1533 of the first magnetic sensor calculates A-phase and B-phase data from the AD conversion data and absolute value based on the A-phase and B-phase information shown in FIG. 7B (S731), and calculates the width data of Z-phase synchronized with the rising edge of A-phase and B-phase (S732). Furthermore, based on the A-phase, B-phase, and Z-phase width data, it generates U-phase, V-phase, and W-phase data as shown in FIG. 9 (S733), assigns addresses to the A-phase, B-phase, Z-phase, U-phase, V-phase, and W-phase data, and records them in EEPROM-3 as incremental data (S734).

 次に、図10と、図11を参照しながら、第1の実施例における、第二磁気センサ信号の処理ユニットにおける信号処理について、説明する。
 第2の磁気センサを構成する各ホール素子H1~H3からは、図10の(A)に実線で示したような、第2のアナログ信号として、1回転のうちの180度毎に立ち上り若しくは立ち下るsin信号(H1~H3),H2のsin信号,H3のsin信号)波形が得られる。この波形は、設置位置に基づく歪補正済のデータを示している。第二の磁気センサとしてのホール素子は、位置の誤差、素子の特性のばらつき、環境温度等による変動が大きい。図10の(A)に示した破線は、対応する第1の磁気センサの出力を示している。
 ホール素子のアナログ出力のデータは、回転数Nx及び温度Taのデータと関係づけられて、メモリに記録される。この、温度Taのデータと関係づけられるホール素子のアナログ出力のデータについても、上記式(1)と同様に、近似式で表現できる。
Next, the signal processing in the second magnetic sensor signal processing unit in the first embodiment will be described with reference to FIG. 10 and FIG.
From each of the Hall elements H1 to H3 constituting the second magnetic sensor, a sine signal (H1 to H3), a sine signal of H2, and a sine signal of H3) that rises or falls every 180 degrees of one rotation is obtained as a second analog signal as shown by the solid line in Fig. 10(A). This waveform shows data that has been corrected for distortion based on the installation position. The Hall elements as the second magnetic sensor are subject to large fluctuations due to position errors, variations in element characteristics, environmental temperature, etc. The dashed line shown in Fig. 10(A) shows the output of the corresponding first magnetic sensor.
The analog output data of the Hall element is stored in memory in association with the data of the rotation speed Nx and the temperature Ta. The analog output data of the Hall element associated with the data of the temperature Ta can also be expressed by an approximation formula, similar to the above formula (1).

 そして、第一磁気センサ信号の処理ユニット15の第1のアナログ信号(sin,cos)・振幅検出部151から、第1の磁気センサ111のアナログ信号の回転角(機械角)と振幅、及び、回転数Nx、温度センサ13のデータを、取得する。そして、第2の磁気センサ112の第2のアナログ信号1回転毎のデータを、第1のアナログ信号の回転角(機械角)と振幅、及び、回転数Nx、温度センサ13の温度Taのデータに基づき、振幅補正、同期補正、すなわち、データの較正を行い、較正済のアナログデータを回転数Nx及び温度Taのデータと関係づけて、補正履歴とともに、EEPROM-4(165)に記録する。図10の(B)は、較正済の第2の磁気センサ112のアナログデータの例を示している。
 この補正履歴も、前記のように、較正済のアナログデータy2を、第1のアナログ信号のSIN波、COS波を表す三角関数の近似式、y2(x,t、Ta)で表現できる。
 この較正済のアナログデータは、AD変換器162(ADC-3~5)に入力されてデジタル値に変換され、それらの変換値が時系列データとしてEEPROM-5に記録される。
Then, the rotation angle (mechanical angle) and amplitude of the analog signal of the first magnetic sensor 111, the number of revolutions Nx, and the data of the temperature sensor 13 are acquired from the first analog signal (sin, cos)/amplitude detection unit 151 of the processing unit 15 of the first magnetic sensor signal. Then, the data of the second analog signal of the second magnetic sensor 112 for each revolution is subjected to amplitude correction and synchronization correction, that is, data calibration, based on the rotation angle (mechanical angle) and amplitude of the first analog signal, the number of revolutions Nx, and the data of the temperature Ta of the temperature sensor 13, and the calibrated analog data is associated with the data of the number of revolutions Nx and the temperature Ta, and is recorded in the EEPROM-4 (165) together with the correction history. (B) of FIG. 10 shows an example of the calibrated analog data of the second magnetic sensor 112.
As described above, this correction history can also be expressed by the calibrated analog data y2 using an approximate trigonometric function y2(x, t, Ta) representing the sine wave and cosine wave of the first analog signal.
This calibrated analog data is input to the AD converter 162 (ADC-3 to ADC-5) and converted into digital values, and these converted values are recorded in the EEPROM-5 as time-series data.

 図10の(C)は、第2の磁気センサ112の信号が、A相、B相の情報を含むデジタル値に変換された、デジタル変換済のデータの例を示している。
 図10の(D)は、第二の磁気センサ信号の出力に基づく、(暫定的な)アブソリュート値の例を示している。実線で示した(暫定的な)アブソリュート値には、第二の磁気センサの特性に依存する位相誤差などが含まれている。(なお、分かり易くするために、誤差は拡張して記載されている)。特に、第2のアナログ信号の段階での温度Taの影響による誤差を充分には解消できないままに、デジタル変換されることが想定される。図10の(D)に示した破線は、対応する第1の磁気センサの出力に基づくアブソリュート値を示している。
FIG. 10C shows an example of digitally converted data in which the signal of the second magnetic sensor 112 is converted into a digital value including information on A phase and B phase.
FIG. 10D shows an example of a (provisional) absolute value based on the output of the second magnetic sensor signal. The (provisional) absolute value shown by the solid line includes a phase error that depends on the characteristics of the second magnetic sensor. (Note that the error is shown in an exaggerated manner for ease of understanding.) In particular, it is assumed that the second analog signal is converted to digital without being able to fully eliminate the error caused by the influence of temperature Ta at the stage of the second analog signal. The dashed line shown in FIG. 10D shows the absolute value based on the corresponding output of the first magnetic sensor.

 第二磁気センサ信号の処理ユニット16のデジタル信号検出・周波数/回転方向補正部1631において、原点情報とアブソリュート値から、回転方向、回転角度、回転数を含む多回転情報を生成しEEPROM-7に記録する(図11のS911)。
 すなわち、第二磁気センサのデジタル信号検出・周波数/回転方向補正部1631は、第一磁気センサのデジタル信号・周波数/回転方向検出部1531で生成された、第一磁気センサの1回転毎のデジタル信号の周波数/回転方向のデータを取得し、第二磁気センサの時系列の(暫定的な)アブソリュートデータに対して同期・回転方向の補正を行い、その結果を、第二磁気センサの(正式な)アブソリュートデータとして、EEPROM-7に記録する。また、アブソリュートデータの補正履歴は、EEPROM-6に記録される。
 図10の(E)は、第二の磁気センサ信号の出力に基づく、(正式な)アブソリュート値の例を示している。図10の(E)のアブソリュート値も、前記したように、一次関数で近似することもてきる。
In the digital signal detection and frequency/rotation direction correction section 1631 of the second magnetic sensor signal processing unit 16, multi-rotation information including the rotation direction, rotation angle, and rotation count is generated from the origin information and absolute value, and recorded in the EEPROM-7 (S911 in FIG. 11).
That is, the second magnetic sensor digital signal detection and frequency/rotation direction correction unit 1631 acquires the frequency/rotation direction data of the digital signal for each rotation of the first magnetic sensor generated by the first magnetic sensor digital signal and frequency/rotation direction detection unit 1531, performs synchronization and rotation direction correction on the (provisional) absolute data of the second magnetic sensor in time series, and records the result as the (formal) absolute data of the second magnetic sensor in EEPROM-7. In addition, the correction history of the absolute data is recorded in EEPROM-6.
Fig. 10(E) shows an example of a (formal) absolute value based on the output of the second magnetic sensor signal. The absolute value in Fig. 10(E) can also be approximated by a linear function as described above.

 図11において、第二磁気センサ信号の処理ユニット16は、初期設定値から、モータの極数、回転軸の原点の情報を取得する(S901)。初期設定値からは、データの較正のための、三角関数の近似式や一次関数のデータも取得できる。
 第二磁気センサ信号の処理ユニット16は、次に、EEPROM-6から、第二磁気センサ信号(Sin波)の較正済のAD変換データを取得する(S902)。さらに、AD変換データに基づき、デジタル波形を必要に応じて時間分割等により補間し、原点からの絶対位置を示す、例えば23ビットの、回転角度のデータに変換し、(暫定的な)アブソリュート値を算出する(S903)。そして、この(暫定的な)アブソリュート値にメモリの番地付けを行い、メモリに記録する(S904)。
11, the second magnetic sensor signal processing unit 16 obtains information on the number of poles of the motor and the origin of the rotating shaft from the initial setting (S901). From the initial setting, trigonometric function approximation and linear function data for data calibration can also be obtained.
The second magnetic sensor signal processing unit 16 then obtains calibrated AD conversion data of the second magnetic sensor signal (sine wave) from the EEPROM-6 (S902). Based on the AD conversion data, the digital waveform is interpolated by time division or the like as necessary, and converted into, for example, 23-bit data of a rotation angle indicating an absolute position from the origin, and a (provisional) absolute value is calculated (S903). Then, the (provisional) absolute value is assigned a memory address and recorded in the memory (S904).

 デジタル信号処理部163の第二磁気センサのアブソリュート信号生成ユニット1632は、原点情報とアブソリュート値から回転数を算出し(S921)、多回転アブソリュート情報を生成し、多回転アブソリュートデータとして、EEPROM-7に記録する(S922)。 The absolute signal generation unit 1632 of the second magnetic sensor of the digital signal processing unit 163 calculates the number of rotations from the origin information and the absolute value (S921), generates multi-rotation absolute information, and records it in the EEPROM-7 as multi-rotation absolute data (S922).

 デジタル信号処理部163の第二磁気センサのインクリメンタルA,B,Z,(U,V,W)信号生成ユニット1633は、AD変換データとアブソリュート値からA相、B相のデータを算出し(S931)、A相、B相の立ち上がりに同期するZ相の幅のデータを算出し(S932)、A相、B相、Z相の幅のデータを基にU,V,W相のデータを生成し(S933)、A相、B相、Z相、U,V,W相のデータに番地付けを行い、インクリメンタルデータとして、EEPROM-8に記録する(S934)。 The incremental A, B, Z (U, V, W) signal generation unit 1633 of the second magnetic sensor of the digital signal processing unit 163 calculates A-phase and B-phase data from the AD conversion data and absolute value (S931), calculates Z-phase width data synchronized with the rising edge of A-phase and B-phase (S932), generates U-phase, V-phase, and W-phase data based on the A-phase, B-phase, and Z-phase width data (S933), assigns addresses to the A-phase, B-phase, Z-phase, U-phase, V-phase, and W-phase data, and records it in the EEPROM-8 as incremental data (S934).

 次に、図12を参照しながら、第1の実施例における、フェイルセーフ制御ユニット145の処理について説明する。
 まず、初期設定部から、EEPEOM1~3,4~8のデータの正常判定に関する情報を取得する(S1001)。次に、EEPEOM1~3の1回転毎のデータをモニタする(S1002)。また、EEPEOM4~8の1回転毎のデータをモニタする(S1003)。なお、データのモニタは1回転毎でなくても良く、例えば、所定の時間周期でも良い。
 次に、全データは正常か否かを判定し(S1004)、正常な場合には、通常運転を行い(S1005)、これを運転終了まで継続する(S1006、S1007)。もし、S1004において、全データが正常ではない場合、次に、EEPEOM1~3のデータは正常か否かを判定し(S1010)、正常な場合には、第二磁気センサ又は第二磁気センサ信号の処理ユニットの異常表示を行い(S1011)、EEPEOM1~3のデータで準通常運転を行い(S1012)、これを運転終了まで継続する(S1013、S1014)。もし、S1010において、EEPEOM1~3のデータが正常ではない場合、次に、EEPEOM4~8のデータは正常か否かを判定し(S1020)、正常な場合には、第一磁気センサ又は第一磁気センサ信号の処理ユニットの異常表示を行い(S1021)、EEPEOM4~8 のデータで、フェイルセーフモード運転を行い(S1022)、これを運転終了まで継続する(S1023、S1024)。もし、S1020において、EEPEOM4~8のデータが正常ではない場合、エンコーダエラー表示を行い(S1030)、運転終了処理を行う(S1031、S1032)。
Next, the processing of the fail-safe control unit 145 in the first embodiment will be described with reference to FIG.
First, information regarding the normality of the data in EEPEOM 1-3 and 4-8 is obtained from the initial setting unit (S1001). Next, the data in EEPEOM 1-3 is monitored for each rotation (S1002). In addition, the data in EEPEOM 4-8 is monitored for each rotation (S1003). Note that data does not have to be monitored for each rotation, and may be monitored at a predetermined time interval, for example.
Next, it is determined whether all the data is normal (S1004), and if normal, normal operation is performed (S1005), and this continues until operation is terminated (S1006, S1007). If in S1004, all the data is not normal, it is next determined whether the data in EEPEOM1 to 3 is normal (S1010), and if normal, an abnormality is displayed for the second magnetic sensor or the processing unit for the second magnetic sensor signal (S1011), and semi-normal operation is performed using the data in EEPEOM1 to 3 (S1012), and this continues until operation is terminated (S1013, S1014). If the data in EEPEOM1-3 is not normal in S1010, then it is determined whether the data in EEPEOM4-8 is normal or not (S1020), and if normal, an error is displayed in the first magnetic sensor or the processing unit for the first magnetic sensor signal (S1021), and fail-safe mode operation is performed using the data in EEPEOM4-8 (S1022), and this continues until operation ends (S1023, S1024). If the data in EEPEOM4-8 is not normal in S1020, an encoder error is displayed (S1030), and operation end processing is performed (S1031, S1032).

 次に、図13を参照しながら、ロータリーエンコーダの通常運転時の、第二磁気センサ信号の処理ユニットのデータ処理(S1101)について説明する。
 第二磁気センサ信号の処理ユニットは、通常運転時の第二磁気センサのデータ処理初期設定値から、モータの極数、回転軸の原点の情報を取得する(S1012)。そして、第二磁気センサの第2のアナログ信号のデータを取得し、歪補正処理を行う(S1103)。さらに、第二磁気センサの信号と同期関係にある、第一磁気センサの、第1のアナログ信号のデータを取得する(S1104)。
 次に、第二磁気センサの第2のアナログ信号のデータの振幅を、対応する第一磁気センサの第1のアナログ信号のデータの振幅を基に、較正する(S1105)。そして、第二磁気センサの較正済アナログ信号データを、EEPROM-4に記録する(S1106)。さらに、アナログ信号補正履歴をEEPROM-4に記録する(S1107)。次に、較正済アナログ信号データを、AD変換器162でAD変換し、その第2のデジタルデータをEEPROM-5に記録する(S1108)。
 次に、EEPROM-5から、第二磁気センサの第2のデジタルデータを取得し(S1109)、第二磁気センサの第2のデジタルデータの回転角度、回転方向を、対応する第一磁気センサの第1のデジタルデータの回転角度、回転方向を基に、較正する(S1110)。そして、第二磁気センサの較正済デジタルデータを、EEPROM-6に記録する(S1111)。また、第2のデジタルデータの補正履歴を EEPROM-6に記録する(S1112)。以上の処理を、運転終了まで繰り返す。
Next, data processing (S1101) of the second magnetic sensor signal processing unit during normal operation of the rotary encoder will be described with reference to FIG.
The second magnetic sensor signal processing unit obtains information on the number of poles of the motor and the origin of the rotation shaft from the data processing initial setting of the second magnetic sensor during normal operation (S1012).Then, the second analog signal data of the second magnetic sensor is obtained and distortion correction processing is performed (S1103).Furthermore, the first analog signal data of the first magnetic sensor, which is in a synchronous relationship with the signal of the second magnetic sensor, is obtained (S1104).
Next, the amplitude of the second analog signal data of the second magnetic sensor is calibrated based on the amplitude of the first analog signal data of the corresponding first magnetic sensor (S1105). Then, the calibrated analog signal data of the second magnetic sensor is recorded in EEPROM-4 (S1106). Furthermore, the analog signal correction history is recorded in EEPROM-4 (S1107). Next, the calibrated analog signal data is AD converted by the AD converter 162, and the second digital data is recorded in EEPROM-5 (S1108).
Next, the second digital data of the second magnetic sensor is obtained from the EEPROM-5 (S1109), and the rotation angle and rotation direction of the second digital data of the second magnetic sensor are calibrated based on the rotation angle and rotation direction of the corresponding first digital data of the first magnetic sensor (S1110). Then, the calibrated digital data of the second magnetic sensor is recorded in the EEPROM-6 (S1111). In addition, the correction history of the second digital data is recorded in the EEPROM-6 (S1112). The above process is repeated until the end of operation.

 次に、図14を参照しながら、ロータリーエンコーダのフェイルセーフモード時の、第二磁気センサ信号の処理ユニットのデータ処理(S1201)について説明する。
 まず、初期設定値から、モータの極数、回転軸の原点の情報、フェイルセーフ制御用データを取得する(S1202)。次に、第二磁気センサの第2のアナログ信号のデータを取得する(S1203)。さらに、EEPROM-4から、アナログ信号の補正履歴のデータを取得する(S1204)。そして、第二磁気センサの第2のアナログ信号のデータの歪・振幅を、フェイルセーフ制御用データ及びアナログ信号の補正履歴を基に、較正する(S1205)。また、第二磁気センサの較正済アナログ信号データを、EEPROM-4に記録する(S1206)。さらに、較正済アナログ信号データを、AD変換器162でAD変換し、第2のデジタルデータをEEPROM-5に記録する(S1207)。
 次に、EEPROM-5から第二磁気センサの第2のデジタルデータを取得する(S1208)。一方、EEPROM-6から、デジタルデータ補正履歴のデータを取得する(S1209)。そして、第二磁気センサの第2のデジタルデータの回転角度、回転方向を、フェイルセーフ制御用データ、(デジタルデータ)補正履歴の各データを基に、較正する(S1210)。さらに、第二磁気センサの較正済デジタルデータを、EEPROM-6に記録する(S1211)。以上の処理を、運転終了まで繰り返す。
Next, data processing (S1201) of the second magnetic sensor signal processing unit in the fail-safe mode of the rotary encoder will be described with reference to FIG.
First, the number of poles of the motor, information on the origin of the rotation shaft, and fail-safe control data are obtained from the initial setting values (S1202). Next, data on the second analog signal of the second magnetic sensor is obtained (S1203). Furthermore, data on the correction history of the analog signal is obtained from the EEPROM-4 (S1204). Then, the distortion and amplitude of the data on the second analog signal of the second magnetic sensor are calibrated based on the fail-safe control data and the correction history of the analog signal (S1205). Furthermore, the calibrated analog signal data of the second magnetic sensor is recorded in the EEPROM-4 (S1206). Furthermore, the calibrated analog signal data is AD converted by the AD converter 162, and the second digital data is recorded in the EEPROM-5 (S1207).
Next, the second digital data of the second magnetic sensor is obtained from EEPROM-5 (S1208). Meanwhile, the digital data correction history data is obtained from EEPROM-6 (S1209). Then, the rotation angle and rotation direction of the second digital data of the second magnetic sensor are calibrated based on the fail-safe control data and the (digital data) correction history data (S1210). Furthermore, the calibrated digital data of the second magnetic sensor is recorded in EEPROM-6 (S1211). The above process is repeated until the end of operation.

 本発明の実施例によれば、第2の磁気センサの第2のデジタルデータが、第1の磁気センサの第1のデジタルデータに基づいて較正され、かつ、これらの較正履歴に基づいて、バックアップ制御時に、前記第2の磁気センサの第2のデジタルデータを較正可能であるため、精度は高くないものの安価な第2の磁気センサを採用しながら、信頼性の高いバックアップ制御を可能にする、ロータリーエンコーダを提供することができる。 According to an embodiment of the present invention, the second digital data of the second magnetic sensor is calibrated based on the first digital data of the first magnetic sensor, and the second digital data of the second magnetic sensor can be calibrated during backup control based on the calibration history. This makes it possible to provide a rotary encoder that enables highly reliable backup control while employing an inexpensive second magnetic sensor that is not highly accurate.

 なお、本発明の実施例として、第2の磁気センサとして、ホール素子の代わりに、AMR(Anisotropic magnetoresistance effect)素子を採用してもよい。あるいは、GMR(Giant magnetoresistance effect)素子を採用してもよい。これらのAMRセンサやGMRセンサも、ホール素子の例と同じように、第1の磁気センサを中心とする1つの円周上に、等間隔で配置される。 In addition, as an embodiment of the present invention, an AMR (Anisotropic magnetoresistance effect) element may be used as the second magnetic sensor instead of a Hall element. Alternatively, a GMR (Giant magnetoresistance effect) element may be used. These AMR and GMR sensors are also arranged at equal intervals on a circumference centered on the first magnetic sensor, just like the Hall element example.

 本発明は、他の種類のモータ、例えば、ステッピングモータにも採用できる。また、同期型モータ、誘導モータ等、種々のモータに広く適用できる。また、これらのモータを用いたサーボ制御装置にも本発明を適用できる。 The present invention can also be used with other types of motors, such as stepping motors. It can also be widely applied to a variety of motors, including synchronous motors and induction motors. It can also be applied to servo control devices that use these motors.

10  ロータリーエンコーダ
11  磁気センサユニット
110  マグネット
111  第1の磁気センサ
112  第2の磁気センサ
113  温度センサ
12  電源ユニット
121  主電源
122  バルクハウゼン効果発電電源
123  サブバッテリ
13  温度 センサ
130  エンコーダ出力制御ユニット
14  システムコントロールユニット
142  設定部
143  フェイルセーフ制御用データ
144  エンコーダ入出力制御ユニット
145  フェイルセーフ制御ユニット
146  出力切替ユニット
147  シリアル/パラレル信号送受信ユニット
15  第一磁気センサ信号の処理ユニット
151  第一磁気センサのアナログ信号(sin, cos)・振幅検出部
152  AD変換器
1521  ADC-1(sin)
1522  ADC-2(cos)
1523 EEPROM-1
153  デジタル信号処理部
1531  第一磁気センサのデジタル信号・周波数/回転方向検出部
1532  第一磁気センサのアブソリュート信号生成ユニット 
1533  第一磁気センサのインクリメンタルA, B, Z ,(U,V,W) 信号生成ユニット 
16  第二磁気センサ信号の処理ユニット
160  アナログ信号処理部
161    第二磁気センサのアナログ信号の歪補正・振幅・同期補正部
162  AD変換器
163  デジタル信号処理部
1631  第二磁気センサのデジタル信号検出・周波数/回転方向補正部
1632  第二磁気センサのアブソリュート信号生成ユニット
1633  第二磁気センサのインクリメンタルA, B, Z ,(U,V,W)信号生成ユニット
164  フェイルセーフ・信号補正部
17  プリント基板
18  FPGA
40  サーボ制御装置
50  モータ
510  回転軸
H1,H2,H3  ホール素子
10 Rotary encoder 11 Magnetic sensor unit 110 Magnet 111 First magnetic sensor 112 Second magnetic sensor 113 Temperature sensor 12 Power supply unit 121 Main power supply 122 Barkhausen effect power supply 123 Sub-battery 13 Temperature sensor 130 Encoder output control unit 14 System control unit 142 Setting unit 143 Fail-safe control data 144 Encoder input/output control unit 145 Fail-safe control unit 146 Output switching unit 147 Serial/parallel signal transmission/reception unit 15 First magnetic sensor signal processing unit 151 First magnetic sensor analog signal (sin, cos)/amplitude detection unit 152 AD converter 1521 ADC-1 (sin)
1522 ADC-2 (cos)
1523 EEPROM-1
153 Digital signal processing unit 1531 Digital signal/frequency/rotation direction detection unit of first magnetic sensor 1532 Absolute signal generation unit of first magnetic sensor
1533 First magnetic sensor incremental A, B, Z, (U, V, W) signal generating unit
16 Second magnetic sensor signal processing unit 160 Analog signal processing unit 161 Distortion correction, amplitude, and synchronization correction unit for analog signal of second magnetic sensor 162 AD converter 163 Digital signal processing unit 1631 Digital signal detection and frequency/rotation direction correction unit for second magnetic sensor 1632 Absolute signal generation unit for second magnetic sensor 1633 Incremental A, B, Z, (U, V, W) signal generation unit for second magnetic sensor 164 Fail-safe and signal correction unit 17 Printed circuit board 18 FPGA
40 Servo control device 50 Motor 510 Rotating shaft H1, H2, H3 Hall element

Claims (9)

 回転軸に固定されるマグネットと、
 前記マグネットに対向して配置された第1の磁気センサの出力である第1のアナログ信号を、AD変換し、前記第1の磁気センサの出力のAD変換データに基づき、前記回転軸の回転角度、回転方向に関する、アブソリュート信号とインクリメンタル信号の2系統の情報を含む、第1のデジタルデータを生成する第一磁気センサ信号の処理ユニットと、
 前記マグネットに対向して配置された第2の磁気センサの出力である第2のアナログ信号を、AD変換し、前記第2の磁気センサの出力のAD変換データに基づき、前記回転軸の前記回転角度、前記回転方向に関する、アブソリュート信号とインクリメンタル信号の2系統の情報を含む、第2のデジタルデータを生成する第二磁気センサ信号の処理ユニットとを備えたロータリーエンコーダであって、
 前記第2の磁気センサは、前記第1の磁気センサより分解能が劣り、
 前記第二磁気センサ信号の処理ユニットは、前記第一磁気センサ信号の処理ユニットをバックアップするフェイルセーフ機能を有しており、
 前記第二磁気センサ信号の処理ユニットは、
 前記第2の磁気センサの前記第2のアナログ信号を、前記第1の磁気センサの前記第1のアナログ信号のデータに基づいて較正して前記AD変換を行い、前記第2の磁気センサの出力の前記AD変換データを前記第1の磁気センサの前記第1のデジタルデータに基づいて較正して、前記第2のデジタルデータを生成するとともに、
 前記第2のアナログ信号の較正履歴、及び前記第2のデジタルデータの較正履歴を記録する機能を備え、
 前記ロータリーエンコーダの前記フェイルセーフ機能は、
 前記第1の磁気センサ及び又は前記第一磁気センサ信号の処理ユニットが故障したときに、前記第2のアナログ信号の較正履歴に基づいて、前記第2の磁気センサの前記第2のアナログ信号を較正し、前記第2のデジタルデータの較正履歴に基づいて、前記第2の磁気センサの前記第2のデジタルデータを較正するように構成されている、ことを特徴とするロータリーエンコーダ。
A magnet fixed to the rotating shaft;
a first magnetic sensor signal processing unit that performs AD conversion on a first analog signal that is an output of a first magnetic sensor disposed opposite the magnet, and generates first digital data including two types of information, an absolute signal and an incremental signal, related to a rotation angle and a rotation direction of the rotating shaft, based on the AD converted data of the output of the first magnetic sensor;
a second magnetic sensor signal processing unit that performs AD conversion on a second analog signal that is an output of a second magnetic sensor disposed opposite to the magnet, and generates second digital data including two types of information, an absolute signal and an incremental signal, related to the rotation angle and the rotation direction of the rotating shaft, based on the AD converted data of the output of the second magnetic sensor,
the second magnetic sensor has a lower resolution than the first magnetic sensor;
the second magnetic sensor signal processing unit has a fail-safe function that backs up the first magnetic sensor signal processing unit,
The second magnetic sensor signal processing unit includes:
calibrating the second analog signal of the second magnetic sensor based on data of the first analog signal of the first magnetic sensor to perform the AD conversion, and calibrating the AD converted data of an output of the second magnetic sensor based on the first digital data of the first magnetic sensor to generate the second digital data;
a function of recording a calibration history of the second analog signal and a calibration history of the second digital data;
The fail-safe function of the rotary encoder is
a calibration history of the second analog signal of the second magnetic sensor and a calibration history of the second digital data of the second magnetic sensor when the first magnetic sensor and/or a processing unit for the first magnetic sensor signal fails.
 請求項1において、
 前記第1の磁気センサは、前記回転軸の軸芯に対応する位置において、プリント基板の上に配置され、
 前記第2の磁気センサは、前記プリント基板の上の前記第1の磁気センサと同じ面で、かつ、前記回転軸の軸芯を中心とする1つの円周上に、120度間隔で配置され、
 前記プリント基板の上に、1つの温度センサ-が配置されている、ことを特徴とするロータリーエンコーダ。
In claim 1,
the first magnetic sensor is disposed on a printed circuit board at a position corresponding to an axis of the rotating shaft;
the second magnetic sensors are arranged on the same surface of the printed circuit board as the first magnetic sensors, on a circumference centered on the axis of the rotation shaft, and at intervals of 120 degrees;
A rotary encoder comprising: a temperature sensor disposed on the printed circuit board.
 請求項2において、
 前記第一磁気センサ信号の処理ユニットは、前記第1の磁気センサの前記第1のアナログ信号のデータをAD変換して記録するとともに、前記第1のアナログ信号の回転角(機械角)と振幅、回転数Nx、及び、前記温度センサのデータを、関係づけて前記第2のアナログ信号の較正用データとして一時的にメモリに記録する機能を備え、
 前記第二磁気センサ信号の処理ユニットは、
 前記第2の磁気センサの前記第2のアナログ信号を、前記振幅、回転数Nx、及び、前記温度センサのデータ前記第1の磁気センサの前記較正用データに基づいて較正済アナログデータを生成するとともに、前記較正済アナログデータの較正履歴を、前記フェイルセーフ機能で使用するために記録する機能を備えている、ことを特徴とするロータリーエンコーダ。
In claim 2,
the processing unit for the first magnetic sensor signal has a function of AD converting data of the first analog signal of the first magnetic sensor and recording the data, and temporarily recording in a memory a rotation angle (mechanical angle) and amplitude of the first analog signal, a rotation speed Nx, and data of the temperature sensor in association with each other as calibration data for the second analog signal;
The second magnetic sensor signal processing unit includes:
a function of generating calibrated analog data based on the second analog signal of the second magnetic sensor, the amplitude, the number of rotations Nx, and the data of the temperature sensor, and the calibration data of the first magnetic sensor, and a function of recording a calibration history of the calibrated analog data for use in the fail-safe function.
 請求項2において、
 前記第一磁気センサ信号の処理ユニットは、前記第1の磁気センサの前記第1のデジタルデータの周波数と前記回転方向を検出して記録するとともに、前第1のデジタルデータの回転角(機械角)と振幅、回転数Nx、及び、前記温度センサのデータを、関係づけて前記第2のデジタルデータの較正用データとして一時的にメモリに記録する機能を備え、
 前記第二磁気センサ信号の処理ユニットは、
 前記第2のデジタルデータの較正履歴に基づいて、前記第2の磁気センサの前記第2のデジタルデータを較正して記録するとともに、較正済の前記第2のデジタルデータの較正履歴を、前記フェイルセーフ機能で使用するために記録する機能を備えている、ことを特徴とするロータリーエンコーダ。
In claim 2,
the processing unit for the first magnetic sensor signal has a function of detecting and recording a frequency and a rotation direction of the first digital data of the first magnetic sensor, and temporarily recording in a memory a rotation angle (mechanical angle) and amplitude of the first digital data, a rotation speed Nx, and data of the temperature sensor in association with each other as calibration data for the second digital data;
The second magnetic sensor signal processing unit includes:
a function of calibrating and recording the second digital data of the second magnetic sensor based on a calibration history of the second digital data, and recording the calibration history of the calibrated second digital data for use in the fail-safe function.
 請求項2において、
 前記回転軸に固定されるマグネットは、1個の平板状のマグネットであり、
 前記第1の磁気センサは、前記マグネットに対向して前記プリント基板の上に配置された一対のTMRセンサであり、
 前記第2の磁気センサは、前記第1の磁気センサを中心とする1つの円周上に、等間隔で配置された3個のホール素子である、ことを特徴とするロータリーエンコーダ。
In claim 2,
the magnet fixed to the rotating shaft is a single flat magnet,
the first magnetic sensor is a pair of TMR sensors disposed on the printed circuit board facing the magnet,
A rotary encoder, wherein the second magnetic sensor is three Hall elements arranged at equal intervals on a circumference centered on the first magnetic sensor.
 請求項2において、
 前記回転軸に固定されるマグネットは、1個の平板状のマグネットであり、
 前記第1の磁気センサは、前記マグネットに対向して前記プリント基板の上に配置された一対のTMRセンサであり、
 前記第2の磁気センサは、前記第1の磁気センサを中心とする1つの円周上に、等間隔で配置された3個の、GMRセンサもしくはAMRセンサである、ことを特徴とするロータリーエンコーダ。
In claim 2,
the magnet fixed to the rotating shaft is a single flat magnet,
the first magnetic sensor is a pair of TMR sensors disposed on the printed circuit board facing the magnet,
A rotary encoder characterized in that the second magnetic sensor is three GMR sensors or AMR sensors arranged at equal intervals on a circumference centered on the first magnetic sensor.
 請求項1において、
 前記第一磁気センサ信号の処理ユニットは、前記第1のデジタルデータとして、前記第1の磁気センサの出力の前記AD変換データに基づく第1のアブソリュート信号と第1のインクリメンタルA, B, Z ,(U,V,W)信号を生成し、
 前記第二磁気センサ信号の処理ユニットは、前記第2のデジタルデータとして、前記第2の磁気センサの出力の前記AD変換データに基づく第2のアブソリュート信号と第2のインクリメンタルA, B, Z ,(U,V,W)信号を生成する、ことを特徴とするロータリーエンコーダ。
In claim 1,
the first magnetic sensor signal processing unit generates, as the first digital data, a first absolute signal and first incremental A, B, Z, (U, V, W) signals based on the AD converted data of the output of the first magnetic sensor;
the second magnetic sensor signal processing unit generates, as the second digital data, a second absolute signal and second incremental A, B, Z, (U, V, W) signals based on the AD converted data of the output of the second magnetic sensor.
 請求項2において、
 前記ロータリーエンコーダは、電源ユニットとして、出力電圧が所定の電力に制御される、主電源、バルクハウゼン効果発電電源、及びサブバッテリを備えており、
 前記バルクハウゼン効果発電電源、及び前記サブバッテリは、前記主電源が失われたときの前記バックアップを行う電源であり、
 前記サブバッテリは、前記バルクハウゼン効果発電電源により充電されるコンデンサを有する、ことを特徴とするロータリーエンコーダ。
In claim 2,
The rotary encoder includes, as a power supply unit, a main power supply, a Barkhausen effect power supply, and a sub-battery, the output voltage of which is controlled to a predetermined power,
the Barkhausen effect power generation power supply and the sub-battery are power supplies that perform the backup when the main power supply is lost,
13. A rotary encoder comprising: a sub-battery having a capacitor that is charged by the Barkhausen effect power generation power source.
 請求項1に記載の磁気式ロータリーエンコーダのバックアップ制御方法であって、
 前記第1のアナログ信号、前記第2のアナログ信号、前記第1のデジタルデータ、前記第2のデジタルデータをモニタし、
 前記各データのモニタの結果、前記第1の磁気センサ又は前記第一磁気センサ信号の処理ユニットに異常があると判定された場合、
 前記第二磁気センサ信号の処理ユニットにおいて、前記第2の磁気センサの前記第2のアナログ信号を、前記第2のアナログ信号の較正履歴に基づいた較正済アナログ信号を生成し、前記較正済アナログ信号と前記第2のデジタルデータの較正用データに基づいて、較正済の前記第2のデジタルデータを生成することを特徴とする、磁気式ロータリーエンコーダのバックアップ制御方法。
2. A backup control method for a magnetic rotary encoder according to claim 1, comprising:
monitoring the first analog signal, the second analog signal, the first digital data, and the second digital data;
When it is determined as a result of monitoring the data that there is an abnormality in the first magnetic sensor or the processing unit for the first magnetic sensor signal,
a second magnetic sensor signal processing unit for processing the second analog signal of the second magnetic sensor to generate a calibrated analog signal based on a calibration history of the second analog signal, and to generate calibrated second digital data based on the calibrated analog signal and calibration data of the second digital data.
PCT/JP2022/046581 2022-12-19 2022-12-19 Magnetic rotary encoder and backup control method therefor Ceased WO2024134705A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202280006886.3A CN120359392A (en) 2022-12-19 2022-12-19 Magnetic rotary encoder and standby control method thereof
JP2023511600A JPWO2024134705A1 (en) 2022-12-19 2022-12-19
PCT/JP2022/046581 WO2024134705A1 (en) 2022-12-19 2022-12-19 Magnetic rotary encoder and backup control method therefor
TW112106731A TWI849769B (en) 2022-12-19 2023-02-23 Magnetic rotary encoder and backup control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2022/046581 WO2024134705A1 (en) 2022-12-19 2022-12-19 Magnetic rotary encoder and backup control method therefor

Publications (1)

Publication Number Publication Date
WO2024134705A1 true WO2024134705A1 (en) 2024-06-27

Family

ID=91588032

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2022/046581 Ceased WO2024134705A1 (en) 2022-12-19 2022-12-19 Magnetic rotary encoder and backup control method therefor

Country Status (4)

Country Link
JP (1) JPWO2024134705A1 (en)
CN (1) CN120359392A (en)
TW (1) TWI849769B (en)
WO (1) WO2024134705A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5759312U (en) * 1980-09-25 1982-04-08
JP2000161986A (en) * 1998-12-01 2000-06-16 Robert Bosch Gmbh Displacement measuring device and displacement measuring method
US20060279244A1 (en) * 2005-06-09 2006-12-14 Visteon Global Technologies, Inc. Hall effect sensor temperature compensator
JP2016008970A (en) * 2014-06-25 2016-01-18 エヌエックスピー ビー ヴィNxp B.V. Sensor system with 3 half-bridge structure
WO2017163967A1 (en) * 2016-03-22 2017-09-28 パナソニックIpマネジメント株式会社 Rotation detecting device
JP2020159993A (en) * 2019-03-28 2020-10-01 株式会社デンソー Detection unit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576396A (en) * 2008-06-02 2009-11-11 上海源致信息技术有限公司 Absolute magnetic-electric rotary encoder with low cost, high accuracy and multiple circles
KR20140143404A (en) * 2012-04-17 2014-12-16 미쓰비시덴키 가부시키가이샤 Multi-rotation encoder
JP6656958B2 (en) * 2016-03-10 2020-03-04 日本電産サンキョー株式会社 Rotary encoder and method for correcting angle of rotary encoder
JP6769799B2 (en) * 2016-09-21 2020-10-14 日本電産サンキョー株式会社 Rotary encoder and absolute angle position detection method for rotary encoder
WO2022003761A1 (en) * 2020-06-29 2022-01-06 株式会社五十嵐電機製作所 Rotary encoder responsive to battery loss and servo control device using same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5759312U (en) * 1980-09-25 1982-04-08
JP2000161986A (en) * 1998-12-01 2000-06-16 Robert Bosch Gmbh Displacement measuring device and displacement measuring method
US20060279244A1 (en) * 2005-06-09 2006-12-14 Visteon Global Technologies, Inc. Hall effect sensor temperature compensator
JP2016008970A (en) * 2014-06-25 2016-01-18 エヌエックスピー ビー ヴィNxp B.V. Sensor system with 3 half-bridge structure
WO2017163967A1 (en) * 2016-03-22 2017-09-28 パナソニックIpマネジメント株式会社 Rotation detecting device
JP2020159993A (en) * 2019-03-28 2020-10-01 株式会社デンソー Detection unit

Also Published As

Publication number Publication date
CN120359392A (en) 2025-07-22
JPWO2024134705A1 (en) 2024-06-27
TW202426863A (en) 2024-07-01
TWI849769B (en) 2024-07-21

Similar Documents

Publication Publication Date Title
JP6578499B1 (en) General-purpose rotary encoder and servo motor using the same
JP5583317B2 (en) Rotation detection device and bearing with rotation detection device
JP5675761B2 (en) Encoder device and rotation information detection method of encoder device
JP5221494B2 (en) Rotation detection device and bearing with rotation detection device
JP6842736B1 (en) General-purpose rotary encoder
JP6339307B1 (en) DC motor controller
JP7574165B2 (en) Magnetic Sensor System for Motor Control
WO2019159311A1 (en) Control device for dc motor
JP2024160509A (en) Rotary encoder and servo control device using the same
JP6966143B1 (en) Battery-less rotary encoder and servo control device using it
WO2024134705A1 (en) Magnetic rotary encoder and backup control method therefor
JPH0662322U (en) Absolute encoder device
JP2020134505A (en) General-purpose type rotary encoder
JP6945914B1 (en) Rotary encoder and control accuracy switching servo control device using it
JP7393577B1 (en) Rotary encoder and servo control device using it
JP2025085143A (en) Absolute encoder with safety control function and servo control device using the same
JP2025085144A (en) Absolute encoder with fail-safe function and servo control device using same
WO2013137419A1 (en) System having improved noise resistance, r/d conversion board, r/d conversion unit, driver, and noise resistance improving method

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2023511600

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 202280006886.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22969095

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWP Wipo information: published in national office

Ref document number: 202280006886.3

Country of ref document: CN

122 Ep: pct application non-entry in european phase

Ref document number: 22969095

Country of ref document: EP

Kind code of ref document: A1