CN105573304B - A kind of permagnetic synchronous motor hall position sensor method for diagnosing faults - Google Patents
A kind of permagnetic synchronous motor hall position sensor method for diagnosing faults Download PDFInfo
- Publication number
- CN105573304B CN105573304B CN201610097197.4A CN201610097197A CN105573304B CN 105573304 B CN105573304 B CN 105573304B CN 201610097197 A CN201610097197 A CN 201610097197A CN 105573304 B CN105573304 B CN 105573304B
- Authority
- CN
- China
- Prior art keywords
- hall
- hall element
- position sensor
- state information
- faulty
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0224—Process history based detection method, e.g. whereby history implies the availability of large amounts of data
- G05B23/0227—Qualitative history assessment, whereby the type of data acted upon, e.g. waveforms, images or patterns, is not relevant, e.g. rule based assessment; if-then decisions
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Control Of Electric Motors In General (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
本发明公开了一种永磁同步电机霍尔位置传感器故障诊断方法,属于霍尔位置传感器故障诊断的技术领域。本发明通过在电机转动过程中对霍尔传感器的输出状态进行实时检测,分别以二进制和十进制数组的形式保存霍尔传感器的输出综合状态信息,依据二进制数组及十进制信息依次排除三个霍尔元件均故障、两个霍尔元件故障、一个霍尔元件故障的情形,并在判定故障类型后由霍尔传感器输出综合信息定位故障霍尔元件,最终反馈故障信息至控制器,该方案不需要对硬件进行改动,成本低廉,对故障类型的快速诊断为保护系统提供了保障,对故障霍尔元件的准确定位为故障霍尔元件的维修和更换提供有力支持。
The invention discloses a fault diagnosis method for a Hall position sensor of a permanent magnet synchronous motor, belonging to the technical field of Hall position sensor fault diagnosis. The present invention detects the output state of the Hall sensor in real time during the motor rotation process, saves the output comprehensive state information of the Hall sensor in the form of binary and decimal arrays respectively, and sequentially excludes three Hall elements according to the binary array and decimal information All faults, two Hall element failures, and one Hall element failure, and after determining the type of fault, the Hall sensor outputs comprehensive information to locate the faulty Hall element, and finally feeds back the fault information to the controller. The hardware is changed, the cost is low, the rapid diagnosis of the fault type provides protection for the system, and the accurate positioning of the faulty Hall element provides strong support for the repair and replacement of the faulty Hall element.
Description
技术领域technical field
本发明公开了一种霍尔位置传感器故障诊断方法,具体涉及一种永磁同步电机霍尔位置传感器故障诊断方法,属于的霍尔位置传感器故障诊断的技术领域。The invention discloses a fault diagnosis method for a Hall position sensor, in particular to a fault diagnosis method for a Hall position sensor of a permanent magnet synchronous motor, and belongs to the technical field of Hall position sensor fault diagnosis.
背景技术Background technique
永磁同步电机由于具有高功率、高效率以及低速大转矩等特点,在工业、交通以及家电领域得到了越来越广泛的应用。在永磁同步电机控制策略中,矢量控制是最常用的控制策略之一,该策略在控制过程中为了防止转子的失步需要对转子位置进行检测。目前对永磁同步电机转子位置进行检测的方法大致可以分为两类:有位置传感器法和无位置传感器法。有位置传感器法是应用旋转变压器和光电编码器等高精度传感器对位置进行检测,此类方法得到的转子位置精度较高,但是传感器的使用往往会增加系统的体积以及成本。而无位置传感器虽然不会增加系统的体积以及成本,但是位置估算的方法一般比较复杂,势必会增加系统的计算压力,并且无传感器方法一般会具有较差的起动机低速性能。而在一些特定的应用背景中如电动汽车,其经常行驶在高温、潮湿以及振动比较强的工况下,这会限制上述高精度传感器的使用,同时汽车在城市中行驶时又会经常的起动停止,这则会妨碍无传感器的使用范围。因此,霍尔位置传感器在一些特殊的环境中得到了越来越多的应用。Due to the characteristics of high power, high efficiency and low speed and high torque, permanent magnet synchronous motors have been more and more widely used in the fields of industry, transportation and home appliances. Among the control strategies of permanent magnet synchronous motors, vector control is one of the most commonly used control strategies. During the control process, the rotor position needs to be detected in order to prevent the rotor from being out of step. At present, the methods for detecting the rotor position of permanent magnet synchronous motors can be roughly divided into two categories: methods with position sensors and methods without position sensors. The position sensor method uses high-precision sensors such as resolvers and photoelectric encoders to detect the position. The rotor position obtained by this method has high accuracy, but the use of sensors often increases the volume and cost of the system. Although the sensorless position does not increase the size and cost of the system, the position estimation method is generally more complicated, which will inevitably increase the calculation pressure of the system, and the sensorless method generally has poor low-speed performance of the starter. However, in some specific application backgrounds, such as electric vehicles, they are often driven under high temperature, humidity and relatively strong vibration conditions, which will limit the use of the above-mentioned high-precision sensors. At the same time, the car will often start when driving in the city. stop, which would hinder the sensorless range of use. Therefore, the Hall position sensor has been used more and more in some special environments.
霍尔位置传感器是一种价格低廉,寿命长,工作温度范围广的低精度位置传感器。该传感器是由3个开关型霍尔元件组成,均匀的安装在电角度为120°的圆周上,随着电机的转动每个霍尔元件会输出不同的高低电平,将整个360°电周期分为6个60°的扇区。在每个扇区开始的时候,可以对转子位置进行精确的检测,但是在扇区之间则需要通过一定的估算方法来计算转子位置。在利用该传感器进行位置估算时,条件是3个霍尔元件均是正常的,但在电机运行过程中,由于温度、湿度等工作环境的变化,会导致霍尔元件发生故障,故障后霍尔元件输出状态信息始终为0或1。在霍尔发生故障之后,如果还按照原先的方法进行位置估算,控制器会得到错误的位置信号,之后会发出错误的电压信号,轻则导致电流过大,控制器保护,重则导致控制器失控,电机烧坏。The Hall position sensor is a low-precision position sensor with low price, long life and wide operating temperature range. The sensor is composed of 3 switch-type Hall elements, which are evenly installed on a circle with an electrical angle of 120°. As the motor rotates, each Hall element will output different high and low levels, and the entire 360° electrical cycle Divided into 6 sectors of 60°. At the beginning of each sector, the rotor position can be accurately detected, but between sectors, a certain estimation method is required to calculate the rotor position. When using this sensor for position estimation, the condition is that the three Hall elements are normal, but during the operation of the motor, due to changes in the working environment such as temperature and humidity, the Hall element will fail, and the Hall element will be damaged after the failure. The component output status information is always 0 or 1. After the Hall failure, if the position estimation is still carried out according to the original method, the controller will get the wrong position signal, and then send out the wrong voltage signal, which will lead to excessive current, controller protection, or cause the controller to fail. Out of control, the motor burned out.
目前已有一些中国专利提出了霍尔传感器故障诊断的方法。申请号为201310312121.5的发明专利提出的故障诊断方法通过判断电机转动时是否出现了所有正常的状态来判断,但该方法未给出故障霍尔元件定位的具体方法,并且该方法不能在电机转动过程中实时进行故障检测;申请号为201310395718.0的发明专利给出的方法是通过判断霍尔顺序是否正确以及在某扇区内走过的电角度是否在最大与最小值范围内来确认故障是否出现,但该方法没有具体给出最大最小值的选取方法,并且当参数选择不合适时,适用性比较差;申请号为201510533218.8的发明专利给出了一种详细的霍尔位置传感器故障诊断方法以及其判断过程中阀值时间的计算过程,该方法相对于上两种方法更全面、详细,但该方法实施性有待提高并且阀值时间的计算过程相对较复杂。At present, some Chinese patents have proposed a method for Hall sensor fault diagnosis. The fault diagnosis method proposed by the invention patent with the application number of 201310312121.5 is judged by judging whether all normal states appear when the motor is rotating, but this method does not provide a specific method for locating the faulty Hall element, and this method cannot be used during the motor rotation process. Fault detection in real time; the method given by the invention patent with application number 201310395718.0 is to confirm whether the fault occurs by judging whether the Hall sequence is correct and whether the electrical angle traveled in a certain sector is within the maximum and minimum value range. However, this method does not specify the selection method of the maximum and minimum values, and when the parameter selection is inappropriate, the applicability is relatively poor; the invention patent with the application number 201510533218.8 provides a detailed Hall position sensor fault diagnosis method and its The calculation process of the threshold time in the judgment process, this method is more comprehensive and detailed than the above two methods, but the implementation of this method needs to be improved and the calculation process of the threshold time is relatively complicated.
发明内容Contents of the invention
本发明所要解决的技术问题是针对上述背景技术的不足,提供了一种永磁同步电机霍尔位置传感器故障诊断方法,实现了霍尔位置传感器故障类型的快速诊断以及故障霍尔元件的准确定位,解决了现有霍尔传感器故障诊断方法适用性较差、计算过程相对复杂、不能在电机转动过程中实时进行故障检测的技术问题。The technical problem to be solved by the present invention is to provide a fault diagnosis method for the Hall position sensor of a permanent magnet synchronous motor in view of the deficiencies of the above-mentioned background technology, which realizes the rapid diagnosis of the fault type of the Hall position sensor and the accurate positioning of the fault Hall element The method solves the technical problems that the existing Hall sensor fault diagnosis method has poor applicability, relatively complicated calculation process, and cannot perform fault detection in real time during the motor rotation process.
本发明为实现上述发明目的采用如下技术方案:The present invention adopts following technical scheme for realizing above-mentioned purpose of the invention:
一种永磁同步电机霍尔位置传感器故障诊断方法,霍尔位置传感器包括逆时针排列的霍尔元件A、霍尔元件B、霍尔元件C,霍尔元件A、霍尔元件B、霍尔元件C将360°电周期划分为6个60°的扇区,A method for fault diagnosis of a Hall position sensor of a permanent magnet synchronous motor. The Hall position sensor includes a Hall element A, a Hall element B, and a Hall element C arranged counterclockwise. Element C divides the 360° electrical cycle into six 60° sectors,
故障诊断方法包括如下步骤:The fault diagnosis method includes the following steps:
Ⅰ、初始化霍尔位置传感器输出综合状态信息后运行电机;Ⅰ. Run the motor after initializing the Hall position sensor to output comprehensive status information;
Ⅱ、检测各霍尔元件的输出状态信息,以霍尔元件A的输出状态信息为最高位,以霍尔元件C的输出状态信息为最低位,对各霍尔元件输出状态信息进行二进制编码得到记录各扇区内霍尔位置传感器输出综合状态信息的二进制数组,并存储各扇区内霍尔位置传感器输出综合状态信息对应的十进制数据;Ⅱ. Detect the output state information of each Hall element, take the output state information of Hall element A as the highest bit, and take the output state information of Hall element C as the lowest bit, and binary code the output state information of each Hall element to obtain Record the binary array of the comprehensive state information output by the Hall position sensor in each sector, and store the decimal data corresponding to the comprehensive state information output by the Hall position sensor in each sector;
Ⅲ、排除三个霍尔元件均故障的情形:Ⅲ. Eliminate the failure of all three Hall elements:
当霍尔位置传感器输出综合状态信息在阀值时间或阀值角度内发生跳变时,进入步骤Ⅳ继续诊断故障类型,When the comprehensive state information output by the Hall position sensor jumps within the threshold time or threshold angle, enter step IV to continue diagnosing the fault type,
否则,霍尔位置传感器向控制器反馈错误信号,控制器控制永磁同步电机停机;Otherwise, the Hall position sensor feeds back an error signal to the controller, and the controller controls the permanent magnet synchronous motor to stop;
Ⅳ、排除两个霍尔元件故障的情形:Ⅳ. Troubleshoot the failure of two Hall elements:
当在整个电周期内霍尔位置传感器输出综合状态信息多于两种时,进入步骤Ⅴ继续诊断故障类型,When the Hall position sensor outputs more than two types of comprehensive state information during the entire electrical cycle, enter step V to continue diagnosing the fault type,
否则,判定有两个霍尔元件故障并由相邻两扇区内霍尔位置传感器输出综合状态信息对应的十进制数据定位故障的霍尔元件,霍尔位置传感器反馈包括故障霍尔元件个数和位置的故障类型信息至控制器;Otherwise, it is determined that there are two Hall elements faulty and the Hall position sensor in two adjacent sectors outputs the decimal data corresponding to the comprehensive state information to locate the faulty Hall element. The Hall position sensor feedback includes the number of faulty Hall elements and The fault type information of the location is sent to the controller;
Ⅴ、排除一个霍尔元件故障的情形:Ⅴ. Eliminate the failure of a Hall element:
当霍尔位置传感器输出综合状态信息不含零矢量时,判定霍尔元件无故障并返回步骤Ⅱ,When the comprehensive state information output by the Hall position sensor does not contain a zero vector, it is determined that the Hall element is not faulty and returns to step Ⅱ.
否则,判定有一个霍尔元件故障并由零矢量之后的一个霍尔位置传感器输出综合状态信息定位故障的霍尔元件,霍尔位置传感器反馈包括故障霍尔元件个数和位置的故障类型信息至控制器。Otherwise, it is determined that there is a Hall element fault and a Hall position sensor after the zero vector outputs comprehensive status information to locate the faulty Hall element, and the Hall position sensor feeds back fault type information including the number and position of the fault Hall element to controller.
作为所述一种永磁同步电机霍尔位置传感器故障诊断方法非进一步优化方案,步骤Ⅳ中所述由相邻两扇区内霍尔位置传感器输出综合状态信息对应的十进制数据定位故障的霍尔元件,具体为:As a non-further optimization scheme for the fault diagnosis method of the Hall position sensor of the permanent magnet synchronous motor, the Hall position sensor in the two adjacent sectors outputs the decimal data corresponding to the comprehensive state information as described in step IV to locate the faulty Hall components, specifically:
当相邻两扇区内霍尔位置传感器输出综合状态信息对应的十进制数据之差的绝对值为4时,判定霍尔元件A无故障,霍尔元件B和霍尔元件C均故障;When the absolute value of the difference between the decimal data corresponding to the comprehensive state information output by the Hall position sensor in two adjacent sectors is 4, it is determined that the Hall element A is not faulty, and both the Hall element B and the Hall element C are faulty;
当相邻两扇区内霍尔位置传感器输出综合状态信息对应的十进制数据之差的绝对值为2时,判定霍尔元件B无故障,霍尔元件A和霍尔元件C均故障;When the absolute value of the difference between the decimal data corresponding to the comprehensive state information output by the Hall position sensor in two adjacent sectors is 2, it is determined that the Hall element B is not faulty, and both Hall element A and Hall element C are faulty;
当相邻两扇区内霍尔位置传感器输出综合状态信息对应的十进制数据之差的绝对值为1时,判定霍尔元件C无故障,霍尔元件A和霍尔元件B均故障。When the absolute value of the difference between the decimal data corresponding to the comprehensive state information output by the Hall position sensors in two adjacent sectors is 1, it is determined that the Hall element C is not faulty, and both Hall element A and Hall element B are faulty.
进一步的,所述一种永磁同步电机霍尔位置传感器故障诊断方法的步骤Ⅴ中,由零矢量状态之后的一个霍尔位置传感器输出综合状态信息定位故障的霍尔元件,具体为在逆时针转过扇区的情况下:Further, in step V of the Hall position sensor fault diagnosis method for a permanent magnet synchronous motor, a Hall position sensor after the zero vector state outputs comprehensive state information to locate the faulty Hall element, specifically in the counterclockwise direction In the case of turning sectors:
当零矢量状态之后的一个霍尔位置传感器输出综合状态信息为010或101时,判定霍尔元件A为故障霍尔元件;When a Hall position sensor after the zero vector state outputs comprehensive state information of 010 or 101, it is determined that Hall element A is a faulty Hall element;
当零矢量状态之后的一个霍尔位置传感器输出综合状态信息为001或110时,判定霍尔元件B为故障霍尔元件;When a Hall position sensor after the zero vector state outputs comprehensive state information of 001 or 110, it is determined that the Hall element B is a faulty Hall element;
当零矢量状态之后的一个霍尔位置传感器输出综合状态信息为100或011时,判定霍尔元件C为故障霍尔元件。When the integrated state information output by a Hall position sensor after the zero vector state is 100 or 011, it is determined that the Hall element C is a faulty Hall element.
进一步的,所述一种永磁同步电机霍尔位置传感器故障诊断方法的步骤Ⅴ中,由零矢量状态之后的一个霍尔位置传感器输出综合状态信息定位故障的霍尔元件,具体为在顺时针转过扇区的情况下:Further, in step V of the Hall position sensor fault diagnosis method for a permanent magnet synchronous motor, a Hall position sensor after the zero vector state outputs comprehensive state information to locate the faulty Hall element, specifically clockwise In the case of turning sectors:
当零矢量状态之后的一个霍尔位置传感器输出综合状态信息为001或110时,判定霍尔元件A为故障霍尔元件;When a Hall position sensor after the zero vector state outputs comprehensive state information of 001 or 110, it is determined that Hall element A is a faulty Hall element;
当零矢量状态之后的一个霍尔位置传感器输出综合状态信息为100或011时,判定霍尔元件B为故障霍尔元件;When a Hall position sensor after the zero vector state outputs comprehensive state information of 100 or 011, it is determined that the Hall element B is a faulty Hall element;
当零矢量状态之后的一个霍尔位置传感器输出综合状态信息为010或101时,判定霍尔元件C为故障霍尔元件。When a Hall position sensor after the zero vector state outputs comprehensive state information of 010 or 101, it is determined that the Hall element C is a faulty Hall element.
再进一步的,所述一种永磁同步电机霍尔位置传感器故障诊断方法的步骤Ⅲ中,阀值时间在永磁同步电机未启动时根据最小速度计算,阀值时间在永磁同步电机开始转动后根据转过上一扇区的平均速度计算;阀值角度为60°与一角度余量之和。Further, in step III of the Hall position sensor fault diagnosis method for a permanent magnet synchronous motor, the threshold time is calculated according to the minimum speed when the permanent magnet synchronous motor is not started, and the threshold time is calculated when the permanent magnet synchronous motor starts to rotate Then it is calculated based on the average speed of the previous sector; the threshold angle is the sum of 60° and an angle margin.
作为所述一种永磁同步电机霍尔位置传感器故障诊断方法的进一步优化方案,步骤Ⅰ中所述初始化霍尔位置传感器输出综合状态信息的方法为:选取六个霍尔元件正常工作情况以外的输出状态信息为霍尔位置传感器输出综合状态信息的初始值,所述六个霍尔元件正常工作情况以外的输出状态信息取值各不相同。As a further optimization scheme for the fault diagnosis method of the Hall position sensor of a permanent magnet synchronous motor, the method for initializing the Hall position sensor to output comprehensive state information in step I is: selecting six Hall elements other than the normal working conditions The output state information is the initial value of the comprehensive state information output by the Hall position sensor, and the values of the output state information other than the normal working conditions of the six Hall elements are different.
本发明采用上述技术方案,具有以下有益效果:利用一种纯软件方法简单地实现了霍尔位置传感器故障的实时快速检测以及准确定位,整个方案通过在电机转动过程中对霍尔位置传感器的输出状态进行实时检测,分别以二进制和十进制数组的形式保存霍尔位置传感器输出综合状态信息,依据二进制数组及十进制信息依次排除三个霍尔元件均故障、两个霍尔元件故障、一个霍尔元件故障的情形,并在判定故障类型后由霍尔位置传感器输出综合信息定位故障霍尔元件,最终反馈故障信息至控制器,该方案不需要对硬件进行改动,成本低廉,对故障类型的快速诊断为保护系统提供了保障,对故障霍尔元件的准确定位为故障霍尔元件的维修和更换提供有力支持。The present invention adopts the above-mentioned technical scheme, and has the following beneficial effects: a pure software method is used to simply realize the real-time rapid detection and accurate positioning of the fault of the Hall position sensor. The status is detected in real time, and the comprehensive state information output by the Hall position sensor is saved in the form of binary and decimal arrays respectively. According to the binary array and decimal information, all three Hall elements are faulty, two Hall elements are faulty, and one Hall element The fault situation, and after determining the fault type, the Hall position sensor outputs comprehensive information to locate the faulty Hall element, and finally feeds back the fault information to the controller. This solution does not need to change the hardware, is low in cost, and can quickly diagnose the fault type It provides protection for the protection system, and the accurate positioning of the faulty Hall element provides strong support for the repair and replacement of the faulty Hall element.
本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and will become apparent from the description, or may be learned by practice of the invention.
附图说明Description of drawings
图1为永磁同步电机霍尔位置传感器故障诊断方法框图;Figure 1 is a block diagram of a fault diagnosis method for a hall position sensor of a permanent magnet synchronous motor;
图2(a)为霍尔元件A、霍尔元件B、霍尔元件C均正常时的霍尔位置区间图;Fig. 2(a) is a Hall position interval diagram when Hall element A, Hall element B, and Hall element C are all normal;
图2(b)为霍尔元件A、霍尔元件B、霍尔元件C均正常时各霍尔元件输出信号及相关数组存储值示意图;Figure 2(b) is a schematic diagram of the output signals of each Hall element and the storage values of the relevant arrays when Hall element A, Hall element B, and Hall element C are all normal;
图3(a)为霍尔元件A、霍尔元件B、霍尔元件C均故障且霍尔元件A输出为1,霍尔元件B输出为1,霍尔元件C输出为0时的霍尔位置区间图;Figure 3(a) shows the Hall when Hall element A, Hall element B, and Hall element C are all faulty and the output of Hall element A is 1, the output of Hall element B is 1, and the output of Hall element C is 0 location map;
图3(b)为霍尔元件A、霍尔元件B、霍尔元件C均故障且霍尔元件A输出为1,霍尔元件B输出为1,霍尔元件C输出为0时各霍尔元件输出信号及相关数组存储值示意图;Figure 3(b) shows that Hall element A, Hall element B, and Hall element C are all faulty and the output of Hall element A is 1, the output of Hall element B is 1, and the output of Hall element C is 0. Schematic diagram of component output signals and related array storage values;
图4(a)为霍尔元件A与霍尔元件C故障且霍尔元件A输出为1、霍尔元件C输出为0时的霍尔位置区间图;Figure 4(a) is a Hall position interval diagram when Hall element A and Hall element C are faulty and the output of Hall element A is 1, and the output of Hall element C is 0;
图4(b)为霍尔元件A与霍尔元件C故障且霍尔元件A输出为1、霍尔元件C输出为0时各霍尔元件输出信号及相关数组存储值示意图;Figure 4(b) is a schematic diagram of the output signal of each Hall element and the storage value of the relevant array when Hall element A and Hall element C are faulty and the output of Hall element A is 1 and the output of Hall element C is 0;
图5(a)为霍尔元件A故障且输出为1时的霍尔位置区间图;Figure 5(a) is the Hall position interval diagram when the Hall element A is faulty and the output is 1;
图5(b)为霍尔元件A故障且输出为1时各霍尔元件输出信号及相关数组存储值示意图。Figure 5(b) is a schematic diagram of the output signals of each Hall element and the stored values of the relevant array when the Hall element A fails and the output is 1.
具体实施方式detailed description
下面详细描述本发明的实施方式,下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention will be described in detail below, and the embodiments described below with reference to the accompanying drawings are exemplary, and are only used to explain the present invention, and cannot be construed as limiting the present invention.
本发明提出了一种如图1所示的永磁同步电机霍尔位置传感器故障诊断方法,霍尔位置传感器包括逆时针排列的霍尔元件A、霍尔元件B、霍尔元件C,霍尔元件A、霍尔元件B、霍尔元件C将360°电周期划分为6个60°的扇区。诊断方法具体包括如下四大步骤。The present invention proposes a fault diagnosis method for Hall position sensors of permanent magnet synchronous motors as shown in Figure 1. The Hall position sensors include Hall elements A, Hall elements B, and Hall elements C arranged counterclockwise. Element A, Hall element B, and Hall element C divide the 360° electrical cycle into six 60° sectors. The diagnostic method specifically includes the following four steps.
第一步:变量定义及系统初始化。在电机转动过程中,霍尔位置传感器会输出6种综合状态,以(ABC)的形式可以表示为(100),(110),(010),(011),(001),(101),将整个电周期分为6个扇区,如图2(a)所示,所以首先需要定义一个数组Hall(j)用于存储电机运行过程中各扇区内霍尔位置传感器输出的综合状态,该数组长度为6(与扇区总数相同),同时为了防止初始阶段出现误报故障,数组中所有元素的初始值均设定为上述6种情况以外的值,且均不相同。同时为了便于之后的故障定位,以霍尔元件C输出状态信息为最低位,以霍尔元件A输出状态信息为最高位,将上述数组中每个二进制数据转化为十进制,同时定义一个数组Hall_dl(j)来储存上述十进制数据,其初始值的设定与数组Hall(j)采用相同的原则。霍尔位置传感器正常时每个霍尔元件的状态与Hall(j)、Hall_dl(j)的值如图2(b)所示。The first step: variable definition and system initialization. During the rotation of the motor, the Hall position sensor will output 6 comprehensive states, which can be expressed in the form of (ABC) as (100), (110), (010), (011), (001), (101), Divide the entire electrical cycle into 6 sectors, as shown in Figure 2(a), so it is first necessary to define an array Hall(j) to store the comprehensive state of the output of the Hall position sensor in each sector during the operation of the motor. The length of the array is 6 (same as the total number of sectors). At the same time, in order to prevent false alarm failures in the initial stage, the initial values of all elements in the array are set to values other than the above 6 cases, and they are all different. At the same time, in order to facilitate subsequent fault location, the output state information of Hall element C is the lowest bit, and the output state information of Hall element A is the highest bit, and each binary data in the above array is converted into decimal, and an array Hall_dl( j) is used to store the above-mentioned decimal data, and the setting of its initial value adopts the same principle as that of the array Hall(j). When the Hall position sensor is normal, the state of each Hall element and the values of Hall(j) and Hall_dl(j) are shown in Figure 2(b).
第二步:霍尔位置传感器信号检测。在控制器开始驱动电机工作之后,系统采用边沿捕获的方式对霍尔位置传感器中霍尔元件的输出状态信息进行采集,将其对应的二进制信息存储在数组Hall(j)中,同时将每个二进制数据对应的十进制数据存储在相应的Hall_dl(j)数组中。Step 2: Hall position sensor signal detection. After the controller starts to drive the motor, the system collects the output state information of the Hall element in the Hall position sensor by means of edge capture, and stores the corresponding binary information in the array Hall(j), and simultaneously stores each The decimal data corresponding to the binary data is stored in the corresponding Hall_dl(j) array.
第三步:在采集到霍尔位置传感器的信号后,采用逐步判断的方式对故障的类型进行判断并对故障霍尔元件进行定位。霍尔位置传感器故障之后可以根据发生故障的霍尔元件个数以及位置的不同分为多种类型,本发明将按故障霍尔元件个数的不同,按三个阶段来进行判断:Step 3: After collecting the signal of the Hall position sensor, use a step-by-step judgment method to judge the type of the fault and locate the fault Hall element. After the Hall position sensor fails, it can be divided into multiple types according to the number and position of the Hall elements that have failed. The present invention will judge in three stages according to the number of Hall elements that fail:
1、判断是否三个霍尔元件均发生故障。当3个霍尔元件均发生故障,霍尔位置传感器在电机转动过程中只有一种状态,此时的霍尔位置区间图如图3(a)所示,图3(b)给出的是相对应的各霍尔元件输出信号及数组Hall(j)、Hall_dl(j)的存储值,此时霍尔元件A输出为1,霍尔元件B输出为1,霍尔元件C输出为0。这里另定义一个时间变量tj以及每个扇区走过的角度θj,在时间或角度达到阀值之后,若霍尔位置传感器状态还未发生变化,那么可以认定为3个霍尔均发生故障。阀值时间可以分为两种,一是在电机还未转动时,可以通过给出一个最小速度来得到时间,一是电机转动之后,通过转过上一扇区的平均速度来得到时间。每个扇区的角度则是速度的积分得到,如果该角度在达到60°加上一个角度余量之后(即为阀值角度),霍尔位置传感器输出综合状态信息仍然未发生改变,亦可以认定3个霍尔元件均发生故障。本申请涉及的阀值计算过程相对简单,有利于提高算法效率。1. Determine whether all three Hall elements are faulty. When all three Hall elements fail, the Hall position sensor has only one state during the rotation of the motor. The Hall position interval diagram at this time is shown in Figure 3(a), and Figure 3(b) shows the Corresponding to the output signal of each Hall element and the storage value of the arrays Hall(j) and Hall_dl(j), at this time, the output of Hall element A is 1, the output of Hall element B is 1, and the output of Hall element C is 0. Here another time variable t j and the angle θ j that each sector has traveled are defined. After the time or angle reaches the threshold, if the state of the Hall position sensor has not changed, then it can be considered that all three Halls have occurred. Fault. Threshold time can be divided into two types. One is to get the time by giving a minimum speed before the motor rotates. The other is to get the time by the average speed of the previous sector after the motor rotates. The angle of each sector is obtained by integrating the speed. If the angle reaches 60° plus an angle margin (that is, the threshold angle), the comprehensive state information output by the Hall position sensor remains unchanged, and it can also be It is determined that all three Hall elements are faulty. The threshold calculation process involved in this application is relatively simple, which is beneficial to improve the efficiency of the algorithm.
2、判断是否为两个霍尔元件均发生故障。当两个霍尔元件发生故障,只有一个霍尔元件的状态会发生变化,那么霍尔位置传感器只会输出两个综合状态,霍尔元件A、霍尔元件C故障后的霍尔区间图如图4(a)所示,图4(b)是对应的各霍尔元件输出信号及数组Hall(j)、Hall_dl(j)的存储值,此时霍尔元件A输出为1,霍尔元件C输出为0,可以根据这个特点来判定是否是两个霍尔元件发生故障。根据霍尔位置传感器输出综合状态信息是否满足Hall(j)=Hall(j+2)来判断,一旦满足这个条件,可以判定为两个霍尔元件故障。而由于数组Hall_dl(j)中存储的是Hall(j)对应的十进制数据,可以通过Hall_dl(j+1)-Hall_dl(j)的绝对值来定位故障霍尔元件,当其绝对值为4时,可以确定霍尔元件A未发生故障,相反故障的是霍尔元件B、霍尔元件C;当其绝对值为2时,可以确定霍尔元件B未发生故障,相反故障的是霍尔元件A、霍尔元件C;当其绝对值为1时,可以确定霍尔元件C未发生故障,故障的是霍尔元件A、霍尔元件B。2. Determine whether the two Hall elements are faulty. When two Hall elements fail, only the state of one Hall element will change, then the Hall position sensor will only output two comprehensive states. The Hall interval diagram after the failure of Hall element A and Hall element C is as follows As shown in Figure 4(a), Figure 4(b) is the corresponding output signal of each Hall element and the storage value of the arrays Hall(j) and Hall_dl(j). At this time, the output of Hall element A is 1, and the Hall element The output of C is 0, which can be used to determine whether the two Hall elements have failed. Judging according to whether the integrated state information output by the Hall position sensor satisfies Hall(j)=Hall(j+2), once this condition is met, it can be judged that two Hall elements are faulty. Since the array Hall_dl(j) stores the decimal data corresponding to Hall(j), the faulty Hall element can be located by the absolute value of Hall_dl(j+1)-Hall_dl(j), when its absolute value is 4 , it can be determined that the Hall element A is not faulty, and the opposite fault is Hall element B and Hall element C; when its absolute value is 2, it can be determined that the Hall element B is not faulty, and the opposite fault is the Hall element A. Hall element C; when its absolute value is 1, it can be determined that Hall element C has not failed, and the faults are Hall element A and Hall element B.
3、判断是否为一个霍尔元件发生故障。一个霍尔元件故障时,霍尔位置传感器输出综合状态信息会剩下四种,其中必有一种状态是三个霍尔元件的输出状态信息是一样的,称为零矢量状态,当在判断为不是三个或两个霍尔故障之后,就可以通过判断是否会出现零矢量(即三个霍尔元件的状态一样,此种状态在两个霍尔元件出错时也可能会出现,但该种情况已排除)来判断是否只有一个霍尔元件出错,若出现了零矢量,那么可以判定为有一个霍尔元件出现了故障,图5(a)给出了霍尔元件A故障后的霍尔区间图,图5(b)为对应的各霍尔元件输出信号及数组Hall(j)、Hall_dl(j)的存储值,此时霍尔元件A输出为1。因此在上两种情况均不成立情况下,当数组Hall(j)中一旦出现零矢量,可以认定为1个霍尔元件故障。对于故障的定位,按图2(a)逆时针旋转时,霍尔元件A故障后,如果霍尔元件A输出状态信息为0,那么零矢量后的一个状态为010,如果霍尔元件A输出状态信息为1,那么零矢量后的一个状态为101;同理可以得到霍尔元件B故障之后对应的状态为001(如果霍尔元件B输出状态信息为0,那么零矢量后的一个状态为001)、110(如果霍尔元件B输出状态信息为1,那么零矢量后的一个状态为110),霍尔元件C故障后为100(如果霍尔元件C输出状态信息为0,那么零矢量后的一个状态为100)、011(如果霍尔元件C输出状态信息为1,那么零矢量之后的一个状态为011)。顺时针旋转时,霍尔元件A故障后,如果霍尔元件A输出状态信息为0,那么零矢量后的一个状态为001,如果霍尔元件A输出状态信息为1,那么零矢量后的一个状态为110;同理可以得到霍尔元件B故障之后对应的状态为100(如果霍尔元件B输出状态信息为0,那么零矢量之后的一个状态为100)、011(如果霍尔元件B输出状态信息为1,那么零矢量之后的一个状态为011),霍尔元件C故障后为010(如果霍尔元件C输出状态信息为0,那么零矢量之后的一个状态为010)、101(如果霍尔元件C输出状态信息为1,那么零矢量之后的一个状态为101)。3. Determine whether a Hall element is faulty. When a Hall element fails, there will be four kinds of comprehensive state information output by the Hall position sensor, and one of the states must be the same output state information of the three Hall elements, which is called the zero vector state. When it is judged as After not three or two Hall faults, you can judge whether there will be a zero vector (that is, the state of the three Hall elements is the same, this state may also appear when two Hall elements fail, but this kind The situation has been ruled out) to judge whether there is only one Hall element error, if there is a zero vector, then it can be judged that there is a Hall element failure. Figure 5(a) shows the Hall element after the Hall element A failure The interval diagram, Fig. 5(b) is the corresponding output signal of each Hall element and the storage value of the arrays Hall(j), Hall_dl(j), and the output of Hall element A is 1 at this time. Therefore, when the above two conditions are not established, once a zero vector appears in the array Hall(j), it can be determined that one Hall element is faulty. For fault location, when rotating counterclockwise according to Figure 2(a), after Hall element A fails, if Hall element A outputs state information as 0, then a state after the zero vector is 010, if Hall element A outputs If the state information is 1, then a state after the zero vector is 101; similarly, it can be obtained that the corresponding state after the Hall element B fails is 001 (if the output state information of the Hall element B is 0, then a state after the zero vector is 001), 110 (if the Hall element B output state information is 1, then a state after the zero vector is 110), after the Hall element C fault is 100 (if the Hall element C output state information is 0, then the zero vector The last state is 100), 011 (if the Hall element C output state information is 1, then the next state after the zero vector is 011). When rotating clockwise, after the Hall element A fails, if the Hall element A output state information is 0, then the state after the zero vector is 001, if the Hall element A output state information is 1, then the state information after the zero vector is one The state is 110; similarly, it can be obtained that the corresponding state after the Hall element B fault is 100 (if the Hall element B output state information is 0, then a state after the zero vector is 100), 011 (if the Hall element B outputs The state information is 1, then a state after the zero vector is 011), after the Hall element C fails, it is 010 (if the Hall element C output state information is 0, then a state after the zero vector is 010), 101 (if The output state information of Hall element C is 1, then a state after the zero vector is 101).
第四步:在进行上述几个步骤之后,如果判定为未发生故障,则重复进行第二、三步;如果判定发生了上述三种情况之一的故障,则向控制器返回对应的故障类型,包括故障霍尔元件的个数和位置,控制器需要针对不同的故障类型采取相应的应对策略。Step 4: After the above steps, if it is judged that no fault has occurred, repeat the second and third steps; if it is judged that a fault has occurred in one of the above three situations, return the corresponding fault type to the controller , including the number and location of faulty Hall elements, the controller needs to adopt corresponding strategies for different fault types.
综上所述,本发明利用一种纯软件方法简单地实现了霍尔位置传感器故障的实时快速检测以及准确定位,整个方案通过在电机转动过程中对霍尔位置传感器的输出状态进行实时检测,分别以二进制和十进制数组的形式保存霍尔位置传感器输出综合状态信息,依据二进制数组及十进制信息依次排除三个霍尔元件均故障、两个霍尔元件故障、一个霍尔元件故障的情形,并在判定故障类型后由霍尔位置传感器输出综合信息定位故障霍尔元件,最终反馈故障信息至控制器,该方案不需要对硬件进行改动,成本低廉,对故障类型的快速诊断为保护系统提供了保障,对故障霍尔元件的准确定位为故障霍尔元件的维修和更换提供有力支持。In summary, the present invention uses a pure software method to simply realize the real-time rapid detection and accurate positioning of Hall position sensor faults. The whole scheme detects the output state of Hall position sensors in real time during the motor rotation process, Store the integrated state information of the Hall position sensor output in the form of binary and decimal arrays, and eliminate the failure of all three Hall elements, the failure of two Hall elements, and the failure of one Hall element in sequence according to the binary array and decimal information, and After determining the type of fault, the Hall position sensor outputs comprehensive information to locate the faulty Hall element, and finally feeds back the fault information to the controller. This solution does not need to change the hardware, and the cost is low. The rapid diagnosis of the fault type provides protection for the system. Guarantee, the accurate positioning of the faulty Hall element provides strong support for the repair and replacement of the faulty Hall element.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案实质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器,或者网络设备等)执行本发明的实施例或实施例的某些部分所述的方法。It can be seen from the above description of the implementation manners that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the method described in the embodiment or some parts of the embodiment of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610097197.4A CN105573304B (en) | 2016-02-22 | 2016-02-22 | A kind of permagnetic synchronous motor hall position sensor method for diagnosing faults |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610097197.4A CN105573304B (en) | 2016-02-22 | 2016-02-22 | A kind of permagnetic synchronous motor hall position sensor method for diagnosing faults |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105573304A CN105573304A (en) | 2016-05-11 |
CN105573304B true CN105573304B (en) | 2018-02-16 |
Family
ID=55883558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610097197.4A Active CN105573304B (en) | 2016-02-22 | 2016-02-22 | A kind of permagnetic synchronous motor hall position sensor method for diagnosing faults |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105573304B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106130414B (en) * | 2016-06-29 | 2019-01-25 | 北京经纬恒润科技有限公司 | Vehicle dormer window is from motor hall signal fault detection method, relevant apparatus and system |
CN106787992B (en) * | 2017-03-24 | 2019-08-02 | 哈尔滨理工大学 | Permanent magnetic brushless Hall sensor fault tolerant control method |
CN110391770A (en) * | 2018-04-17 | 2019-10-29 | 德昌电机(深圳)有限公司 | Electric machine, motor-drive circuit and driving method |
CN108775857B (en) * | 2018-07-09 | 2019-11-22 | 西北工业大学 | Fault Diagnosis Method of Hall Position Sensor of Permanent Magnet Brushless Motor |
CN113359032B (en) * | 2021-07-02 | 2023-07-25 | 杭州海康威视数字技术股份有限公司 | Permanent magnet synchronous motor testing method, device and equipment |
CN116992368A (en) * | 2023-07-04 | 2023-11-03 | 东风汽车集团股份有限公司 | Fault diagnosis method for Hall sensor in brushless direct current motor |
CN116543053B (en) * | 2023-07-05 | 2023-09-08 | 南京中旭电子科技有限公司 | Hall sensor production method and production system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103472263A (en) * | 2013-09-03 | 2013-12-25 | 清华大学 | Fault diagnosing method for hall sensor of permanent magnet synchronous motor |
CN104165649A (en) * | 2014-08-28 | 2014-11-26 | 西北工业大学 | Power-on self-detection method for brushless direct-current motor hall sensor |
CN105115416A (en) * | 2015-08-26 | 2015-12-02 | 南京航空航天大学 | Method for determining and positioning faults of permanent magnet synchronous motor switch Hall position sensor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3683259B2 (en) * | 2003-06-03 | 2005-08-17 | 松下電器産業株式会社 | Motor drive device |
-
2016
- 2016-02-22 CN CN201610097197.4A patent/CN105573304B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103472263A (en) * | 2013-09-03 | 2013-12-25 | 清华大学 | Fault diagnosing method for hall sensor of permanent magnet synchronous motor |
CN104165649A (en) * | 2014-08-28 | 2014-11-26 | 西北工业大学 | Power-on self-detection method for brushless direct-current motor hall sensor |
CN105115416A (en) * | 2015-08-26 | 2015-12-02 | 南京航空航天大学 | Method for determining and positioning faults of permanent magnet synchronous motor switch Hall position sensor |
Non-Patent Citations (1)
Title |
---|
PMSM驱动系统位置传感器偏转故障的诊断与容错;孙宁 等;《电器传动》;20131231;第43卷(第5期);第3-7页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105573304A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105573304B (en) | A kind of permagnetic synchronous motor hall position sensor method for diagnosing faults | |
CN104165649B (en) | A kind of brshless DC motor Hall element power-on self-test surveys method | |
CN106787992B (en) | Permanent magnetic brushless Hall sensor fault tolerant control method | |
US9531310B2 (en) | System and method for computing motor speed and rotor position using hall sensor | |
Aqil et al. | A direct redundancy approach to fault-tolerant control of BLDC motor with a damaged hall-effect sensor | |
US7679299B2 (en) | Techniques for redundancy and fault tolerance in high demand machine safety applications | |
CN103424651A (en) | Fault detection method for Hall position sensors | |
CN111413616A (en) | Comprehensive Diagnosis Method of Demagnetization Fault of Permanent Magnet Motor | |
CN105391362A (en) | DC brushless motor Hall sensor control algorithm | |
WO2016091090A1 (en) | Fault diagnosis and location method for position sensor of three-phase switched reluctance motor | |
WO2016091091A1 (en) | Method of diagnosing and locating malfunction of two position sensors of four-phase switched reluctance motor | |
CN104457647A (en) | Fault diagnosing and positioning method for four position sensors of four-phase switch reluctance motor | |
US20230327522A1 (en) | Method for fault processing of hall position sensor in brushless direct current motor | |
CN114553063A (en) | Redundant circuit for software and hardware decoding and sensorless estimation of permanent magnet synchronous motor | |
CN114172414A (en) | Servo motor initial electrical angle determining method and device and readable storage medium | |
CN105515467B (en) | Method for correcting a rotation angle signal | |
CN112039387A (en) | Fault diagnosis method for permanent magnet synchronous motor position sensor | |
CN116125854A (en) | Brake system operation control method, device, brake system, equipment and medium | |
CN113866454A (en) | Detection method and device, magnetic suspension motor, compressor and readable storage medium | |
CN207573270U (en) | A Hall fault-tolerant control system of brushless DC motor for washing machine | |
CN115060987B (en) | Motor phase loss detection method and device, electronic equipment and storage medium | |
Skóra | Application of rotor position sensor fault tolerant control in electric vehicle with PM BLDC motor drives | |
CN116659561A (en) | Permanent magnet brushless motor Hall sensor fault diagnosis method | |
CN112332747B (en) | A fast fault diagnosis control method for switched reluctance motor position square wave signal | |
CN118913066A (en) | Fault detection method and related device of Hall position sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |