CN115580199A - Resolver zero calibration method, device, electronic equipment and storage medium - Google Patents
Resolver zero calibration method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115580199A CN115580199A CN202211212707.XA CN202211212707A CN115580199A CN 115580199 A CN115580199 A CN 115580199A CN 202211212707 A CN202211212707 A CN 202211212707A CN 115580199 A CN115580199 A CN 115580199A
- Authority
- CN
- China
- Prior art keywords
- zero position
- resolver
- zero
- phase
- current value
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P23/00—Arrangements or methods for the control of AC motors characterised by a control method other than vector control
- H02P23/14—Estimation or adaptation of motor parameters, e.g. rotor time constant, flux, speed, current or voltage
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/64—Electric machine technologies in electromobility
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Ac Motors In General (AREA)
Abstract
本申请实施例提供一种旋变零位标定方法、装置、电子设备和存储介质,其中,方法包括:拖动电机转子转动并控制其转速;控制电机定子绕组由三相交流逆变器ASC进入三相短路,当所述电机转子的转速大于转速阈值且所述转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值;根据所述三相电流数值获取旋变零位;将所述旋变零位写入只读存储器。实施上述实施例,能够减少误差,使得获得的旋变零位精度较高。
Embodiments of the present application provide a resolver zero calibration method, device, electronic equipment, and storage medium, wherein the method includes: driving the motor rotor to rotate and controlling its speed; controlling the motor stator winding to be entered by the three-phase AC inverter ASC Three-phase short circuit, when the speed of the motor rotor is greater than the speed threshold and the fluctuation state value of the speed is less than the fluctuation threshold, obtain the three-phase current value of the three-phase AC motor; obtain the zero position of the resolver according to the three-phase current value ; Write the resolver zero bit into the read-only memory. Implementing the above-mentioned embodiment can reduce errors, so that the obtained resolver zero position has higher precision.
Description
技术领域technical field
本申请涉及电机技术领域,具体而言,涉及一种旋变零位标定方法、装置、电子设备和存储介质。The present application relates to the technical field of motors, in particular, to a resolver zero calibration method, device, electronic equipment and storage medium.
背景技术Background technique
目前,电动汽车电机的旋变零位标定,有以下几种方法:1.手动调整零位法,通过手动调整旋转变压器位置,使相电压与旋变变压器的电压方向一致。2.静态电压调整零位法,通过给电机相电压一个电压指令,电子转子受电磁力矩的影响转动一个角度,旋转变压器跟随旋转,记录这个角度为旋变变压器的零位角。3.旋转电压偏差标定法,旋转电机与旋转变压器,通过对比三相电压的波峰点与旋转变压器电压的零点的偏差角,来计算电机的旋变零位,但电压标定的方法主要难以准确获取电压波型的波峰点。At present, there are several methods for the zero position calibration of the resolver of the electric vehicle motor: 1. Manually adjust the zero position method, by manually adjusting the position of the resolver, the phase voltage is consistent with the voltage direction of the resolver transformer. 2. Static voltage adjustment zero position method. By giving a voltage command to the phase voltage of the motor, the electronic rotor rotates an angle under the influence of electromagnetic torque, and the resolver rotates accordingly. Record this angle as the zero position angle of the resolver transformer. 3. The rotary voltage deviation calibration method, the rotary motor and the rotary transformer, calculate the zero position of the motor resolver by comparing the deviation angle between the peak point of the three-phase voltage and the zero point of the resolver voltage, but the voltage calibration method is mainly difficult to obtain accurately The peak point of the voltage waveform.
以上方法都需要由人员或测试设备来进行旋变零位的记录、计算、写入,需要人员或测试设备有记录、计算和正确写入的能力,对人员或设备的要求较高,需要做一定的培训或调试才能被使用。且人为的操作,还容易带来旋变零位的误记录、误写入、漏写入等情况,容易带来误差,给后续电驱的使用带来一定的潜在风险。All of the above methods require personnel or testing equipment to record, calculate, and write the zero position of the resolver. It requires personnel or testing equipment to have the ability to record, calculate, and write correctly. The requirements for personnel or equipment are relatively high. Certain training or commissioning is required before they can be used. Moreover, manual operation may also easily lead to misrecording, miswriting, and missing writing of the resolver zero position, which may easily cause errors and bring certain potential risks to the use of subsequent electric drives.
发明内容Contents of the invention
本申请实施例的目的在于提供一种旋变零位标定方法、装置、电子设备和存储介质,能够实现自动避免误差。The purpose of the embodiments of the present application is to provide a resolver zero calibration method, device, electronic equipment and storage medium, which can automatically avoid errors.
第一方面,本申请实施例提供了一种旋变零位标定方法,包括:In the first aspect, the embodiment of the present application provides a resolver zero calibration method, including:
拖动电机转子转动并控制其转速;Drag the motor rotor to rotate and control its speed;
控制电机定子绕组由三相交流逆变器ASC进入三相短路;Control the stator winding of the motor to enter the three-phase short circuit from the three-phase AC inverter ASC;
当所述电机转子的转速大于转速阈值且所述转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值;When the rotational speed of the motor rotor is greater than the rotational speed threshold and the fluctuation state value of the rotational speed is less than the fluctuation threshold, acquire the three-phase current value of the three-phase AC motor;
根据所述三相电流数值获取旋变零位;Obtaining the zero position of the resolver according to the three-phase current value;
将所述旋变零位写入只读存储器。Write the resolver zero position into the read-only memory.
在上述实现过程中,当所述电机转子的转速大于转速阈值且所述转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值,根据三相电流数值获取旋变零位,能够减少误差,使得获得的旋变零位精度较高。In the above implementation process, when the speed of the motor rotor is greater than the speed threshold and the fluctuation state value of the speed is less than the fluctuation threshold, the three-phase current value of the three-phase AC motor is obtained, and the zero position of the resolver is obtained according to the three-phase current value , which can reduce the error, so that the obtained resolver zero position has higher precision.
进一步地,所述获取三相交流电机的三相电流数值的步骤,包括:Further, the step of obtaining the three-phase current value of the three-phase AC motor includes:
当所述电机转子以所述转速转动的时间大于所述时间阈值时,在预设时间范围内获取多组所述三相电流数值。When the time during which the motor rotor rotates at the rotational speed is greater than the time threshold, multiple sets of the three-phase current values are acquired within a preset time range.
在上述实现过程中,当所述电机转子以所述转速转动的时间大于所述时间阈值时,在预设时间范围内获取多组所述三相电流数值,能够确保获得的三相电流数值比较准确,方差较小,从而能够使得获得的旋变零位更加精确。In the above implementation process, when the time for which the motor rotor rotates at the rotational speed is greater than the time threshold, multiple sets of the three-phase current values are obtained within the preset time range, which can ensure that the obtained three-phase current values are comparable Accurate, the variance is small, so that the zero position of the resolver can be obtained more accurately.
进一步地,所述根据所述三相电流数值获取旋变零位的步骤,包括:Further, the step of obtaining the zero position of the resolver according to the three-phase current value includes:
获取每组三相电流数值对应的临时旋变零位,得到多个临时旋变零位;Obtain the temporary resolver zero position corresponding to each group of three-phase current values, and obtain multiple temporary resolver zero positions;
根据所述多个临时旋变零位获取所述旋变零位。The resolver zero position is acquired according to the plurality of temporary resolver zero positions.
在上述实现过程中,获取多个临时旋变零位,基于多个临时旋变零位获取旋变零位能够克服单个旋变零位所带来的误差较大风险。In the above implementation process, multiple temporary resolver zero positions are obtained, and obtaining the resolver zero position based on the multiple temporary resolver zero positions can overcome the large error risk caused by a single resolver zero position.
进一步地,所述获取每组三相电流数值对应的临时旋变零位的步骤,包括:Further, the step of obtaining the temporary resolver zero position corresponding to each set of three-phase current values includes:
将每组所述三相电流数值进行CLARK变换,得到ab固定坐标系下的第一变换电流数值;Performing CLARK transformation on each group of the three-phase current values to obtain the first transformed current values in the ab fixed coordinate system;
获取预设的旋变零位位置;Obtain the preset resolver zero position;
根据所述预设的旋变零位位置对所述第一变换电流数值进行PARK变换,得到dq旋转坐标系下的第二变换电流数值;performing PARK transformation on the first converted current value according to the preset zero position of the resolver to obtain a second converted current value in the dq rotating coordinate system;
将所述第二变换电流数值在q轴进行翻转,得到dq旋转坐标系下的第三变换电流数值;Flipping the second converted current value on the q axis to obtain a third converted current value in the dq rotating coordinate system;
获取所述第三变换电流数值在所述dq旋转坐标系下的第一角度;Obtain a first angle of the third transformed current value in the dq rotating coordinate system;
获取所述预设的旋变零位位置和所述第一角度的和,得到所述临时旋变零位。The sum of the preset zero position of the resolver and the first angle is obtained to obtain the temporary zero position of the resolver.
在上述实现过程中,提供了一种获取临时旋变零位的方法,基于上述方法,能够基于多组三相电流值准确地获取多个临时旋变零位。In the above implementation process, a method for obtaining temporary resolver zero positions is provided. Based on the above method, multiple temporary resolver zero positions can be accurately obtained based on multiple sets of three-phase current values.
进一步地,所述将所述旋变零位写入只读存储器的步骤,包括:Further, the step of writing the zero position of the resolver into the read-only memory includes:
将所述临时旋变零位写入到随机存取存储器;writing the temporary resolver zero to a random access memory;
响应于完成标识位的上升沿信号,将根据所述多个临时旋变零位获取的所述旋变零位写入所述只读存储器。Responding to the rising edge signal of the completion flag, writing the resolver zero bits acquired according to the plurality of temporary resolver zero bits into the read-only memory.
在上述实现过程中,将旋变零位写入到只读存储器中,能够避免旋变零位被篡改。In the above implementation process, the zero position of the resolver is written into the read-only memory, which can prevent the zero position of the resolver from being tampered with.
进一步地,所述将所述旋变零位写入到随机存取存储器的步骤之后,还包括:Further, after the step of writing the resolver zero bit into the random access memory, it also includes:
响应于完成标识位的上升沿信号,获取多个临时旋变零位的平均值、方差;Responding to the rising edge signal of the completion flag, obtaining the average value and variance of multiple temporary resolver zero positions;
判断所述平均值、方差是否超过预设值,若是,发出告警信息。It is judged whether the average value and the variance exceed the preset value, and if so, an alarm message is issued.
在上述实现过程中,如果多个临时旋变零位的平均值和方差超过预设值,说明获得的旋变零位误差较大,发出告警信息。In the above implementation process, if the average value and variance of multiple temporary resolver zero positions exceed the preset values, it means that the error of the obtained resolver zero position is relatively large, and an alarm message is issued.
进一步地,所述转速阈值为所述电机对应的三相交流逆变器进入ASC转动时的转速。Further, the rotational speed threshold is the rotational speed when the three-phase AC inverter corresponding to the motor enters the ASC rotation.
第二方面,本申请实施例提供一种旋变零位标定装置,包括:In the second aspect, the embodiment of the present application provides a resolver zero calibration device, including:
拖动与转速控制模块,用于拖动电机转子转动并控制其转速;The drag and speed control module is used to drive the motor rotor to rotate and control its speed;
三相交流逆变器控制模块,用于控制ASC使电机定子绕组进入三相短路;The three-phase AC inverter control module is used to control the ASC to make the stator winding of the motor enter a three-phase short circuit;
电流数值获取模块,用于当所述电机转子的转速大于转速阈值且所述转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值;A current numerical value acquisition module, configured to obtain the three-phase current value of the three-phase AC motor when the rotational speed of the motor rotor is greater than the rotational speed threshold and the fluctuation state value of the rotational speed is less than the fluctuation threshold;
零位获取模块,用于根据所述三相电流数值获取旋变零位;A zero position acquisition module, configured to acquire the resolver zero position according to the three-phase current value;
写入模块,用于将所述旋变零位写入只读存储器。The writing module is used for writing the zero position of the resolver into the read-only memory.
第三方面,本申请实施例提供的一种电子设备,包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如第一方面任一项所述的方法的步骤。In a third aspect, an electronic device provided by an embodiment of the present application includes: a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program When implementing the steps of the method described in any one of the first aspect.
第四方面,本申请实施例提供的一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,使得所述计算机执行如第一方面任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are run on a computer, the computer is made to perform any of the tasks described in the first aspect. one of the methods described.
本申请公开的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本申请公开的上述技术即可得知。Other features and advantages disclosed in the present application will be described in the subsequent description, or some of the features and advantages can be deduced or unambiguously determined from the description, or can be known by implementing the above-mentioned technology disclosed in the present application.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned purpose, features and advantages of the present application more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, so It should not be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings according to these drawings without creative work.
图1为本申请实施例提供的旋变零位标定方法的流程示意图;Fig. 1 is a schematic flow chart of the resolver zero calibration method provided by the embodiment of the present application;
图2为本申请实施例提供的旋变零位标定装置的结构示意图;Fig. 2 is a schematic structural diagram of a resolver zero calibration device provided in an embodiment of the present application;
图3为本申请实施例提供的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
实施例1Example 1
参见图1,本申请实施例提供了一种旋变零位标定方法,应用于电驱总成,电驱总成包括:三相交流逆变器、电机定子、电子转子等部件,方法包括:Referring to Fig. 1, the embodiment of the present application provides a resolver zero calibration method, which is applied to the electric drive assembly. The electric drive assembly includes: three-phase AC inverter, motor stator, electronic rotor and other components. The method includes:
S1:拖动电机转子转动并控制其转速;S1: Drag the motor rotor to rotate and control its speed;
S2:控制电机定子绕组由三相交流逆变器ASC进入三相短路;S2: Control the stator winding of the motor to enter the three-phase short circuit from the three-phase AC inverter ASC;
上述实施例中,三相交流逆变器为待标定电驱总成的电机控制器。In the above embodiments, the three-phase AC inverter is the motor controller of the electric drive assembly to be calibrated.
S3:当电机转子的转速大于转速阈值且转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值;S3: When the rotational speed of the motor rotor is greater than the rotational speed threshold and the fluctuation state value of the rotational speed is less than the fluctuation threshold, obtain the three-phase current value of the three-phase AC motor;
S4:根据三相电流数值获取旋变零位;S4: Acquire the zero position of the resolver according to the three-phase current value;
S5:将旋变零位写入只读存储器。S5: Write the zero position of the resolver into the read-only memory.
在上述实现过程中,当电机转子的转速大于转速阈值且转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值,根据三相电流数值获取旋变零位,能够减少误差,使得获得的旋变零位精度较高。In the above implementation process, when the speed of the motor rotor is greater than the speed threshold and the fluctuation state value of the speed is less than the fluctuation threshold, the three-phase current value of the three-phase AC motor is obtained, and the zero position of the resolver is obtained according to the three-phase current value, which can reduce the error , so that the obtained resolver zero position accuracy is higher.
在一可能的实施方式中,转速阈值为电机对应的三相交流逆变器进入ASC转动时的转速。In a possible implementation manner, the rotational speed threshold is the rotational speed when the three-phase AC inverter corresponding to the motor starts to rotate in the ASC.
需要说明的是,此时电机控制器控制驱动电路的三相桥臂的下开关管进入ASC。ASC状态是指电机控制器三相桥臂的上开关管或三相桥臂的开关管下三桥全开(导通),使电机定子绕组形成闭合回路。It should be noted that at this moment, the motor controller controls the lower switching tube of the three-phase bridge arm of the drive circuit to enter the ASC. The ASC state means that the upper switching tube of the three-phase bridge arm of the motor controller or the lower three bridges of the switching tube of the three-phase bridge arm are fully open (conducted), so that the stator winding of the motor forms a closed loop.
此时电机控制器进入ASC,而电机转子被拖动旋转,电机定子绕组受电磁感应产生电动势,进而在三相产生电流。At this time, the motor controller enters the ASC, and the motor rotor is dragged to rotate, and the motor stator winding is subjected to electromagnetic induction to generate electromotive force, and then generate current in the three phases.
在一可能的实施方式中,S2包括:In a possible implementation manner, S2 includes:
当电机转子以转速转动的时间大于时间阈值时,在预设时间范围内获取多组三相电流数值。When the time for which the motor rotor rotates at a rotational speed is greater than the time threshold, multiple sets of three-phase current values are acquired within a preset time range.
在上述实现过程中,当电机转子以转速转动的时间大于时间阈值时,在预设时间范围内获取多组三相电流数值,能够确保获得的三相电流数值比较准确,方差较小,从而能够使得获得的旋变零位更加精确。In the above implementation process, when the time for the motor rotor to rotate at a rotational speed is greater than the time threshold, multiple sets of three-phase current values are obtained within the preset time range, which can ensure that the obtained three-phase current values are relatively accurate and have a small variance, thereby enabling This makes the obtained resolver zero position more accurate.
在一可能的实施方式中,根据三相电流数值获取旋变零位的步骤,包括:In a possible implementation manner, the step of obtaining the zero position of the resolver according to the three-phase current value includes:
获取每组三相电流数值对应的临时旋变零位,得到多个临时旋变零位;Obtain the temporary resolver zero position corresponding to each group of three-phase current values, and obtain multiple temporary resolver zero positions;
根据多个临时旋变零位获取旋变零位。Obtains a resolver null from a plurality of temporary resolver nulls.
在上述实现过程中,获取多个临时旋变零位,基于多个临时旋变零位获取旋变零位能够克服单个旋变零位所带来的误差较大风险。In the above implementation process, multiple temporary resolver zero positions are obtained, and obtaining the resolver zero position based on the multiple temporary resolver zero positions can overcome the large error risk caused by a single resolver zero position.
在一可能的实施方式中,获取每组三相电流数值对应的临时旋变零位的步骤,包括:In a possible implementation manner, the step of obtaining the temporary resolver zero position corresponding to each set of three-phase current values includes:
将每个三相电流数值进行CLARK变换,得到ab固定坐标系下的第一变换电流数值;Perform CLARK transformation on each three-phase current value to obtain the first transformed current value in the ab fixed coordinate system;
获取预设的旋变零位位置;Obtain the preset resolver zero position;
根据预设的旋变零位位置对第一变换电流数值进行PARK变换,得到dq旋转坐标系下的第二变换电流数值;performing PARK transformation on the first converted current value according to the preset zero position of the resolver to obtain the second converted current value in the dq rotating coordinate system;
将第二变换电流数值在q轴进行翻转,得到dq坐标系下的第三变换电流数值;Flip the second converted current value on the q axis to obtain a third converted current value in the dq coordinate system;
获取第三变换电流数值在dq旋转坐标系下的第一角度;Obtain the first angle of the third transformed current value in the dq rotating coordinate system;
获取预设的旋变零位位置和所述第一角度的和,得到临时旋变零位。The sum of the preset zero position of the resolver and the first angle is obtained to obtain the temporary zero position of the resolver.
上述实施例中,临时旋变零位为旋转变压器相对于电机U相的偏差角。In the above embodiments, the temporary resolver zero position is the deviation angle of the resolver relative to the U-phase of the motor.
在上述实现过程中,提供了一种获取旋变零位的方法,基于上述方法,能够基于电流值准确地获取多个临时旋变零位。In the above implementation process, a method for obtaining the zero position of the resolver is provided. Based on the above method, multiple temporary zero positions of the resolver can be accurately obtained based on the current value.
在一可能的实施方式中,将旋变零位写入只读存储器的步骤,包括:In a possible implementation manner, the step of writing the resolver zero bit into the read-only memory includes:
将临时旋变零位写入到随机存取存储器;write temporary resolver zero bits to random access memory;
响应于完成标识位的上升沿信号,将根据所述多个临时旋变零位获取的旋变零位写入只读存储器。Responding to the rising edge signal of the completion flag, writing the resolver zeros obtained according to the plurality of temporary resolver zeros into the read-only memory.
在上述实现过程中,将旋变零位写入到只读存储器中,能够避免旋变零位被篡改。In the above implementation process, the zero position of the resolver is written into the read-only memory, which can prevent the zero position of the resolver from being tampered with.
在一可能的实施方式中,在检测到上升沿之后,还需要判断当前电机控制器是否处于旋变标定模式和工厂模式,只有三个条件满足的情况下,电机控制器软件将随机存储器内记录的旋变零位数值,写入到只读存储器内。In a possible implementation, after detecting the rising edge, it is also necessary to judge whether the current motor controller is in the resolver calibration mode and the factory mode. Only when the three conditions are met, the motor controller software will record The zero value of the resolver is written into the read-only memory.
在一可能的实施方式中,将旋变零位写入到随机存取存储器的步骤之后,还包括:In a possible implementation manner, after the step of writing the resolver zero bit into the random access memory, it also includes:
响应于完成标识位的上升沿信号,获取多个临时旋变零位的平均值、方差;Responding to the rising edge signal of the completion flag, obtaining the average value and variance of multiple temporary resolver zero positions;
判断平均值、方差是否超过预设值,若是,发出告警信息。Determine whether the average value and variance exceed the preset value, and if so, send an alarm message.
在上述实现过程中,如果多个临时旋变零位的平均值和方差超过预设值,说明获得的旋变零位误差较大,发出告警信息。In the above implementation process, if the average value and variance of multiple temporary resolver zero positions exceed the preset values, it means that the error of the obtained resolver zero position is relatively large, and an alarm message is issued.
综上,电机控制器首先获得的旋转变压器相对于电机U相的偏差角,判断稳定运行转速阈值和数据记录时间阈值是否满足,当电机转子转速在目标转速波动范围内,且持续达到稳定运行的时间阈值时,电机控制器开始自动记录偏差角的数值,当电机转子在目标转速波动范围内,且持续达到数据记录的时间阈值时,电机控制器将已记录的偏差角计算平均值,发出旋变零位记录完成标识位,并记录该平均值至电机控制器RAM内。In summary, the motor controller first obtains the deviation angle of the resolver relative to the U-phase of the motor, and judges whether the stable operation speed threshold and the data recording time threshold are satisfied. When the motor rotor speed is within the target speed fluctuation range and continues to reach the stable operation When the time threshold is reached, the motor controller starts to automatically record the value of the deviation angle. When the motor rotor is within the target speed fluctuation range and continues to reach the time threshold of data recording, the motor controller calculates the average value of the recorded deviation angle and sends a rotation Change the zero bit to record the completion flag, and record the average value to the RAM of the motor controller.
在一种可能的实施方式中,电机控制器通过CAN线与台架或上位机通讯,方法还包括:当需要进行旋变操作的时候,向上位机发出提示信息,以提醒台架操作人员调整电机转速,使电机转速达到转速阈值。In a possible implementation, the motor controller communicates with the bench or the host computer through the CAN line, and the method further includes: when a resolver operation is required, sending a prompt message to the host computer to remind the bench operator to adjust The motor speed, so that the motor speed reaches the speed threshold.
在一种可能的实施方式中,当将旋变零位写入只读存储器之后,向上位机发出提醒信息,来提示台架操作人员测试已完成,可执行后续的下电和复原工作。In a possible implementation, after the resolver zero position is written into the read-only memory, a reminder message is sent to the host computer to remind the platform operator that the test has been completed, and subsequent power-off and recovery work can be performed.
在一种可能的实施方式中,方法还包括:对切换旋变标定模式是否成功进行检查,包括对母线电压与继电器的检查,电机控制器自检的检查,如未能成功进入,则报出故障并提示故障原因。In a possible implementation, the method further includes: checking whether the switchover of the resolver calibration mode is successful, including checking the bus voltage and the relay, checking the self-test of the motor controller, and reporting if it fails to enter fault and prompt the cause of the fault.
在一种可能的实施方式中,方法还包括:对旋变零位计算条件进行检查,如电机转速未能达到转速阈值,且持续时间超过预设的未稳定运行时间阈值,则电机控制器报出故障并提示。In a possible implementation manner, the method further includes: checking the conditions for calculating the zero position of the resolver, if the motor speed fails to reach the speed threshold and the duration exceeds the preset unstable running time threshold, the motor controller reports Fault and prompt.
在一种可能的实施方式中,方法还包括:当电机转速未能达到目标转速阈值范围,且持续时间超过未记录数据时间阈值,则电机控制器报出故障并提示。In a possible implementation manner, the method further includes: when the motor speed fails to reach the target speed threshold range and the duration exceeds the unrecorded data time threshold, the motor controller reports a fault and prompts.
在一种可能的实施方式中,方法还包括:在旋变零位记录完成标识位的上升沿发出后,超过一定时间阈值未能收到写入完成标识位,则电机控制器报出故障并提示。In a possible implementation manner, the method further includes: after the rising edge of the resolver zero recording completion flag is sent, if the writing completion flag fails to be received beyond a certain time threshold, the motor controller reports a fault and hint.
实施例2Example 2
参见图2,本申请实施例提供一种旋变零位标定装置,包括:Referring to Figure 2, the embodiment of the present application provides a resolver zero calibration device, including:
控制模块1,用于拖动电机转子转动并控制其转速;The
三相交流逆变器控制模块2,用于控制ASC使电机定子绕组进入三相短路;The three-phase AC
电流数值获取模块3,用于当电机转子的转速大于转速阈值且转速的波动状态值小于波动阈值时,获取三相交流电机的三相电流数值;The current
零位获取模块4,用于根据三相电流数值获取旋变零位;The zero
写入模块5,用于将旋变零位写入只读存储器。
在一种可能的实施方式中,电流数值获取模块3还用于当电机转子以转速转动的时间大于时间阈值时,在预设时间范围内获取多组三相电流数值。In a possible implementation, the current
在一种可能的实施方式中,零位获取模块4还用于获取每组三相电流数值对应的临时旋变零位,得到多个临时旋变零位;根据多个临时旋变零位获取旋变零位。In a possible implementation, the zero
在一种可能的实施方式中,零位获取模块4还用于将每组三相电流数值进行CLARK变换,得到ab固定坐标系下的第一变换电流数值;获取预的旋变零位位置;In a possible implementation manner, the zero
根据预设的旋变零位位置对第一变换电流数值进行PARK变换,得到dq旋转坐标系下的第二变换电流数值;将第二变换电流数值在q轴进行翻转,得到dq旋转坐标系下的第三变换电流数值;获取第三变换电流数值在dq旋转坐标系下的第一角度;获取预设的旋变零位位置和第一角度的和,得到临时旋变零位。Perform PARK transformation on the first transformation current value according to the preset zero position of the resolver to obtain the second transformation current value in the dq rotating coordinate system; flip the second transformation current value on the q axis to obtain the dq rotation coordinate system The third transformation current value; obtain the first angle of the third transformation current value in the dq rotating coordinate system; obtain the preset resolver zero position and the sum of the first angle to obtain the temporary resolver zero position.
在一种可能的实施方式中,写入模块5将临时旋变零位写入到随机存取存储器;响应于完成标识位的上升沿信号,将根据所述多个临时旋变零位获取的旋变零位写入只读存储器。In a possible implementation manner, the
在一种可能的实施方式中,装置还包括:提醒模块,用于响应于完成标识位的上升沿信号,获取多个临时旋变零位的平均值、方差;判断平均值、方差是否超过预设值,若是,发出告警信息。In a possible implementation manner, the device further includes: a reminder module, configured to obtain the average value and variance of multiple temporary resolver zero positions in response to the rising edge signal of the completion flag; determine whether the average value and variance exceed the preset Set the value, if so, send an alarm message.
在一种可能的实施方式中,转速阈值为电机对应的三相交流逆变器进入ASC转动时的转速。In a possible implementation manner, the rotational speed threshold is the rotational speed when the three-phase AC inverter corresponding to the motor starts to rotate in the ASC.
本申请还提供一种电子设备,请参见图3,图3为本申请实施例提供的一种电子设备的结构框图。电子设备可以包括处理器31、通信接口32、存储器33和至少一个通信总线34。其中,通信总线34用于实现这些组件直接的连接通信。其中,本申请实施例中电子设备的通信接口32用于与其他节点设备进行信令或数据的通信。处理器31可以是一种集成电路芯片,具有信号的处理能力。The present application also provides an electronic device, please refer to FIG. 3 , and FIG. 3 is a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a
上述的处理器31可以是通用处理器,包括中央处理器(Central ProcessingUnit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器31也可以是任何常规的处理器等。Above-mentioned
存储器33可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。存储器33中存储有计算机可读取指令,当计算机可读取指令由处理器31执行时,电子设备可以执行上述方法实施例涉及的各个步骤。
可选地,电子设备还可以包括存储控制器、输入输出单元。Optionally, the electronic device may further include a storage controller and an input/output unit.
存储器33、存储控制器、处理器31、外设接口、输入输出单元各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通信总线34实现电性连接。处理器31用于执行存储器33中存储的可执行模块,例如电子设备包括的软件功能模块或计算机程序。The components of the
输入输出单元用于提供给用户创建任务以及为该任务创建启动可选时段或预设执行时间以实现用户与服务器的交互。输入输出单元可以是,但不限于,鼠标和键盘等。The input and output unit is used for creating a task for the user and creating an optional start-up time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but not limited to, mouse and keyboard and so on.
可以理解,图3所示的结构仅为示意,电子设备还可包括比图3中所示更多或者更少的组件,或者具有与图3所示不同的配置。图3中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 3 is only for illustration, and the electronic device may also include more or less components than those shown in FIG. 3 , or have a configuration different from that shown in FIG. 3 . Each component shown in FIG. 3 may be implemented by hardware, software or a combination thereof.
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有指令,当指令在计算机上运行时,计算机程序被处理器执行时实现方法实施例的方法,为避免重复,此处不再赘述。The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores instructions. When the instructions are run on the computer, the computer program is executed by the processor to implement the method of the method embodiment. In order to avoid repetition, I won't repeat them here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more executable instruction. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .
以上仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above are only examples of the present application, and are not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application. It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only the specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application, and should cover Within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. any such actual relationship or order exists between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211212707.XA CN115580199B (en) | 2022-09-30 | 2022-09-30 | A method, apparatus, electronic device, and storage medium for refractive index zero-point calibration. |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211212707.XA CN115580199B (en) | 2022-09-30 | 2022-09-30 | A method, apparatus, electronic device, and storage medium for refractive index zero-point calibration. |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115580199A true CN115580199A (en) | 2023-01-06 |
| CN115580199B CN115580199B (en) | 2026-02-13 |
Family
ID=84582713
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211212707.XA Active CN115580199B (en) | 2022-09-30 | 2022-09-30 | A method, apparatus, electronic device, and storage medium for refractive index zero-point calibration. |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115580199B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116101063A (en) * | 2023-02-20 | 2023-05-12 | 丽水方德智驱应用技术研究院有限公司 | A control method for preventing power loss of electric drive system |
| CN116945904A (en) * | 2023-07-27 | 2023-10-27 | 重庆赛力斯新能源汽车设计院有限公司 | Generator controller fault prompting method and device and new energy automobile |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106301133A (en) * | 2016-08-10 | 2017-01-04 | 浙江云迪电气科技有限公司 | Automobile permanent magnet synchronous motor Zero positioning system, method and electric machine controller |
| CN107404272A (en) * | 2016-05-16 | 2017-11-28 | 广州汽车集团股份有限公司 | Permagnetic synchronous motor rotation becomes zero-bit initial angle scaling method and calibration system |
| CN110601610A (en) * | 2019-09-20 | 2019-12-20 | 潍柴动力股份有限公司 | Method and device for identifying zero offset of permanent magnet synchronous motor and rotary transformer |
| CN111313784A (en) * | 2018-12-11 | 2020-06-19 | 广州汽车集团股份有限公司 | A method and system for measuring initial zero position of a permanent magnet synchronous motor resolver |
| CN112087176A (en) * | 2020-09-01 | 2020-12-15 | 深圳熙斯特新能源技术有限公司 | Motor rotor reference zero offset correction method and system |
| CN113885416A (en) * | 2021-10-20 | 2022-01-04 | 上海新纪元机器人有限公司 | Method and system for automatically detecting servo motor parameters |
| US20220077518A1 (en) * | 2018-12-21 | 2022-03-10 | Byd Company Limited | Vehicle and power battery heating apparatus and method thereof |
-
2022
- 2022-09-30 CN CN202211212707.XA patent/CN115580199B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107404272A (en) * | 2016-05-16 | 2017-11-28 | 广州汽车集团股份有限公司 | Permagnetic synchronous motor rotation becomes zero-bit initial angle scaling method and calibration system |
| CN106301133A (en) * | 2016-08-10 | 2017-01-04 | 浙江云迪电气科技有限公司 | Automobile permanent magnet synchronous motor Zero positioning system, method and electric machine controller |
| CN111313784A (en) * | 2018-12-11 | 2020-06-19 | 广州汽车集团股份有限公司 | A method and system for measuring initial zero position of a permanent magnet synchronous motor resolver |
| US20220077518A1 (en) * | 2018-12-21 | 2022-03-10 | Byd Company Limited | Vehicle and power battery heating apparatus and method thereof |
| CN110601610A (en) * | 2019-09-20 | 2019-12-20 | 潍柴动力股份有限公司 | Method and device for identifying zero offset of permanent magnet synchronous motor and rotary transformer |
| CN112087176A (en) * | 2020-09-01 | 2020-12-15 | 深圳熙斯特新能源技术有限公司 | Motor rotor reference zero offset correction method and system |
| CN113885416A (en) * | 2021-10-20 | 2022-01-04 | 上海新纪元机器人有限公司 | Method and system for automatically detecting servo motor parameters |
Non-Patent Citations (1)
| Title |
|---|
| 张猛 等: "一种永磁同步电机转子位置传感器零位偏差高精度测量方法", 微电机, vol. 49, no. 1, 31 January 2016 (2016-01-31), pages 40 - 43 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116101063A (en) * | 2023-02-20 | 2023-05-12 | 丽水方德智驱应用技术研究院有限公司 | A control method for preventing power loss of electric drive system |
| CN116101063B (en) * | 2023-02-20 | 2025-09-09 | 丽水方德智驱应用技术研究院有限公司 | Control method for preventing power loss of electric drive system |
| CN116945904A (en) * | 2023-07-27 | 2023-10-27 | 重庆赛力斯新能源汽车设计院有限公司 | Generator controller fault prompting method and device and new energy automobile |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115580199B (en) | 2026-02-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11356044B2 (en) | Method for detecting motor initial phase and phase sequence and system for controlling permanent-magnet synchronous motor | |
| CN106679710B (en) | Magnetic encoder calibration method and system | |
| CN115580199A (en) | Resolver zero calibration method, device, electronic equipment and storage medium | |
| CN109217758B (en) | Online identification method for rotary transformer zero point, motor controller and storage medium | |
| CN107086835B (en) | Permanent magnet synchronous motor rotation initial zero-potential angle calibration system and calibration method | |
| CN114499290B (en) | Position deviation calibration method, motor driving method, system and device | |
| CN106787995A (en) | A kind of method of testing of electric motors initial position angle of rotor | |
| CN108418492B (en) | A zero calibration method, calibration device and control system for a permanent magnet synchronous motor | |
| CN119178996A (en) | Method for detecting minor faults of rotary transformer of driving motor for vehicle | |
| JP2022028237A (en) | Motor control system | |
| CN115149868A (en) | Zero calibration method and device, electronic equipment and storage medium | |
| CN114487813B (en) | Motor zero position detection method, device, motor controller and storage medium | |
| CN116155170B (en) | Servo diagnosis method, apparatus, device and readable storage medium | |
| CN112985486B (en) | Test method based on BISS encoder zero position detection | |
| CN114172414A (en) | Servo motor initial electrical angle determining method and device and readable storage medium | |
| CN111090043B (en) | Phase-loss detection method and device for electric drive system | |
| CN115267635B (en) | Hall element installation verification method and device, computer equipment and storage medium | |
| CN112197695A (en) | Motor angle measuring method, system, equipment and storage medium | |
| CN112924722A (en) | Method for determining initial position and wiring mode of motor rotor | |
| WO2022041100A1 (en) | Motor correction system | |
| CN119315901A (en) | A motor control parameter correction method, computer program product and motor controller | |
| CN115219946B (en) | A method, apparatus, equipment, and medium for detecting short-circuit faults to ground in motors. | |
| CN118677300B (en) | Motor zero diagnosis method and device of synchronous motor, electronic equipment, readable storage medium, motor and vehicle | |
| CN114337433B (en) | Permanent magnet synchronous motor flux linkage identification method, system, medium and terminal | |
| CN121856779A (en) | Motor phase failure detection method, servo driver, servo system and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
