Permanent magnet synchronous motor control signal chain self-recognition enabling method, device, system and medium

By identifying multi-dimensional configuration errors in the control signal chain of a permanent magnet synchronous motor through low-energy perturbation, automatic identification and safety judgment are achieved before closed-loop activation, solving the problem of incorrect control signal chain combination configuration and improving the safety and debugging efficiency of the motor controller.

CN123184535APending Publication Date: 2026-11-27SHANDU NEW ENERGY TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611426023.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-15
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies cannot systematically and automatically identify multi-dimensional combination configuration errors in the control signal chain of permanent magnet synchronous motors before closed-loop current control is enabled, which may lead to closed-loop operation, causing equipment damage and safety risks.

Method used

The system automatically identifies multi-dimensional configuration errors in voltage output phase sequence, current sampling phase sequence and polarity, angle direction, coordinate transformation direction, and electrical angle zero-position bias through low-energy perturbation. It then uses the perturbation response matrix and confidence level to determine whether closed-loop operation is allowed.

Benefits of technology

Reduce the difficulty of installation and commissioning, improve the safety of motor controller startup and engineering commissioning efficiency, avoid the risk of positive feedback of current loop, and improve commissioning safety by replacing high torque test run with low energy micro-perturbation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184535A_ABST
    Figure CN123184535A_ABST
Patent Text Reader

Abstract

The application discloses a permanent magnet synchronous motor control signal chain self-identification enabling method, device, system and medium. The method enters a low-energy self-checking mode before closed-loop current control is enabled, applies a plurality of groups of low-energy perturbation commands of preset directions to motor windings and collects current responses, bus power responses and / or angle responses to construct a perturbation response matrix; a plurality of candidate signal chain mappings are enumerated, matching scores and confidence levels of the candidate signal chain mappings are calculated according to the perturbation response matrix; when the confidence level of an optimal candidate signal chain mapping meets a preset condition, the signal chain configuration is corrected and the closed-loop current control is enabled, and when the confidence level does not meet the preset condition or a dangerous response is detected, the closed-loop current control is prohibited. The application can automatically identify multi-dimensional combination configuration errors in the control signal chain before the closed-loop is enabled, reduces the difficulty of on-site debugging and improves the safety of motor controller enabling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of motor control technology, and in particular to a method, device, system and medium for self-identification and activation of control signal chain of permanent magnet synchronous motor. Background Technology

[0002] Permanent magnet synchronous motors typically employ vector control methods to achieve high-performance drive. Their complete control chain sequentially includes three-phase current sampling, Clarke transformation, Park transformation, current closed-loop control, inverse Park transformation, and space vector pulse width modulation (SVPWM). A crucial prerequisite for the correct operation of this control chain is the consistency among multiple configuration dimensions, including voltage output phase sequence, current sampling phase sequence and polarity, angle sensor direction, electrical angle zero-point offset, and coordinate transformation direction.

[0003] In practical engineering applications, due to inconsistencies in various factors such as wiring harness connections, sampling channel configuration, inverter phase sequence definition, encoder installation direction, software coordinate conventions, and motor phase sequence identification, multiple configuration dimensions may simultaneously exhibit combined configuration errors. Examples include inconsistencies between the three-phase output phase sequence and the software definition, incorrect current sampling phase sequence connection, reversed polarity of a phase current sampling, encoder angle direction opposite to the motor electrical angle direction, and incorrect electrical angle zero-point offset. These errors are often concealed during open-loop low-energy testing and may not be immediately apparent. However, once they enter closed-loop current control, they can lead to serious consequences such as positive feedback in the current loop, incorrect torque direction, bus overcurrent, startup failure, and even damage to power devices.

[0004] In existing engineering projects, troubleshooting these errors typically relies on manual oscilloscope measurements, single-step open-loop input, manual comparison of phase sequence, and empirical calibration. This method is inefficient and prone to overlooking combined errors when multiple errors coexist. Existing signal injection techniques are mainly used for sensorless estimation, rotor position identification, initial angle detection, or parameter identification. Their focus is on obtaining single physical quantities such as rotor angles or motor parameters. Existing phase sequence detection methods are mostly designed for single phase sequence or reverse reversal judgment.

[0005] In other words, existing technologies have failed to address the same core problem: how to systematically and automatically identify configuration errors in the control signal chain, including voltage output phase sequence, current sampling phase sequence and polarity, angular direction, coordinate transformation direction, and electrical angle zero-point offset, using only low-energy excitation before closed-loop current control is activated, and how to establish a safety gate based on the reliability of the identification results to determine whether closed-loop activation is permitted. This problem allows controllers with configuration errors to directly enter closed-loop operation, leading to equipment damage and safety risks. Summary of the Invention

[0006] The inventors discovered through research that in the vector control system of a permanent magnet synchronous motor, the control signal chain involves multiple interrelated configuration dimensions, including voltage output phase sequence, current sampling phase sequence, current sampling polarity, angle sensor direction, coordinate transformation direction, and electrical angle zero-offset. These multiple dimensions may simultaneously contain configuration errors, and these errors are often concealed during open-loop low-energy testing. However, once they enter closed-loop current control, they can lead to serious consequences such as positive feedback in the current loop, bus overcurrent, and even damage to power devices. Existing signal injection technologies only focus on acquiring single physical quantities such as rotor position estimation or motor parameter identification. Existing phase sequence detection methods can only determine a single phase sequence or rotation direction. Neither can systematically and automatically identify multi-dimensional configuration errors in the control signal chain, including voltage output phase sequence, current sampling phase sequence and polarity, angle direction, coordinate transformation direction, and zero-offset, before closed-loop operation. Furthermore, there is a lack of a safety gate mechanism based on the reliability of the identification results to determine whether closed-loop operation is allowed. This means that existing controllers may still enter closed-loop operation even with multi-dimensional configuration errors, posing a risk of equipment damage or safety accidents.

[0007] In view of the above-mentioned core technical problems, this application provides a method, device, system and medium for self-identification and activation of the control signal chain of a permanent magnet synchronous motor. It can systematically and automatically identify multi-dimensional combination configuration errors of the control signal chain, including voltage output phase sequence, current sampling phase sequence and polarity, angle direction, coordinate transformation direction and electrical angle zero-position offset, using only low-energy perturbations before closed-loop current control is activated. Based on the reliability of the identification results, it determines whether closed-loop operation is allowed, thereby reducing the difficulty of installation and debugging and improving the safety of motor controller activation.

[0008] According to one aspect of this application, a method for self-identifying and enabling a control signal chain of a permanent magnet synchronous motor is provided, comprising: before enabling closed-loop current control, the controller enters a low-energy self-test mode, and in the low-energy self-test mode, limits the torque output and the inverter output voltage amplitude; in the low-energy self-test mode, the controller applies multiple sets of low-energy perturbation commands in preset directions to the motor windings, the multiple sets of low-energy perturbation commands including at least two perturbations in non-collinear directions; the controller collects response data corresponding to each set of low-energy perturbation commands, the response data including current response, bus power response and / or angle response; the controller determines the relationship between the low-energy perturbation commands and the corresponding response data. A perturbation response matrix is ​​constructed; the controller enumerates multiple candidate signal chain mappings, each candidate signal chain mapping including at least one of voltage output phase sequence, current sampling phase sequence, current sampling polarity, angular direction, coordinate transformation direction, and / or electrical angle bias; the controller calculates the matching score and confidence level of each candidate signal chain mapping based on the perturbation response matrix; when the confidence level of the optimal candidate signal chain mapping meets a preset condition, the controller corrects the signal chain configuration based on the optimal candidate signal chain mapping and allows closed-loop current control to be enabled; when the confidence level does not meet the preset condition or a dangerous response is detected during the application of the low-energy perturbation command, the controller disables closed-loop current control.

[0009] In this application, the low-energy perturbation command includes α-axis positive voltage perturbation, α-axis negative voltage perturbation, β-axis positive voltage perturbation, and β-axis negative voltage perturbation; or, the low-energy perturbation command includes d-axis positive voltage perturbation, d-axis negative voltage perturbation, q-axis positive voltage perturbation, and q-axis negative voltage perturbation; wherein, a current decay waiting window is set before and after each group of low-energy perturbation commands is applied.

[0010] In this application, the perturbation response matrix includes at least two of the following: three-phase current increment, αβ coordinate system current increment, d / q coordinate system current increment, bus power increment, and angle change corresponding to each group of low-energy perturbation commands; the controller normalizes the perturbation response matrix to reduce the impact of differences in bus voltage and motor inductance on the identification results.

[0011] In this application, the matching score is calculated based on at least two of the following: the cosine similarity between the measured current response vector and the theoretical expected current response vector corresponding to the candidate signal chain mapping; the matching degree between the sign of the measured bus power and the sign of the theoretical expected bus power corresponding to the candidate signal chain mapping; the matching degree between the measured angle change direction and the theoretical expected angle change direction corresponding to the candidate signal chain mapping; and the fault penalty term when protection is triggered or an anomaly occurs during the application of the low-energy perturbation command.

[0012] In this application, the preset conditions include: the confidence level of the optimal candidate signal chain mapping is higher than a first threshold, and the difference between the matching score of the optimal candidate signal chain mapping and the matching score of the second-best candidate signal chain mapping is higher than a second threshold.

[0013] In this application, after the controller corrects the signal chain configuration according to the optimal candidate signal chain mapping, the method further includes: the controller re-executes at least one set of low-energy acknowledgment perturbations and collects acknowledgment response data; when the acknowledgment response data matches the corrected signal chain configuration, the controller allows closed-loop current control to be enabled; when the acknowledgment response data does not match the corrected signal chain configuration, the controller disables closed-loop current control and outputs a fault code.

[0014] According to another aspect of this application, a self-identification and activation device for the control signal chain of a permanent magnet synchronous motor is provided, comprising: a perturbation injection module configured to apply multiple sets of low-energy perturbation commands in preset directions to the motor windings before closed-loop current control is activated, wherein the multiple sets of low-energy perturbation commands include at least two perturbations in non-collinear directions, and limit the torque output and inverter output voltage amplitude during the perturbation period; a response acquisition module configured to acquire response data corresponding to each set of the low-energy perturbation commands, wherein the response data includes current response, bus power response and / or angle response; a response matrix construction module configured to construct a perturbation response matrix based on the relationship between the low-energy perturbation commands and the corresponding response data; and a candidate mapping array. The algorithm is configured to enumerate multiple candidate signal chain mappings, each candidate signal chain mapping including at least one of voltage output phase sequence, current sampling phase sequence, current sampling polarity, angular direction, coordinate transformation direction, and / or electrical angle bias; the matching scoring module is configured to calculate the matching score and confidence level of each candidate signal chain mapping based on the perturbation response matrix; the safety closed-loop enable module is configured to correct the signal chain configuration and enable closed-loop current control based on the optimal candidate signal chain mapping when the confidence level of the optimal candidate signal chain mapping meets a preset condition, and to disable closed-loop current control when the confidence level does not meet the preset condition or a dangerous response is detected during the application of the low-energy perturbation command.

[0015] According to another aspect of this application, a permanent magnet synchronous motor controller is provided, comprising: a memory for storing computer instructions; and a processor for executing the computer instructions, such that the permanent magnet synchronous motor controller implements the permanent magnet synchronous motor control signal chain self-identification and activation method as described above.

[0016] According to another aspect of this application, a permanent magnet synchronous motor drive system is provided, including a permanent magnet synchronous motor controller as described above; an inverter connected to the permanent magnet synchronous motor controller for outputting three-phase voltage to the permanent magnet synchronous motor windings according to the drive signal of the permanent magnet synchronous motor controller; a current sampling circuit for acquiring the phase current of the permanent magnet synchronous motor and feeding it back to the permanent magnet synchronous motor controller; and an angle sampling interface for acquiring rotor angle information and feeding it back to the permanent magnet synchronous motor controller.

[0017] According to another aspect of this application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement the self-identification and activation method for the control signal chain of a permanent magnet synchronous motor as described above.

[0018] In summary, this application has the following beneficial effects: This application can automatically acquire current, power, and angle responses and construct a perturbation response matrix through low-energy perturbation before closed-loop current control is enabled. It systematically identifies multi-dimensional configuration errors such as voltage output phase sequence, current sampling phase sequence and polarity, angle direction, coordinate transformation direction, and electrical angle zero-position offset through candidate signal chain mapping enumeration and confidence scoring. This reduces the difficulty of installation and commissioning, detects and corrects signal chain errors before closed-loop enablement to reduce the risk of positive feedback in the current loop, uses low-energy perturbation instead of high-torque trial operation to improve commissioning safety, avoids automatic error correction through dual judgment of confidence and separation, outputs diagnostic information to guide manual troubleshooting when self-identification fails, and can be integrated into existing vector controllers in a pure software manner without adding additional hardware, thereby improving the safety of motor controller activation and engineering commissioning efficiency. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a system block diagram of the self-identification and activation method for the control signal chain of the permanent magnet synchronous motor in this application.

[0021] Figure 2 This is a flowchart of the self-identification and activation method for the control signal chain of the permanent magnet synchronous motor in this application.

[0022] Figure 3 This is a schematic diagram of the αβ perturbation command and current response matrix of this application.

[0023] Figure 4 This is a schematic diagram of the candidate mapping enumeration and matching score in this application.

[0024] Figure 5 This is a schematic diagram of the state machine for automatically correcting upon successful identification and prohibiting closed-loop operation upon failure, as described in this application.

[0025] Figure 6 This is a schematic diagram of the electrical angle zero-position bias scoring curve of this application.

[0026] Figure 7 This is a schematic diagram of the module structure of the control signal chain self-identification device of this application.

[0027] Figure 8 This is a schematic diagram of the permanent magnet synchronous motor controller of this application.

[0028] Figure 9 This is a schematic diagram of the permanent magnet synchronous motor drive system of this application. Detailed Implementation

[0029] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this application or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0030] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps described in these embodiments do not limit the scope of this application.

[0031] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0032] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0033] In the vector control system of permanent magnet synchronous motor, the control signal chain involves multiple links such as three-phase current sampling, Clarke transformation, Park transformation, current closed-loop control, inverse Park transformation and SVPWM modulation. The premise for the correct operation of these links is that the configuration dimensions such as voltage output phase sequence, current sampling phase sequence and polarity, angle sensor direction, coordinate transformation direction and electrical angle zero-position offset are consistent.

[0034] In practical engineering applications, due to various factors such as wiring harness connection, sampling channel configuration, inverter phase sequence definition, encoder installation direction, and software coordinate conventions, configuration errors may exist simultaneously in multiple dimensions mentioned above. These errors are concealed during open-loop testing, but once they enter closed-loop current control, they may lead to positive feedback in the current loop, bus overcurrent, or even damage to power devices.

[0035] However, existing signal injection technologies only focus on acquiring single physical quantities such as rotor position estimation or motor parameter identification, and existing phase sequence detection methods can only determine a single phase sequence or rotation direction. Neither can systematically and automatically identify multi-dimensional combination configuration errors of the control signal chain before closed-loop activation.

[0036] This application addresses the aforementioned issues by proposing a method for self-identification and activation of the control signal chain for permanent magnet synchronous motors.

[0037] The present application will be described below through specific embodiments.

[0038] Figure 1 This is a system block diagram of the self-identification and activation method for the control signal chain of a permanent magnet synchronous motor according to this application. Figure 1 As shown, the overall architecture of the control signal chain self-identification system of this application includes an upper layer, a middle layer, and a lower layer.

[0039] The upper layer includes a low-energy perturbation injection module, an inverter and a motor, and a response acquisition module. The low-energy perturbation injection module is responsible for generating positive and negative perturbation commands in the αβ coordinate system or the dq coordinate system. The inverter and the motor, as the objects under test, receive perturbations and generate three-phase outputs and winding responses. The response acquisition module is responsible for acquiring current, power, and angle response data.

[0040] The middle layer includes a response matrix construction module, a candidate mapping enumeration module, and a scoring and security determination module. The response matrix construction module normalizes the response data and subtracts the baseline. The candidate mapping enumeration module enumerates various combinations of phase sequence, polarity, and angle. The scoring and security determination module calculates the confidence and separation.

[0041] The lower layer is divided into two paths: when the judgment result is reliable, it enters the automatic correction mapping module and feeds back to the perturbation injection module through the confirmation perturbation loop for secondary verification; when the judgment result is unreliable or a dangerous response is detected, it enters the prohibition closed loop enable module to save the fault code and output diagnostic suggestions.

[0042] Figure 2 This is a flowchart illustrating the self-identification and activation method of the permanent magnet synchronous motor control signal chain according to this application. Preferably, this embodiment can be executed by the permanent magnet synchronous motor controller or the permanent magnet synchronous motor drive system of this application. Figure 2 As shown, Figure 2The method of the embodiment may include at least one of steps 21 to 28.

[0043] In step 21, before the closed-loop current control is enabled, the controller enters a low-energy self-test mode, in which the torque output and inverter output voltage amplitude are limited.

[0044] In this application, the controller enters a low-energy self-test mode in any of the following scenarios: power-on, initial installation, after maintenance, after calibration command triggering, or before closed-loop enable. Constraints in the self-test mode include: torque commands are limited to zero or a low limit to ensure the motor does not generate significant torque output during the self-test; the inverter output voltage amplitude is limited to a safe range to prevent excessive test voltage from damaging the motor or power devices. The low-energy self-test mode setting ensures that the self-identification process is completed before closed-loop activation and that the self-test process itself does not damage the system.

[0045] In this application, the controller sets parameters such as perturbation voltage amplitude, duration, waiting time, current threshold, bus power threshold, angle change threshold, and self-test timeout when entering the low-energy self-test mode. The perturbation voltage amplitude determines the magnitude of the test voltage, the duration determines the duration of each perturbation application, the waiting time is the current decay waiting time between perturbations to avoid mutual interference between the responses of different groups of perturbations, the current threshold is the maximum allowable current value to trigger safety protection, the bus power threshold is the maximum allowable bus power, the angle change threshold is the maximum allowable rotor angle change, and the self-test timeout is the maximum allowable duration of the entire self-test process to prevent the self-test process from continuing indefinitely.

[0046] In step 22, under the low-energy self-test mode, the controller applies multiple sets of low-energy perturbation commands in preset directions to the motor windings. The multiple sets of low-energy perturbation commands include perturbations in at least two non-collinear directions.

[0047] In this application, the low-energy perturbation command includes positive α-axis voltage perturbation, negative α-axis voltage perturbation, positive β-axis voltage perturbation, and negative β-axis voltage perturbation. Specifically, the controller sequentially injects the following four sets of perturbations when the motor is stationary or at low speed: v1=[+V test [0] represents the voltage along the positive α-axis, and v2 = [-V test [0, 0] represents the voltage along the negative α axis, v3 = [0, +V test [V] represents the voltage along the positive β axis, v4 = [0, -V] test ] represents the voltage along the negative β-axis, where V test This is a low-energy test voltage. Each perturbation lasts for T seconds. test Time, then wait for T decay Time causes the current to decay.

[0048] The significance of positive and negative symmetric perturbation design lies in the fact that by applying positive and negative perturbations in the same axial direction, the symmetry or antisymmetry of the response can be used to further confirm the signal chain mapping relationship. Under correct mapping, positive and negative perturbations should produce responses with opposite directions but similar amplitudes.

[0049] In this application, the low-energy perturbation command includes a positive d-axis voltage perturbation, a negative d-axis voltage perturbation, a positive q-axis voltage perturbation, and a negative q-axis voltage perturbation. The dq coordinate system perturbation is used when the current sampling and voltage output mapping have been identified, and is suitable for further identification of angular direction and zero-point offset.

[0050] In this application, a current decay waiting window is set before and after each group of low-energy perturbation commands is applied to ensure that the residual current of the previous group of perturbations completely dissipates before the next group of perturbations is executed, thereby avoiding mutual interference between the responses of each group of perturbations.

[0051] In this application, the perturbation command can also take the form of combined shaft voltage pulses, high-frequency small-signal sinusoidal perturbations, or square wave perturbations. The perturbation amplitude is lower than the normal drive voltage, and the duration is shorter than the time required to produce significant mechanical rotation, ensuring that the motor does not undergo large displacements during self-testing. The multiple sets of low-energy perturbation commands contain at least two non-collinear directions, that is, at least two linearly independent directions of perturbation are applied in the α / β plane or d / q plane to obtain sufficient information to distinguish various possible mapping combinations.

[0052] In step 23, the controller collects response data corresponding to each group of low-energy perturbation commands, including current response, bus power response and / or angle response.

[0053] In this application, the controller acquires baseline current and angle as reference zero before each perturbation, and acquires response current, bus current, bus voltage and angle changes during or after the perturbation. The baseline value is subtracted from each response to eliminate the influence of static bias and noise floor, ensuring that the response data purely reflects the incremental changes caused by the perturbation excitation.

[0054] In this application, the response data specifically includes at least two of the following seven types of signals: three-phase current increment Δi a , Δi b , Δi c This reflects the current changes in each phase winding; the current increment Δi in the αβ coordinate system. α , Δi β This reflects the current changes along the two axes after the Clarke transformation; the current increment Δi in the d / q coordinate system. d , Δi qThe data includes: current increments reflecting changes in the rotating coordinate system after the Park transformation; DC bus current or bus power increments reflecting power changes observed from the DC power supply side during the perturbation; rotor angle change Δθ reflecting changes in the rotor mechanical angle measured by the encoder or resolver; estimated angle change or encoder angle change, applicable to both sensorless and sensor-equipped scenarios; and protection flags recording whether overcurrent, overvoltage, or drive fault protections were triggered during the perturbation. Different types of response data provide verification information from different angles for the correctness of each link in the signal chain: three-phase current increments directly reflect the mapping relationship and polarity of the current sampling channel; αβ current increments reflect the correctness of the Clarke transformation; d / q current increments reflect the correctness of the Park transformation and angle information; bus power increments provide a verification method independent of the current sampling channel; and angle change provides verification of the angle sensor direction.

[0055] In step 24, the controller constructs a perturbation response matrix based on the relationship between the low-energy perturbation command and the corresponding response data.

[0056] In this application, the perturbation response matrix is ​​constructed as follows: the perturbation command matrix V = [v1, v2, ..., v n ], where v i Let r be the voltage vector of the i-th group of perturbations; the response matrix R = [r1, r2, ..., r n ], where r i These are the corresponding current, power, and angle response vectors. The correspondence between the perturbation command matrix and the response matrix is ​​uniformly organized into a perturbation response matrix, which serves as the basis for subsequent candidate mapping scoring.

[0057] In this application, as Figure 3 As shown, taking the αβ coordinate system perturbation as an example, the perturbation command matrix V contains four sets of test voltage vectors: v1(+α), v2(-α), v3(+β), and v4(-β). The rows of the response matrix R are Δi... α , Δi β ΔP and Δθ, in the ideal case where the signal chain configuration is completely correct, take the values ​​of: Δi α The value is positive at v1, negative at v2, and close to zero at v3 and v4; Δi β The line is close to zero at v1 and v2, positive at v3, and negative at v4; the line ΔP is positive at all four perturbations because voltage perturbations will generate power dissipation on the winding resistance regardless of their direction; the line Δθ is a small value close to zero at all four perturbations because the mechanical rotation generated by low-energy perturbations is minimal.

[0058] In this application, the controller normalizes the perturbation response matrix to reduce the impact of differences in bus voltage and motor inductance on the identification results. The formula for calculating the normalized response matrix is: R n (i)=normalize(r i / max(|v i |,ε)) Where ε is a small constant to prevent division by zero, |v i | represents the magnitude of the i-th group of perturbation voltage vectors.

[0059] Due to the response vector r i The current increment, bus power increment, and angle change have different physical dimensions, and normalization is performed separately according to the response type: For the current increment component, first divide by the corresponding perturbation voltage amplitude to obtain the relative response, then normalize it to a unit direction vector according to the amplitude of the current increment vector itself, retaining the direction information and the relative proportion of each component.

[0060] For the incremental component of bus power, take its sign, or divide it by the square of the perturbation voltage amplitude to eliminate the influence of the difference between bus voltage and perturbation amplitude, and then compare it with the preset reference value calculated in the same way, retaining the sign and relative magnitude information.

[0061] For the angular change component, divide by the angular change threshold to normalize to a dimensionless relative value, while retaining the direction and relative amplitude information.

[0062] The purpose of normalization is to transform the response into a quantity related to direction and relative proportion, making the identification process insensitive to absolute value changes such as bus voltage fluctuations, differences in inductance values ​​of different motors, and differences in sampling channel gain. The normalized response matrix R n This is used to check information in three dimensions: directional consistency, symbol matching, and cross-coupling, for subsequent candidate mapping scoring.

[0063] In step 25, the controller enumerates multiple candidate signal chain mappings, each of which includes at least one of voltage output phase sequence, current sampling phase sequence, current sampling polarity, angular direction, coordinate transformation direction, and / or electrical angle bias.

[0064] In this application, the candidate signal chain mapping covers the following multiple dimensions: The output phase sequence candidates include a total of 6 three-phase permutations: UVW, UWV, VUW, VWU, WUV, and WVU, corresponding to all possible mapping relationships between the three-phase inverter output and the motor windings.

[0065] The current sampling phase sequence candidates include 6 permutations: ABC, ACB, BAC, BCA, CAB, and CBA, which correspond to all possible mapping relationships between the current sampling channel and the actual motor phase.

[0066] The current sampling polarity candidate allows each phase to independently select either forward or reverse polarity, resulting in a total of 8 combinations for the three phases.

[0067] The angle direction candidate is either positive or negative, reflecting that the positive direction definition of the angle sensor may be consistent with or opposite to the direction of the increase of the electric angle of the motor.

[0068] The coordinate system orientation can be either the positive or negative direction of the Clarke / Park transformation.

[0069] The electrical angle zero-position offset candidates are several discrete offset intervals or continuous offset estimates, reflecting the various offset angles that may exist between the encoder zero position and the motor d-axis position.

[0070] The voltage command polarity candidate is either positive or negative.

[0071] In this application, to reduce computational complexity, a hierarchical enumeration strategy is adopted for candidate mappings: the first layer identifies the current sampling phase sequence and polarity, the second layer identifies the voltage output phase sequence, and the third layer identifies the angular direction and zero-position bias. The physical basis of hierarchical enumeration is that the mapping of the current sampling channel can be determined independently of the voltage output phase sequence, while the determination of the angular direction requires the current and voltage mappings to be known. This strategy effectively decomposes the search space of the full combinatorial enumeration, significantly reducing computational complexity.

[0072] In this application, candidate mappings can also be enumerated all at once. The choice of enumeration strategy depends on the computing power and time constraints of the controller.

[0073] It should be noted that there is observational equivalence among some candidate signal chain mappings, that is, two different candidate mappings produce the same or indistinguishable theoretical responses to any perturbation command. For example, the reversal of coordinate transformation direction is equivalent to the interchange of specific current sampling phase sequence and polarity combination. Another example is that the synchronous cyclic rotation of voltage output phase sequence and current sampling phase sequence is equivalent to the 120-degree shift of electrical angle zero offset.

[0074] To avoid recognition failure due to zero separation between equivalent candidates, the controller merges mutually observably equivalent candidate mappings into equivalence classes before scoring. Each equivalence class selects a normalized representative element to participate in scoring and separation calculation. The second-best candidate compared for the second threshold is taken from the highest-scoring candidate in different equivalence classes. Since any correction corresponding to a candidate mapping within the same equivalence class ensures consistent behavior of the corrected signal chain, the controller selects a representative element to perform the correction according to a preset normalization convention. For example, the coordinate transformation direction is fixed to the software default direction, and differences are attributed to phase sequence and polarity dimensions; cyclical differences are attributed to the electrical angle zero-position offset dimension. The correctness of the correction result is verified by a secondary confirmation perturbation. The current sampling mapping described in the hierarchical enumeration strategy is judged independently of the voltage output phase sequence, which is also valid under the aforementioned equivalence class merging principle.

[0075] In step 26, the controller calculates the matching score and confidence level of each candidate signal chain mapping based on the perturbation response matrix.

[0076] In this application, as Figure 4 As shown, for each candidate mapping, the controller maps the measured response matrix to the candidate coordinate system, that is, assumes that the candidate mapping is the shape that the measured response should exhibit when correctly configured, and then compares it with the theoretical response direction corresponding to the candidate mapping.

[0077] like Figure 4 As shown, the input to the scoring process consists of three parallel information sources: the normalized response matrix R. n The measured normalized response, the candidate mapping set H (containing various combinations of phase sequence, polarity, direction, and bias), and the theoretical response E(h) (each candidate mapping corresponds to a set of theoretical predictions) are all incorporated into the matching and scoring module for quantitative comparison.

[0078] The theoretical response E(h) is constructed as follows: based on the ideal response matrix when the signal chain configuration is completely correct, the output phase sequence permutation, current sampling phase sequence permutation, sampling polarity sign reversal, angle direction sign reversal, coordinate transformation direction sign reversal, and electrical angle offset rotation contained in the candidate mapping h are sequentially applied to the ideal response matrix. That is, each candidate mapping corresponds to a certain permutation, sign, and rotation composite linear transformation. The theoretical response can be pre-generated in the offline stage or calculated online as needed to adapt to the storage and computing power constraints of different controllers.

[0079] In this application, the matching score is calculated based on at least two of the following: Cosine similarity between the measured current response vector and the theoretically expected current response vector corresponding to the candidate signal chain mapping; The degree of matching between the sign of the measured bus power and the sign of the theoretically expected bus power corresponding to the candidate signal chain mapping; The degree of matching between the measured angle change direction and the theoretically expected angle change direction corresponding to the candidate signal chain mapping; The low-energy perturbation command is applied during the period when protection is triggered or when an anomaly occurs, and a fault penalty item is applied.

[0080] The specific scoring formula is as follows: score(h) = w i *cos sim (R current ,R expected (h))+w p *sign match (P bus ,P expected (h))+w θ *angle match (Δθ,Δθ expected (h))-w fault *fault penalty .

[0081] Where w i w p w θ and w fault These are the current similarity weight, bus power sign matching weight, angle and direction matching weight, and fault penalty weight, respectively. sim Function to calculate the measured current response vector R current Theoretical expected current response vector R under candidate mapping h expected The cosine similarity between (h) and (h) is a measure of the degree of consistency in the directions of two vectors, with a value ranging from -1 to +1. match Function to determine the measured bus power P bus Does the sign of the positive or negative sign correspond to the theoretical expectation P under the candidate mapping h? expected (h) Consistent, the sign of the bus power provides a verification dimension independent of the current sampling channel.

[0082] It should be noted that for voltage perturbations, as long as the voltage is actually applied to the winding, regardless of the signal chain mapping, a positive power dissipation will be generated across the winding resistance. Therefore, the theoretically expected bus power P expected (h) is always positive when the voltage output is valid. matchThe discriminative function of this item is reflected in two aspects: First, when the measured bus power increment is negative, close to zero, or its relative value after conversion by the square of the perturbation voltage amplitude is significantly lower than the preset reference value, it indicates that the perturbation group has not been effectively applied or the bus sampling is abnormal, such as the bridge arm not being turned on, the drive signal being missing, or the sampling channel being invalid. At this time, the current response corresponding to the perturbation group is unreliable. match The first aspect involves deducting points from all candidate mappings dependent on this set of perturbations and triggering a fault penalty term. Secondly, it involves cross-checking the relative magnitude of the bus power increment with the measured current increment amplitude, ensuring that the bus power dissipation is equivalent to the product of the square of the current increment and the equivalent resistance. This verifies the rationality of the gain and polarity configuration of the current sampling channel. Therefore, the bus power term provides an independent verification of the excitation effectiveness and rationality of the phase current sampling channel, and together with the current cosine similarity term and the angle matching term, constitutes a multi-information source score.

[0083] angle match The function determines whether the direction and magnitude of the measured rotor angle change Δθ match the theoretical expectation Δθ under the candidate mapping h. expected (h) Consistent. fault penalty This is a negative score item; if protection is triggered or an anomaly occurs during the perturbation period, the score of the candidate mapping will be deducted.

[0084] In this application, the matching score can be further normalized to a confidence level: confidence(h)=softmax(score(h) / T) The softmax function is calculated on the score set of all candidate mappings, converting the scores of each candidate mapping into a probability distribution, so that the sum of the confidence scores of all candidate mappings is 1. The candidate mapping with the highest confidence score is the most likely correct signal chain configuration. T is a temperature coefficient used to adjust the sharpness of the confidence distribution. The smaller the value of T, the more significant the difference in confidence scores between the best candidate and the other candidates. The value of T is, for example, 0.02 to 0.2. The first threshold is tuned in conjunction with the value of T.

[0085] In this application, the confidence level can also be directly taken as the matching score mapped by the optimal candidate signal chain, or as the value of the matching score after linear normalization and mapping to the 0-1 interval. In this case, the confidence level and the matching score have the same value scale, and the first threshold is directly adjusted according to the matching score scale.

[0086] like Figure 4 As shown, the scoring results are divided into three categories: the best candidate (highest score, high confidence), the second best candidate (used for uniqueness comparison), and the low-scoring candidate (phase sequence or polarity mismatch, which is eliminated). When the difference between the best score and the second best score is greater than the threshold, the recognition result can be determined to be unique and reliable.

[0087] In this application, the matching score can also employ algorithms such as least squares error, maximum likelihood, Bayesian scoring, or machine learning classifiers. The choice of scoring method depends on the accuracy requirements and implementation complexity.

[0088] In step 27, when the confidence level of the optimal candidate signal chain mapping meets the preset conditions, the controller corrects the signal chain configuration according to the optimal candidate signal chain mapping and enables closed-loop current control.

[0089] In this application, the preset conditions include: the confidence level of the optimal candidate signal chain mapping is higher than a first threshold, and the difference between the matching score of the optimal candidate signal chain mapping and the matching score of the second-best candidate signal chain mapping is higher than a second threshold. A confidence level higher than the first threshold ensures that the optimal candidate mapping is sufficiently reliable, and a matching score difference higher than the second threshold ensures that the optimal candidate mapping has a significant scoring advantage and unique identification result compared to the second-best candidate mapping.

[0090] The formula for calculating the resolution is: separation=score(best)-score(second best ) Where score is the scoring function, best and second. best These are the optimal and second-best candidate mappings, respectively. Separation is the difference between the optimal and second-best matching scores, used to measure the discriminative power of the recognition results. A higher separation indicates that the advantage of the optimal candidate mapping is more obvious and the recognition result is more reliable; a lower separation means that two or more candidate mappings have similar scores, the uniqueness of the recognition result is insufficient, and there may be a risk of misjudgment.

[0091] In this application, the preset conditions also include: the current and bus power do not exceed the safety threshold during the perturbation period, the angle response direction is consistent with the candidate mapping, and no drive protection or hardware failure is triggered. The safety determination is performed using an AND logic gate; failure to meet any one of the conditions will result in determination failure.

[0092] In this application, as Figure 5 As shown, when the confidence level meets the condition, the controller transitions from the mapping identification state to the mapping corrected state and writes the optimal mapping into the operating configuration. The controller's automatic correction software signal chain correction includes: phase sequence mapping (i.e., phase sequence remapping of voltage output and current sampling), sampling polarity (i.e., inversion of current sampling sign), angle direction (i.e., angle sign reversal), coordinate transformation sign (i.e., Clarke / Park transformation direction correction), and zero-position offset compensation (i.e., electrical angle offset correction).

[0093] In this application, after the controller corrects the signal chain configuration according to the optimal candidate signal chain mapping, a secondary confirmation perturbation step is also included. For example... Figure 5 As shown, the controller transitions from the mapped corrected state to the acknowledged perturbation state, executes at least one set of low-energy acknowledged perturbations again, and collects acknowledged response data.

[0094] When the confirmation response data matches the corrected signal chain configuration, the controller transitions from the confirmation perturbation state to the closed-loop enable state, allowing closed-loop current control to be enabled.

[0095] When the confirmation response data does not match the corrected signal chain configuration, the controller enters a closed-loop disabled state, prohibits the activation of closed-loop current control, and outputs a fault code.

[0096] Secondary confirmation perturbation is a safety redundancy measure used to verify that the signal chain after automatic correction is indeed correct, preventing serious consequences caused by erroneous automatic correction.

[0097] In this application, the automatic correction results can be temporarily effective only during the current runtime, or they can be permanently saved to non-volatile memory. Manual confirmation can be required before writing to non-volatile memory.

[0098] In step 28, the controller disables closed-loop current control when the confidence level does not meet the preset condition or when a dangerous response is detected during the application of the low-energy perturbation command.

[0099] In this application, the hazardous response includes at least one of the following: current exceeding a threshold, bus power exceeding a threshold, angle change exceeding a threshold, bus overvoltage, driver failure, or protection triggering. When any of the above hazardous responses is detected during perturbation, the controller directly disables closed-loop operation without waiting for the candidate mapping scoring step to complete.

[0100] In this application, as Figure 5 As shown, when the confidence level does not meet the conditions or a dangerous response is detected, the controller enters a closed-loop disabled state (fault lockout), saves diagnostic data, and outputs fault codes and suggested inspection items to provide engineers with diagnostic information to assist in manual troubleshooting. The closed-loop disabled state can be returned to the non-self-test state or low-energy self-test state through manual inspection or re-self-test, forming a recovery path.

[0101] The embodiments described above in this application enter a low-energy self-test mode before enabling closed-loop current control, apply multi-directional low-energy perturbations and collect multi-dimensional responses, construct a perturbation response matrix, enumerate candidate signal chain mappings and calculate matching scores and confidence levels, and correct signal chains or prohibit closed-loop control based on the confidence level judgment results. This achieves systematic automatic identification of multi-dimensional combination configuration errors of control signal chains and decision-making for enabling safe closed-loop control.

[0102] The following specific embodiments further illustrate the implementation methods of αβ perturbation, angle direction recognition, and zero-position offset recognition in the method of this application.

[0103] In this application, when the controller performs a perturbation in the αβ coordinate system, such as Figure 3 As shown, in an ideal situation where the signal chain configuration is completely correct, the positive α-axis voltage v1 should generate a positive current increment mainly along the α-axis direction, and the positive β-axis voltage v3 should generate a positive current increment mainly along the β-axis direction. The responses of the two sets of perturbations should exhibit good orthogonality, that is, the α-axis perturbation should not produce a significant β-axis current response. If there is an error in the current sampling phase sequence, the measured response will exhibit axis swapping, that is, the α-axis perturbation will produce a β-axis response and the β-axis perturbation will produce an α-axis response; if there is a reverse sampling polarity, the response direction will be opposite to the expectation, that is, a sign reversal phenomenon will occur; if multiple errors are superimposed, an unexpected cross-coupling response will occur. The controller systematically identifies the above errors through the response matrix and candidate mapping scoring system.

[0104] In this application, after the current sampling and voltage output mapping have been identified, the controller injects a low-amplitude q-axis voltage perturbation for angle direction identification. The reason for choosing the q-axis perturbation is that the q-axis voltage generates torque, which causes a change in rotor angle. Therefore, the direction of the angle sensor can be determined by the direction of the angle change. The determination logic is: if the angle change direction generated by the positive q-axis perturbation is opposite to the theoretical direction, then the angle direction needs to be reversed. Safety measures include using a pulsed perturbation with a very short duration, setting a maximum angle change threshold, and immediately stopping the self-test when the threshold is exceeded.

[0105] In sensorless control scenarios, the angle response uses the estimated angle change for scoring: The controller operates a position estimation algorithm in low-energy self-test mode, using only the current and voltage in the αβ coordinate system as input. Since the input current has already undergone the first layer of current sampling phase sequence and polarity identification, and the input voltage has already undergone the second layer of voltage output phase sequence identification correction, this estimation does not depend on the angle direction to be identified and the zero-position offset dimension, thus avoiding cyclic dependence. The controller uses the estimated angle change Δθ... est Substitute the encoder angle change into angle match When the estimated angular signal-to-noise ratio is insufficient to support a reliable decision, the controller will match the angular direction weight w. θ When the value is set to zero, the score is based solely on the cosine similarity of the current response and the bus power term. At this point, the self-identification coverage is correspondingly reduced to the voltage output phase sequence, current sampling phase sequence and polarity, and coordinate transformation direction. The angle-related dimensions are handled by the initial positioning and convergence mechanism of the sensorless algorithm itself. The controller records the unidentified dimensions in the diagnostic information for the upper-layer application to decide whether to allow closed-loop activation.

[0106] In this application, as Figure 6 As shown, the controller calculates the d / q current response decomposition under multiple candidate electrical angle biases for zero-bias identification. That is, under the correct electrical angle zero-bias, the d-axis and q-axis are aligned with the motor's true flux axis and torque axis. At this time, d-axis perturbations should mainly produce d-axis current responses, and q-axis perturbations should mainly produce q-axis current responses, with minimal cross-coupling between the two axes. Combined with the multiple-solution elimination criterion described below, the optimal zero-bias can be uniquely determined.

[0107] The zero-bias scoring formula is: score offset =|Δi d_dtest |+|Δi q_qtest |-k cross *(|Δi q_dtest |+|Δi d_qtest |) Where Δi d_dtest The d-axis current response, or principal spindle response component, generated by the d-axis perturbation is represented by Δi. q_qtest The q-axis current response, or principal axis response component, generated by the q-axis perturbation is represented by Δi. q_dtest The q-axis cross-coupling component, Δi, represents the response generated by the d-axis perturbation. d_qtest The d-axis cross-response, i.e., the cross-coupling component, is represented by k, which is caused by the q-axis perturbation. cross This is the cross-coupling penalty coefficient.

[0108] All the current response components mentioned above are taken as dimensionless relative values ​​after normalization according to step 24, or, under the condition that the perturbations of the d-axis and q-axis have the same perturbation voltage amplitude and duration, the current increment amplitude can be directly substituted. The score varies depending on the method. offset These are only used for relative comparisons between candidate biases within the same scan round; their absolute values ​​do not have independent physical meaning. cross This is a dimensionless coefficient, with values ​​ranging from 1 to 3.

[0109] like Figure 6 As shown, the horizontal axis represents the candidate electrical angle bias θ, and the vertical axis represents the score. offset At the optimal bias θ * The maximum value is obtained at θ, and the cross-coupling curve is at θ. * The minimum value is obtained at this point. The controller selects the score. offset Maximum bias θ * As the optimal electrical angle zero-position offset.

[0110] It should be noted that the above zero-position offset identification based on minimizing cross-coupling utilizes the asymmetry of the magnetic circuits of the motor's d-axis and q-axis: For the d-axis inductance L d With q-axis inductance L qFor built-in or salient-pole permanent magnet synchronous motors with significant differences, the direction of the spindle current response varies with the actual rotor position. offset The scoring curve fluctuates regularly with the candidate biases, which can be used to locate the optimal bias.

[0111] For L d With L q For surface-mount permanent magnet synchronous motors that are nearly identical, the controller appropriately increases the amplitude of the d-axis micro-perturbation and uses the equivalent salient polarity generated by the d-axis magnetic circuit saturation caused by the permanent magnet flux linkage for identification. The increased micro-perturbation amplitude is still limited by the voltage amplitude and current threshold of the low-energy self-test mode.

[0112] Furthermore, relying solely on the cross-coupling minimization criterion, candidate biases differing by 90 degrees or 180 degrees may result in similar scores. To eliminate this ambiguity, the controller incorporates the following auxiliary criteria for determination: Firstly, according to L d With L q By comparing the relative magnitudes of the principal d-axis response components and the principal q-axis response components under each candidate bias, pseudo-solutions that differ by 90 degrees are eliminated. Secondly, positive and negative d-axis perturbations are applied respectively, and the asymmetry of the current response amplitudes of the two is compared. The positive d-axis current exacerbates magnetic circuit saturation, reduces the equivalent inductance, and increases the response amplitude. Based on this, the direction of the N pole of the permanent magnet is determined, and spurious solutions with a 180-degree phase difference are eliminated.

[0113] The above amplitude asymmetry comparison uses the relative current response amplitude after dividing by the perturbation voltage amplitude and without normalizing the unit direction vector, or directly uses the current increment amplitude under the condition that the positive and negative perturbations use the same perturbation voltage amplitude and duration, so as to retain the amplitude information required for discrimination.

[0114] In terms of execution sequence, the controller first completes the zero-position bias scan and the above-mentioned multiple solution elimination when the rotor is stationary, then performs the angle direction determination of the q-axis perturbation, and finally performs overall verification of the corrected complete signal chain configuration through secondary confirmation of perturbation; when the above auxiliary criteria still cannot obtain a unique and reliable zero-position bias, the scoring and safety judgment module determines that the confidence or separation degree does not meet the preset conditions, the controller prohibits the closed-loop current control from being enabled and outputs diagnostic information.

[0115] Furthermore, since the angle sensor reading is constant when the rotor is stationary, the positive and negative signs of the angle direction are absorbed into the zero-position bias constant during the stationary scan. What the zero-position bias scan directly determines is actually the true electrical angle corresponding to the current position of the rotor.

[0116] When the angle direction of the subsequent q-axis perturbation needs to be reversed, the controller recalculates the zero-point offset of the electrical angle according to the actual electrical angle and the current reading of the angle sensor, so that the corrected electrical angle calculation result is consistent with the actual electrical angle. The recalculated angle direction and the zero-point offset, together with the other mapping dimensions, are verified as a whole by the second confirmation perturbation.

[0117] The method of this application will be explained below through specific numerical calculation examples.

[0118] Suppose the following configuration error exists in a permanent magnet synchronous motor control system: the current sampling channels B and C are swapped, and the sampling polarity of the B-phase current is reversed; that is, the B-phase current is sampled by the C sampling channel after the channel is swapped, and the sign is inverted (raw). i_c =-i B The C-phase current was acquired by the B sampling channel and the sign was normal (raw). i_b =+i C Phase A current sampling is normal (raw) i_a =+i A The encoder direction is reversed; the electrical angle offset needs to be increased by 30 degrees (i.e., θ). offset =30 degrees).

[0119] The controller sets the perturbation voltage amplitude V. test =5V, perturbation duration T test =1ms, current decay waiting time T decay =5ms, current threshold I max =2A, bus power threshold P max =50W, angular change threshold Δθ max =1 degree.

[0120] The controller sequentially applies four sets of voltage perturbations in the αβ coordinate system: v1=[+5,0], v2=[-5,0], v3=[0,+5], and v4=[0,-5]. Assume the motor operates at V... test =5V,T test The single-phase current increment generated under the condition of 1ms is approximately 0.8A (corresponding to a phase inductance of approximately 6.25mH). Under correct configuration, v1 should generate [Δi α ,Δi β [+0.8,0], but due to the interchange of current sampling phases B and C and the reverse polarity of phase B, the actual Clarke-transformed current increment deviates from the expected direction.

[0121] The controller constructs the perturbation response matrix R. nThen, enumerate the set of candidate mappings containing phase order, polarity, and angle dimensions. For a correct candidate mapping h* (i.e., B / C interchanged and B phase polarity reversed), the cosine similarity between the theoretically expected response direction and the measured response direction is calculated. sim The cosine similarity is close to +1.0; for other erroneous candidate mappings, the cosine similarity is significantly lower than +1.0 or even negative. Assuming the matching score of the correct candidate h* is score(h*) = 0.95 and the matching score of the second-best candidate is score(h2) = 0.42, then the separation = 0.95 - 0.42 = 0.53. In this example, the confidence score is directly taken as the matching score of the optimal candidate signal chain mapping, i.e., confidence(h*) = score(h*) = 0.95. If the first threshold is set to 0.80 and the second threshold to 0.30, then the confidence score 0.95 > 0.80 satisfies the first threshold condition, the separation score 0.53 > 0.30 satisfies the second threshold condition, and the peak current during the perturbation period is 0.8A < 2A, which does not exceed the safety threshold. Therefore, the controller determines that the self-identification is successful.

[0122] The controller then performs automatic corrections in the software mapping table: i a =raw i_a (The original value of sampling channel A remains unchanged). i b =-raw i_c (The original value of the C sampling channel is inverted and used as the corrected phase B current, from raw...) i_c =-i B Recover i b =i B ), i c =raw i_b (The raw value of sampling channel B is directly used as the corrected phase C current, from raw i_b =+i C Recover i c =i C ), θ e =-θ sensor +30 degrees (the angle is reversed and a 30-degree offset compensation is added).

[0123] After correction, the controller re-executes the low-energy confirmation perturbation to confirm that the response direction of the perturbation is consistent with the corrected signal chain configuration. Once the confirmation is successful, the controller allows closed-loop current control to be enabled.

[0124] The above embodiments of this application demonstrate, through specific numerical examples, the complete working process from perturbation injection, response acquisition, response matrix construction, candidate mapping enumeration, matching score and confidence calculation to automatic correction and secondary confirmation, illustrating the effective identification and safe correction capabilities of the method of this application when there are multi-dimensional combined configuration errors.

[0125] Figure 7 This is a schematic diagram of the module structure of the control signal chain self-identification device of this application. Figure 7 As shown, the permanent magnet synchronous motor control signal chain self-identification and activation device of this application may include a perturbation injection module 710, a response acquisition module 720, a response matrix construction module 730, a candidate mapping enumeration module 740, a matching scoring module 750, and a safety closed-loop activation module 760.

[0126] The perturbation injection module 710 is configured to apply multiple sets of low-energy perturbation commands in preset directions to the motor windings before closed-loop current control is enabled. The multiple sets of low-energy perturbation commands include perturbations in at least two non-collinear directions and limit the torque output and inverter output voltage amplitude during the perturbation.

[0127] The response acquisition module 720 is configured to acquire response data corresponding to each group of low-energy perturbation commands, the response data including current response, bus power response and / or angle response.

[0128] In this application, the response acquisition module 720 is also configured to acquire baseline current and angle as reference zero before each group of perturbations, acquire response signals during or after the perturbation, and subtract baseline values ​​from each group of responses to eliminate the effects of static bias and noise floor.

[0129] The response matrix construction module 730 is configured to construct a perturbation response matrix based on the relationship between the low-energy perturbation command and the corresponding response data.

[0130] In this application, the response matrix construction module 730 is also configured to normalize the perturbation response matrix to reduce the impact of differences in bus voltage and motor inductance on the identification results.

[0131] The candidate mapping enumeration module 740 is configured to enumerate a plurality of candidate signal chain mappings, each of the candidate signal chain mappings including at least one of voltage output phase sequence, current sampling phase sequence, current sampling polarity, angular direction, coordinate transformation direction and / or electrical angle bias.

[0132] In this application, the candidate mapping enumeration module 740 can be configured to adopt a hierarchical enumeration strategy: the first layer identifies the current sampling phase sequence and polarity, the second layer identifies the voltage output phase sequence, and the third layer identifies the angle direction and zero-position bias, so as to reduce computational complexity.

[0133] The matching scoring module 750 is configured to calculate the matching score and confidence level of each candidate signal chain mapping based on the perturbation response matrix.

[0134] In this application, the matching score module 750 is configured to calculate the matching score based on at least two of the following: the cosine similarity between the measured current response vector and the theoretical expected current response vector, the matching degree between the measured bus power sign and the theoretical expected bus power sign, the matching degree between the measured angle change direction and the theoretical expected angle change direction, and the fault penalty term.

[0135] The safety closed-loop enable module 760 is configured to modify the signal chain configuration and enable closed-loop current control according to the optimal candidate signal chain mapping when the confidence level of the optimal candidate signal chain mapping meets a preset condition, and to disable closed-loop current control when the confidence level does not meet the preset condition or a dangerous response is detected during the application of the low-energy perturbation command.

[0136] In this application, the safety closed-loop enable module 760 is also configured to trigger the perturbation injection module 710 to execute at least one set of low-energy confirmation perturbations again after the signal chain configuration is corrected. When the confirmation response data matches the corrected signal chain configuration, the closed-loop current control is enabled, and when they do not match, the closed-loop current control is disabled and a fault code is output.

[0137] In this application, the safety closed-loop enable module 760 is also configured to save diagnostic data and output fault codes, candidate mapping scores and suggested check items when closed-loop current control is disabled, providing engineers with diagnostic information to assist in manual troubleshooting.

[0138] The control signal chain self-identification device provided in the above embodiments of this application, through the coordinated work of the perturbation injection module, response acquisition module, response matrix construction module, candidate mapping enumeration module, matching scoring module and safety closed-loop activation module, realizes the systematic automatic identification of multi-dimensional combination configuration errors of the control signal chain and the decision to activate the safety closed loop before the activation of closed-loop current control.

[0139] Figure 8 This is a schematic diagram of the permanent magnet synchronous motor controller of this application. Figure 8 As shown, the permanent magnet synchronous motor controller 800 of this application includes a memory 810 and a processor 820.

[0140] The memory 810 is used to store computer instructions, and the processor 820 is coupled to the memory 810. The processor 820 is configured to execute the instructions stored in the memory 810 to implement the self-identification and activation method of the permanent magnet synchronous motor control signal chain involved in the above embodiments.

[0141] In this application, the permanent magnet synchronous motor controller 800 also includes a communication interface 830, which is located between the processor 820 and the external device and is configured to receive closed-loop enable requests or self-test commands from the outside via a bus, and to output fault codes and diagnostic information to the external device.

[0142] In this application, memory 810 may include high-speed random access memory and non-volatile memory for storing self-identification results and automatically corrected signal chain configuration parameters. Processor 820 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a field-programmable gate array (FPGA), or one or more integrated circuits configured to implement embodiments of this application.

[0143] The permanent magnet synchronous motor controller provided in the above embodiments of this application implements a method for self-identifying and enabling the control signal chain of a permanent magnet synchronous motor by executing computer instructions in the memory through a processor. It can automatically complete the signal chain configuration verification before the closed-loop current control is enabled, and can be integrated into an existing vector controller without adding additional hardware.

[0144] Figure 9 This is a schematic diagram of the permanent magnet synchronous motor drive system of this application. Figure 9 As shown, the permanent magnet synchronous motor drive system 900 of this application may include a permanent magnet synchronous motor controller 910, an inverter 920, a current sampling circuit 930, and an angle sampling interface 940.

[0145] The permanent magnet synchronous motor controller 910 is the permanent magnet synchronous motor controller described in the above embodiment. It is responsible for executing the permanent magnet synchronous motor control signal chain self-identification and activation method, and after closed-loop activation, it executes the vector control algorithm to output PWM drive signal.

[0146] Inverter 920 is connected to permanent magnet synchronous motor controller 910 and is used to output three-phase voltage to the permanent magnet synchronous motor windings according to the drive signal of permanent magnet synchronous motor controller 910. Inverter 920 includes three-phase half-bridge power devices, which receive the PWM signal corresponding to the low-energy perturbation command during the self-identification process and apply the corresponding low-energy voltage perturbation to the motor windings.

[0147] The current sampling circuit 930 is used to acquire the phase current of the permanent magnet synchronous motor and feed it back to the permanent magnet synchronous motor controller 910. The current sampling circuit 930 may include a Hall sensor, a shunt resistor or other types of current sensor, as well as corresponding signal conditioning circuits and analog-to-digital converter (ADC) channels. During the self-identification process, the current sampling circuit 930 is responsible for acquiring the three-phase current increments caused by each set of perturbation commands and providing them to the controller 910.

[0148] The angle sampling interface 940 is used to acquire rotor angle information and feed it back to the permanent magnet synchronous motor controller 910. The angle sampling interface 940 can be connected to an encoder, resolver, or other angle sensor. During self-identification, the angle sampling interface 940 is responsible for acquiring the rotor angle change caused by perturbations.

[0149] In this application, the permanent magnet synchronous motor drive system 900 may further include a bus voltage sampling circuit and a bus current sampling circuit, used to collect DC bus voltage and bus current to calculate bus power increment, and provide verification information independent of the phase current sampling channel for the self-identification process.

[0150] The permanent magnet synchronous motor drive system provided in the above embodiments of this application, through the coordinated work of the controller, inverter, current sampling circuit and angle sampling interface, completes the automatic identification of multi-dimensional combination configuration errors of the control signal chain and the decision to enable safe closed-loop control before the closed-loop current control is enabled.

[0151] According to another aspect of this application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement the permanent magnet synchronous motor control signal chain self-identification and activation method as described in any of the above embodiments.

[0152] In this application, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a disk storage medium, or a flash memory storage medium.

[0153] The embodiments described above provide a method, apparatus, system, and medium for enabling self-identification of the control signal chain of a permanent magnet synchronous motor. Compared with existing manual debugging or single phase sequence detection schemes, this application has the following technical advantages: It uses the low-energy perturbation response before closed-loop activation for control signal chain topology identification, rather than just for rotor position estimation or single phase sequence detection; it uniformly expresses the relationship between voltage command, current response, power response, and angle response through a response matrix; it simultaneously identifies multi-dimensional combination configuration errors such as voltage output phase sequence, current sampling phase sequence and polarity, angle direction, coordinate transformation direction, and zero-position offset through candidate mapping enumeration; it ensures the uniqueness and reliability of the identification result through dual judgment of confidence level and optimal / suboptimal separation degree; it automatically corrects the software mapping and allows closed-loop when the identification result is reliable, and prohibits closed-loop activation to ensure safety when the identification result is unreliable or a dangerous response is detected; it supports secondary confirmation perturbation after successful identification to reduce the risk of automatic error correction; and it can output candidate scores and fault codes to guide manual troubleshooting when self-identification fails. The method of this application can be integrated into existing vector controllers in a pure software manner without adding additional hardware, and has good engineering practicality and promotional value. This application is applicable not only to permanent magnet synchronous motors, but also to synchronous reluctance motors, brushless DC motors, and other motor drive systems employing three-phase inverters and vector control. The self-identification process can be performed in a stationary state, a low-speed open-loop state, or a maintenance diagnostic mode, and is suitable for both sensor-based and sensorless control scenarios.

[0154] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable non-transitory storage media containing computer-usable program code.

[0155] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0156] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0157] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0158] The description in this application is given for illustrative purposes and is not intended to be exhaustive or to limit the application to the forms disclosed. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described to better illustrate the principles and practical application of this application and to enable those skilled in the art to understand this application and design various embodiments with various modifications suitable for a particular purpose.

Claims

1. A method for self-identification and activation of the control signal chain of a permanent magnet synchronous motor, characterized in that, include: Before closed-loop current control is enabled, the controller enters a low-energy self-test mode, which limits the torque output and inverter output voltage amplitude. In the low-energy self-test mode, the controller applies multiple sets of low-energy perturbation commands in preset directions to the motor windings. The multiple sets of low-energy perturbation commands include perturbations in at least two non-collinear directions. The controller collects response data corresponding to each group of low-energy perturbation commands, and the response data includes current response, bus power response and / or angle response. The controller constructs a perturbation response matrix based on the relationship between the low-energy perturbation command and the corresponding response data. The controller enumerates multiple candidate signal chain mappings, and each candidate signal chain mapping includes at least one of voltage output phase sequence, current sampling phase sequence, current sampling polarity, angular direction, coordinate transformation direction and / or electrical angle bias. The controller calculates the matching score and confidence level of each candidate signal chain mapping based on the perturbation response matrix; When the confidence level of the optimal candidate signal chain mapping meets the preset conditions, the controller corrects the signal chain configuration according to the optimal candidate signal chain mapping and enables closed-loop current control. The controller disables closed-loop current control when the confidence level does not meet the preset condition or when a dangerous response is detected during the application of the low-energy perturbation command.

2. The method for self-identification and activation of the control signal chain of a permanent magnet synchronous motor according to claim 1, characterized in that, The low-energy perturbation command includes positive α-axis voltage perturbation, negative α-axis voltage perturbation, positive β-axis voltage perturbation, and negative β-axis voltage perturbation; or, the low-energy perturbation command includes positive d-axis voltage perturbation, negative d-axis voltage perturbation, positive q-axis voltage perturbation, and negative q-axis voltage perturbation; wherein, a current decay waiting window is set before and after each group of low-energy perturbation commands is applied.

3. The method for self-identification and activation of the control signal chain of a permanent magnet synchronous motor according to claim 1, characterized in that, The perturbation response matrix includes at least two of the following for each low-energy perturbation command: three-phase current increment, αβ coordinate system current increment, d / q coordinate system current increment, bus power increment, and angle change. The controller normalizes the perturbation response matrix to reduce the impact of differences in bus voltage and motor inductance on the identification results.

4. The method for self-identification and activation of the control signal chain of a permanent magnet synchronous motor according to claim 1, characterized in that, The matching score is calculated based on at least two of the following: Cosine similarity between the measured current response vector and the theoretically expected current response vector corresponding to the candidate signal chain mapping; The degree of matching between the sign of the measured bus power and the sign of the theoretically expected bus power corresponding to the candidate signal chain mapping; The degree of matching between the measured angle change direction and the theoretically expected angle change direction corresponding to the candidate signal chain mapping; The low-energy perturbation command is applied during the period when protection is triggered or when an anomaly occurs, and a fault penalty item is applied.

5. The method for self-identification and activation of the control signal chain of a permanent magnet synchronous motor according to claim 1, characterized in that, The preset conditions include: the confidence level of the optimal candidate signal chain mapping is higher than a first threshold; and the difference between the matching score of the optimal candidate signal chain mapping and the matching score of the second-best candidate signal chain mapping is higher than a second threshold.

6. The method for self-identification and activation of the control signal chain of a permanent magnet synchronous motor according to claim 1, characterized in that, After the controller corrects the signal chain configuration according to the optimal candidate signal chain mapping, it further includes: The controller executes at least one set of low-energy acknowledgment perturbations again and collects acknowledgment response data; When the confirmation response data matches the corrected signal chain configuration, the controller allows closed-loop current control to be enabled; When the confirmation response data does not match the corrected signal chain configuration, the controller disables closed-loop current control and outputs a fault code.

7. A self-identification and activation device for the control signal chain of a permanent magnet synchronous motor, characterized in that, include: The perturbation injection module is configured to apply multiple sets of low-energy perturbation commands in preset directions to the motor windings before closed-loop current control is enabled. The multiple sets of low-energy perturbation commands include at least two perturbations in non-collinear directions and limit the torque output and inverter output voltage amplitude during the perturbation. The response acquisition module is configured to acquire response data corresponding to each group of low-energy perturbation commands, the response data including current response, bus power response and / or angle response; The response matrix construction module is configured to construct a perturbation response matrix based on the relationship between the low-energy perturbation command and the corresponding response data. The candidate mapping enumeration module is configured to enumerate a plurality of candidate signal chain mappings, each of the candidate signal chain mappings including at least one of voltage output phase sequence, current sampling phase sequence, current sampling polarity, angular direction, coordinate transformation direction and / or electrical angle bias. The matching scoring module is configured to calculate the matching score and confidence level of each candidate signal chain mapping based on the perturbation response matrix; The safety closed-loop enable module is configured to modify the signal chain configuration and enable closed-loop current control when the confidence level of the optimal candidate signal chain mapping meets a preset condition, and to disable closed-loop current control when the confidence level does not meet the preset condition or a dangerous response is detected during the application of the low-energy perturbation command.

8. A permanent magnet synchronous motor controller, characterized in that, include: Memory, used to store computer instructions; A processor is configured to execute the computer instructions, causing the permanent magnet synchronous motor controller to implement the permanent magnet synchronous motor control signal chain self-identification and activation method as described in any one of claims 1 to 6.

9. A permanent magnet synchronous motor drive system, characterized in that, include: The permanent magnet synchronous motor controller as described in claim 8; An inverter, connected to the permanent magnet synchronous motor controller, is used to output three-phase voltage to the permanent magnet synchronous motor windings according to the drive signal of the permanent magnet synchronous motor controller; A current sampling circuit is used to collect the phase current of the permanent magnet synchronous motor and feed it back to the permanent magnet synchronous motor controller; An angle sampling interface is used to collect rotor angle information and feed it back to the permanent magnet synchronous motor controller.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the self-identification and activation method for the control signal chain of a permanent magnet synchronous motor as described in any one of claims 1 to 6.