scieee AI-readable full text Open interactive document viewer

Diagnostics of Interturn Short Circuits in PMSMs With Online Fault Indicators Estimation

Zezula, Lukáš; Kozovský, Matúš; Blaha, Petr

Abstract

This article presents novel model-based diagnostics of interturn short circuits in permanent magnet synchronous machines that enable estimating fault location and its severity, even during transients. The proposed method utilizes recursive parametric estimation and model comparison approaches cast in a decision-making framework to track motor parameters and fault indicators from a machine's discrete-time model. The discrete-time prototype is derived from an advanced motor model that reflects the stator winding arrangement in a motor's case. The fault detection is then performed by tracking the changes in the estimated probability density function of the electrical parameters, using the Kullback-Leibler divergence. The fault location is subsequently evaluated by performing a recursive comparison of the predefined fault models in the different phases, utilizing a growing-window approach. Ultimately, a parametric estimation algorithm applied to the fault current model allows identifying the fault severity. The diagnostic algorithm has been validated via laboratory experiments, and its capabilities are compared with other approaches enabling severity estimation.

Full text

IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS 1 Diagnostics of Interturn Short Circuits in PMSMs With Online Fault Indicators Estimation Lukas Zezula , Matus Kozovsky , and Petr Blaha Abstract—This article presents novel model-based diagnostics of interturn short circuits in permanent magnet synchronous machines that enable estimating fault location and its severity, even during transients. The proposed method utilizes recursive parametric estimation and model comparison approaches cast in a decision-making framework to track motor parameters and fault indicators from a machine’s discrete-time model. The discrete-time prototype is derived from an advanced motor model that reflects the stator winding arrangement in a motor’s case. The fault detection is then performed by tracking the changes in the estimated probability density function of the electrical parameters, using the Kullback–Leibler divergence. The fault location is subsequently evaluated by performing a recursive comparison of the predefined fault models in the different phases, utilizing a growing-window approach. Ultimately, a parametric estimation algorithm applied to the fault current model allows identifying the fault severity. The diagnostic algorithm has been validated via laboratory experiments, and its capabilities are compared with other approaches enabling severity estimation. Index Terms—Discrete-time systems, fault detection, fault diagnosis, fault location, parameter estimation, permanent magnet motors, recursive estimation. I. INTRODUCTION PERMANENT magnet synchronous machines (PMSMs) are commonly used in robotics, industrial drives, and vehicular propulsions, where they must endure factors, such as vibration, moisture, and high temperatures. These effects constitute potential fault sources; thus, for example, a short circuit Manuscript received 18 September 2023; revised 8 December 2023 and 18 January 2024; accepted 1 February 2024. This work was supported in part by Czech Science Foundation through the Analysis of Discrete and Continuous Dynamical Systems with Emphasis on Identification Problems Grant 23-06476S, in part by European Union through the project Robotics and Advanced Industrial Production under Grant CZ.02.01.01/00/22_008/0004590, in part by AI4CSM: Automotive Intelligence for/at Connected Shared Mobility under Grant 101007326/8A21013, in part by the Ministry of Education, Youth and Sports of the Czech Republic and Chips Joint Undertaking (Chips JU), in part by the infrastructure of RICAIP through the European Union’s Horizon 2020 research and innovation programme under Grant 857306, in part by the Ministry of Education, Youth and Sports under OP RDE Grant CZ.02.1.01/0.0/0.0/17_043/0010085, and in part by the Brno City Municipality. (Corresponding author: Lukas Zezula.) The authors are with the CEITEC - Central European Institute of Technology, Brno University of Technology, 612 00 Brno, Czech Republic (e-mail: lukas.z[email protected].cz). Color versions of one or more figures in this article are available at https://doi.org/10.1109/TIE.2024.3363775. Digital Object Identifier 10.1109/TIE.2024.3363775 in the stator winding can be attributed to thermal degradation between the coil turns. Due to a low short-circuit impedance and an increased voltage amplified by coupled flux linkages, a significant fault current flows through the interturn short circuit (ISC), raising the current in the entire stator phase, generating heat, and further contributing to insulation material degradation [1],[2]. The resulting self-heating can ultimately lead to the machine’s breakdown and eventual fire, producing a demand for responsive and dependable fault diagnostics and compensation. Fault diagnostics recognize two main areas [3],[4]: signal analysis-based principles, which rely on expert knowledge [5], [6] or artificial intelligence [7],[8], and model-based diagnostics, which utilize different types of models and observers [9], [10]. Competing with established diagnostics requires novel algorithms to confront critical challenges as highlighted in [4]. These criteria suggest that novel diagnostics must be computationally efficient, capable of real-time operation, exclusively based on control structure signals, functionable even during transient states, and capable of extracting fault indicators in each feasible operating point, all without additional hardware extensions. Attaining such demands with a single diagnostic algorithm enables the advanced fault mitigation methods [11], [12],[13],[14] to function, thus enhancing the fault-tolerant control capabilities. Currently, most ISC diagnostic algorithms, which aim to extract fault indicators, such as severity and location, do not adhere to the abovementioned requirements, as they do not operate during transients [15],[16],[17],[18],[19] and need additional hardware [20]. The neural network-based algorithm [21] comes closest to meeting the specified criteria; yet, as the algorithm was not implemented into an embedded device, its efficiency and hardware requirements remain unknown. This article aims to design an efficient parametric estimation-based diagnostic algorithm that facilitates rapid detection of ISCs, along with precise extraction of their locations and severity, even during transients and different operating conditions; thus, the critical requirements of modern diagnostics are addressed. Unlike the existing parametric estimation-based diagnostic methods [22], [23], our solution exploits a discrete-time model and employs techniques cast in a decision-making framework [24],[25], [26],[27]. The Bayesian approach offers several advantages over the traditional parametric estimation methods (such as the prediction error ones [28]); for instance, the approach mitigates the problems associated with the estimator efficiency, unbiasedness, and credibility interval. In addition, the Bayes-based algorithms © 2024 The Authors. This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see http://creativecommons.org/licenses/by/4.0/ This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. 2IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS naturally incorporate regularization effects, helping to prevent overfitting and to enhance the model generalization. Furthermore, by providing uncertainty estimates through posterior distribution, the framework allows data-informed decision-making applicable to fault diagnostics. The rest of this article is organized as follows. Section II focuses on the discrete-time modeling of a PMSM with an ISC. Section III discusses the algorithm design and its applicability. The diagnostic algorithm is then validated in Section IV via laboratory experiments. Finally, Section Vconcludes this article. II. DISCRETE-TIME MODEL The mathematical modeling of PMSMs under an ISC was previously described by Zezula [29]. Considering a motor with close rotor reference frame inductances Ld=Lq=Ls,the mathematical model reads iα iβ=1010 0101 iα,h iβ,h iα,f iβ,f T (1a) d dtiα,h iβ,h=−Rs Lsiα,h iβ,h+1 Lsuα uβ+ωeλpm Lssin(θe) −cos(θe) (1b) d dtiα,f iβ,f =−R∗ f Lfiα,f iβ,f +x2 f n2 sLf Φuα uβ(1c) where iα,iβand uα,uβare the stator reference frame currents and voltages, respectively, iα,h,iβ,h and iα,f ,iβ,f denote the contributions by the healthy model (1b) and the short-circuit current components (1c) to the stator reference frame (α−β) currents, respectively, and ωe,θestand for the electrical angular velocity and angle, respectively. The parameters Rs,Ls, and λpm represent the equivalent stator resistance, inductance, and permanent magnet flux linkage. In (1c), the parameters R∗ f and Lfare set as in R∗ f=(1−3np)Rs x2 f n2 s +3npRs xf ns +3Rf(2a) Lf=2 x2 fnp(ns−1) n2 s Ls(2b) where the constants npand nsare related to the stator winding connection and distribution inside the motor’s case, respectively. Generally, npdescribes the number of parallel-connected stator winding branches, and nsstands for the number of coils in series in each stator branch. The described stator winding connection that contains an ISC is shown in Fig. 1. The fault-related parameters Rfand xfthen stand for the short-circuit resistance and fault severity, respectively, quantifying the proportion of shorted turns to total turns within the coil segment. The short circuits in the different stator phases are then distinguished in (1c) by the matrix Φ, described as in Φ=1+cos(φ)−sin(φ) −sin(φ)1−cos(φ)(3) Fig. 1. Phase awinding under an ISC fault. where φ={0,2π/3,−2π/3}, if the ISC is in phase {a, b, c}. The relationship between the fault current ifand its contributions iα,f and iβ,f to the α−βcurrents reads iα,f =2xf 3ns cos φ 2ifiβ,f =−2xf 3ns sin φ 2if.(4) As the parametric estimation methods mainly rely on discretetime models [28], the continuous-time equations (1b) and (1c) must be discretized, necessitating analysis of the input signals between the sampling intervals. Voltage control in the stator variables (abc) is achieved through inverter switching, also reflected in α−βdue to the linear Clarke’s transformation. However, adjusted current sampling allows suppressing the pulsewidth modulation distortion, enabling description with constant voltages over the sampling period. We have uα(t)=uα(k−1) (k−1)Ts≤t<kT s uβ(t)=uβ(k−1) (k−1)Ts≤t<kT s(5) where trepresents the time, Tsdenotes the sampling period, and kstands for the current step of the discrete-time equivalent. In scenarios involving PMSMs, the angle is sampled concurrently with the stator currents. The frequency at which the angle is sampled is essential, as it controls its availability in the rotor reference frame transformation. Therefore, the sampling rate tailored to the dynamics of the current loop is excessively high for a slower mechanical subsystem, and only minimal velocity variations occur during one sampling period, enabling the following velocity ωe(t)=¯ωeapproximation: ¯ωe=ωe(k)+ωe(k−1) 2(k−1)Ts≤t<kT s.(6) The approximation assumes that ωe(t)is constant over the sampling period, leading to the linear angle. Thus, by approximating the inputs (5) and (6), the discrete-time equivalent of the shorted motor’s model formulated as the linear time-invariant system (1a)–(1c) reads (7a)–(8c), where σ={α, β},(7a), and (7b) describe the motor’s behavior before the short circuit, and (8a)–(8c) express the distortion in the stator reference frame currents that results from an ISC. III. DIAGNOSTIC ALGORITHM The diagnostic algorithm covers the following three parts. 1) Tracking the healthy machine behavior: To estimate the series resistance, inductance, and permanent magnet flux linkage (motor parameters). This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. ZEZULA et al.: DIAGNOSTICS OF INTERTURN SHORT CIRCUITS IN PMSMS WITH ONLINE FAULT INDICATORS ESTIMATION 3 2) Fault detection: Determining whether and when a fault has occurred. 3) Estimating the fault indicators: Such as the fault severity and location (which phase is shorted). A. Tracking the Healthy Machine Behavior Typically, vector control is implemented in driving alternate current machines, employing several closed control loops to regulate the angular velocity and electromagnetic torque effectively. Due to the closed-loop control, the model’s inputs have limited persistence. For example, in the steady state, the stator reference frame voltages are harmonic signals whose frequency corresponds to the electrical angular velocity, enabling estimation of not more than two parameters in the model [28]. Therefore, it is desirable to identify the electrical parameters of the motor out of (7a) and (7b) before a fault occurs. Once a short circuit has been detected, the estimated parameters become usable as fixed values instead of retracking, resulting in reduced persistence requirements for the input signals. Several facts have to be considered when selecting an estimation algorithm. First, in the steady state, the inputs possess a persistence to estimate only two parameters; however, the healthy model has three parameters. The information obtained during the transients must therefore be used to identify the parameters correctly. Consequently, an estimation strategy with fixed exponential forgetting would result in inaccurate parameter assessment in the steady state. In contrast, the electrical parameters of a motor are generally time varying; for instance, the inductance decreases with increasing current due to the occurrence of magnetic saturation. Exponential forgetting thus accelerates the parameter adjustment. The parametric estimation algorithm with variable exponential forgetting described by Dokoupil and Václavek [24] fulfills the contradictory requirements of exponential forgetting. Moreover, the constraints presented in [24] make the estimator robust to poor system excitation. As shown in (7a) and (7b), the estimation uses a pseudolinear model, where vα(k,k −1) and vβ(k,k −1) are calculated based on the previously identified Θh,α and Θh,β.Asamotor may exhibit an asymmetry in the stator windings, updating vα(k,k −1) and vβ(k,k −1) with the corresponding parameters Θh,α and Θh,β is crucial; importantly, the parameters Algorithm 1: Estimating the Electrical Parameters. 1: Initialization: 2: Set up the constrained terms Ξ, tuning factor ζ∈(0,1), and lower bound of the forgetting factor α∈(0,1). The applied initialization: Ξ=0.7I3×3, ζ=0.42,α=0.95. 3: init_done ←false 4: if ω∗ e(k−1) =ω∗ e(k)and ¯ωe== 0 then 5: /* Start if the velocity is zero and its setpoint ω∗ ehas changed (use transients for the initial guess) */ 6: init_done ←true 7: end if 8: Electrical parameter estimation: 9: while |¯ωe|>0and init_done do 10: Calculate vα(k,k −1) and vβ(k,k −1) as in (7b), using the current ¯ωe(6) and parameters estimated in the previous step Θh,α(k−1) and Θh,β (k−1). 11: Execute the step of two independently running algorithms [24] to obtain the current estimations of the electrical parameters Θh,α(k)and Θh,β (k)out of the α−βcurrents model (7a). 12: end while . are estimated independently. A similar statement holds also for evaluating transformations (8b) and (8c). In conventional practice, ensuring the stability of a pseudolinear estimator involves establishing a dependable initial parameter guess. However, if ¯ωe→0, the signals vα(k,k −1) and vβ(k,k −1) have a negligible impact on iα,h(k)and iβ,h(k). Consequently, the initial parameters can be arbitrarily chosen if the parametric estimation initiates in the operating point close to ωe=0.The parameter tracking algorithm reads Algorithm 1. B. Fault Detection The algorithm presented by Dokoupil and Václavek [24] estimates the statistics of the identified parameter’s Normal–Wishart (NW) probability distribution function (PDF) f(Θ,d)= N(Θ,V−1/d)W(Σ,ν), where Θstands for the vector of identified parameters, Vis the information matrix—inverse of a covariance matrix normalized by the noise precision d,Σdenotes iσ,h(k)=iσ,h(k−1) uσ(k−1) vσ(k,k −1)e−Rs LsTs1−e−Rs LsTs Rs λpm LsT =hT h,σΘh,σ (7a) vα(k,k −1) vβ(k,k −1)=¯ωe R2 s L2 s+¯ω2 ee−Rs LsTscosθe(k−1)−sinθe(k−1) sinθe(k−1)cosθe(k−1)−cosθe(k)−sinθe(k) sinθe(k)cosθe(k)¯ωe Rs Ls(7b) ˜ iα(k) ˜ iβ(k)=e− R∗ f LfTs˜ iα(k−1) ˜ iβ(k−1)+x2 f n2 s 1−e− R∗ f LfTs R∗ f Φ˜uα(k−1) ˜uβ(k−1)(8a) ˜ iσ(k)=iσ(k)−iσ(k−1) uσ(k−1) vσ(k,k −1)Θh,σ (8b) ˜uσ(k)=uσ(k)−e−Rs LsTsuσ(k−1) (8c) This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. 4IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS the least square reminder, and νrepresents the number of the degrees of freedom. After an ISC occurs, the stator reference frame currents are distorted by the short-circuit current contributions, as in (8a)–(8c). The rapid change in the measured currents is then reflected in the Normal–Wishart statistics updated in each step, and the PDF does not fit its previous estimate. The difference between PDFs is typically assessed via the Kullback–Leibler divergence. As mentioned by Dokoupil and Václavek [24],the divergence between the two Normal–Wishart PDFs f1(Θ,d)and f2(Θ,d)reads DKL (f1(Θ,d)||f2(Θ,d)) = 1 2ln |V1| |V2|+1 2tr V2V−1 1 +lnΓν2 2 Γν1 2−n 2+ν2 2ln Σ1 Σ2−ν1 2Σ1−Σ2 Σ1 +ν1 2Σ1 (Θ1−Θ2)TV2(Θ1−Θ2)+ν1−ν2 2Ψν1 2(9) where nstands for the dimension of the square matrix Vn×n, and the gamma and digamma functions are replaced by their asymptotic approximations as in Γν 2≈e−ν 2ν 2ν−1 2√2πΨν 2≈ln ν 2−1 ν.(10) If the motor winding does not contain an ISC, it follows the healthy model (7a) and (7b), and the estimation of the parameters’ PDF converges to an exact PDF. The convergence assumption is described as follows: ε[DKL (fe||fc)] ≤ε[DKL (fe||fp)] (11) where ε[x]is the expectation of x,fedenotes the exact PDF of the model’s parameters, fcrepresents the currently estimated parameters’ PDF, and fpis the previously estimated parameters’ PDF. The divergence expectations (11) can be then modeled by the following convex combinations of admissible realizations: ε[DKL (fe||fc)] = ¯pDKL (fc||fc)   0 +pDKL (fp||fc) ε[DKL (fe||fp)] = ¯pDKL (fc||fp)+pDKL (fp||fp)   0 (12) where ¯p=1−pexpresses the probability that fcis the best projection of fe, and prepresents the probability that fpis the best projection of fe. Suppose the parametric estimation algorithm defined in Section III-A has been running for a long time; the PDFs fcand fpthen nearly correspond to each other, and the inequality in (11) can be replaced with equality. The probability pthen writes p=DKL (fc||fp) DKL (fc||fp)+DKL (fp||fc)≈0.5.(13) Conversely, if a short circuit occurs, the uncertainty of the currently estimated PDF fcincreases compared with the previously estimated PDF fp. Thus, the inequality (11) does not apply, and the probability pgrows above 0.5 (the previously estimated PDF fpdescribes the exact PDF femore reliably than fc). The fault presence is then indicated by an excess of p, the probability Algorithm 2: Detecting the Fault Occurrence. 1: Initialization: 2: Set up the length of the time delay (in steps) δand the uncertainty interval ξ. The applied initialization: δ=10,ξ=0.015. 3: ISC ←false 4: Fault detection: 5: while not(ISC)do 6: /* For both estimated models σ={α, β}:*/ 7: Acquire the statistics Θh,σ(k−δ),Vσ(k−δ), νσ(k−δ), and Σσ(k−δ)of the previously estimated PDF fp,σ. 8: Acquire the statistics Θh,σ(k),Vσ(k),νσ(k), and Σσ(k)of the currently estimated PDF fc,σ. 9: Evaluate DKL(fc,σ||fp,σ)and DKL(fp,σ||fc,σ)as in (9) and the probability pσas in (13). 10: Calculate the joint probability pα∩β=pαpβ. 11: if pα∩β>0.25 + ξthen 12: ISC ←true and Θh,σ(k)←Θh,σ(k−δ) 13: end if 14: end while . rising above the defined value greater than 0.5. As the required statistics are independently estimated for both of the α−β model parts in Algorithm 1, we investigate the surpassing of the joint probability beyond 0.25. The fault detection Algorithm 2 C. Estimating the Fault Indicators As seen in (8a), the faults in the different stator phases are distinguished by the matrix Φ, defined in (3). Since φcan achieve only three values (0, 2π/3, and −2π/3), identifying φby a parametric estimation algorithm is unnecessary. Instead, note that the short-circuit current contributions mentioned in (4) depend on cos(φ/2) and −sin(φ/2). A similar dependence also holds for the remainders ˜ iαand ˜ iβ. Then, the following transformation can be evaluated: ˆ if(k, ˆ φ) ˆ i0(k, ˆ φ)=⎡ ⎣ cos ˆ φ 2−sin ˆ φ 2 sin ˆ φ 2cos ˆ φ 2⎤ ⎦˜ iα(k) ˜ iβ(k) =R(ˆ φ)⎡ ⎣ cos φ 2 −sin φ 2⎤ ⎦˜ if(k)=⎡ ⎣ cos ˆ φ−φ 2 −sin ˆ φ−φ 2⎤ ⎦˜ if(k)(14) where ˆ φstands for the guess of the parameter φ.Ifˆ φ=φ, then ˆ if(k,φ)=˜ if(k)andˆ i0(k,φ)=0. Hence, the fault location can be determined by comparing the probabilities of the hypotheses ˆ i0,a(k,φa=0)=0,ˆ i0,b(k,φb=2π/3) = 0, and ˆ i0,c(k,φc= −2π/3) = 0. An algorithm to assign the probabilities of Kalman filters based on the Bayesian inference was derived by Dokoupil et al. [25]. As comparing a measured signal with zero value is an application case of Kalman filtering, the probabilities of the previously mentioned hypotheses can be assigned as follows: This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. ZEZULA et al.: DIAGNOSTICS OF INTERTURN SHORT CIRCUITS IN PMSMS WITH ONLINE FAULT INDICATORS ESTIMATION 5 Fig. 2. One step in the fault diagnostic procedure. pj(k+1)= Σj(k)−1 21+ˆ i0,j (k+1,φj)2 Σj(k)−ν(k)+1 2pj(k) i∈{a;b;c}Σi(k)−1 21+ˆ i0,i(k+1,φi)2 Σi(k)−ν(k)+1 2pi(k) (15) where Σj(k+1)and ν(k+1)are updated as in Σj(k+1)=Σ j(k)+ˆ i0,j(k+1,φ j)2 ν(k+1)=ν(k)+1.(16) The information on the fault location can then be utilized to form a difference equation describing ˜ if.Wehave ˜ if(k)=cosφ 2˜ iα(k)−sin φ 2˜ iβ(k)(17a) ˜uf(k)=cosφ 2˜uα(k)−sin φ 2˜uβ(k)(17b) ˜ if(k)=˜ if(k−1) ˜uf(k−1)⎡ ⎢ ⎢ ⎣ e− R∗ f LfTs 2x2 f n2 s 1−e− R∗ f LfTs R∗ f ⎤ ⎥ ⎥ ⎦   Θf .(17c) Note that, according to (2a) and (2b), by using the estimated Θf, the parameters xfand Rfcannot be distinguished from each other. In this article, the fault severity is therefore estimated assuming a zero ISC resistance xf(Rf=0Ω). Furthermore, as the computation of xfdepends on Rs, separately estimated for both of the α−βcomponents, we are transforming Rsfrom α−βto abc and utilizing the output linked to the fault location φ. The fault indicators are estimated by the following algorithm. Fig. 2then depicts one step of the diagnostic algorithm executed in each sampling period. D. Applicability of the Diagnostic Algorithm The designed diagnostics are primarily dedicated to PMSMs with concentrated windings and close rotor reference frame inductances (surface-mounted PMSMs). By reflecting a universal Algorithm 3: Estimating the Fault Indicators. 1: Initialization: 2: Set up the initial probabilities pa=1/3,pb=1/3, and pc=1/3, least square reminders Σa=Σ b=Σ c=1, and number of the degrees of freedom ν=1. 3: Initialize the parametric estimation algorithm [24] similarly to Algorithm 1. The applied initialization: Ξ=I2×2,ζ=0.05,α=0.95. 4: Fault indicator estimation: 5: while |¯ωe|>0do 6: Calculate ˆ i0,a(k,φa),ˆ i0,b(k,φb), and ˆ i0,c(k,φc)as in (14) and update the probabilities pa,pb,pcas in (15). 7: Choose ˆ φ=φcorrespondingly to the fault location, which is determined by the highest probability maxpa(k),p b(k),p c(k). 8: Evaluate the transformations in (8b) and (8c) followed by (17a) and (17b). 9: Execute a step of the algorithm [24] to get the current estimation of Θf(k). Compute xf(Rf=0Ω)from Θf,using(2a), and the known nsand np. 10: end while . winding architecture with npparallel branches and nscoils in series, as detailed in Section II, the algorithm can accommodate various concentrated motor configurations. Furthermore, the proposed algorithm applies even to motors with distributed windings. However, the values of the constants npand ns cannot be determined through the visual examination of the stator winding, requiring estimation. The identification procedure is executable in an experiment featuring the known fault severity xfand short-circuit resistance Rf. In this experiment, Algorithm 3is modified to compute npand nsin Step 9 instead of calculating the recognized fault indicators. Although the diagnostic method is formulated using the simplified model where Ld=Lq=Ls, it remains applicable to motors with differing d−qinductances, provided the difference is not excessively large (Ld<1.2Lq). In this case, the identified Lsvalue corresponds to the average of the d−q inductances, and the fault indicators estimator associates the higher odd harmonics of the fault current with the system noise. In the opposing scenario, the notable difference in the d−q inductances introduces a bias into the estimates of the electrical parameters and fault indicators, which can be resolved only by employing more sophisticated discrete-time models recognizing Ld=Lq[30]. However, relying on these models also mandates enhancement in the inputs’ excitation. By formulating the mathematical model of a shorted PMSM with a distinct healthy machine description and fault equation related to the ISC-containing phase, as presented in Section II, the diagnostic approach effortlessly adapts even to multiphase motors. In addition, due to the use of more phase currents in forming the α−βcomponents, suppressing the system noise, particularly that from the current sensors, is more effective than in a three-phase motor. The improved noise mitigation allows for a more aggressive tuning of the parameter estimators in This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. 6IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS Fig. 3. Diagnostic algorithm testing setup: The 200 W motor. Algorithm 1(higher values of the constrained terms Ξand tuning factor ζ), ultimately ensuring superior sensitivity in fault detection. Conversely, the fault location identification, realized through the transformation in (14) and the probability assessment in (15), demands more phase shifts, leading to elevated computational requirements and a decelerated convergence of the probabilities pj. IV. VALIDATING THE DIAGNOSTIC ALGORITHM The functioning of the diagnostic algorithm was validated by using a vector-controlled 200 W experimental motor with windings connected according to np=1,ns=3, and 25 turns in one coil segment (75 turns in the whole winding). The diagnostic algorithm was implemented into an AURIX Application Kit TC277, controlling an NXP three-phase low-voltage power stage and operating with a sampling frequency of 10 kHz. An image of the testbed is displayed in Fig. 3. The microcontroller TC277 has three independent 32-bit TriCore CPUs. Each core works at a frequency of 200 MHz and has its own floating-point unit supporting single precision operations. Microcontrollers with similar computing powers are now commonly available (for instance, the SPC5, STM32H7, TMS320F2837xD, and RH850/E2x) and can be used in motor applications. The control algorithm is integrated into the first core of the microcontroller. Triggered by an interrupt from the A/D converters, the control algorithm utilizes the measured abc currents and rotor position as the inputs and provides the updated duty cycles and internal variables (iα,iβ,uα,uβ,sin(θe), cos(θe), and ¯ωe), required by the diagnostic algorithm, as the outputs. The second core, reserved for the diagnostic procedure, receives an interrupt emitted by the first core after the control algorithm step has been executed. The first core continues with duty-cycle updating, while the second one copies the input variables into the local ones and starts the fault diagnostic procedure. The diagnostic function was prepared to be calculated in single precision. During the implementation, we carefully analyzed the crucial calculation segments involving the addition TABLE I COMPUTATIONAL TIME OF THE IMPLEMENTED ALGORITHMS IN µs or subtraction of numbers with varying orders of magnitude, leading to a loss in the computational accuracy. Notably, an accurate evaluation of the logarithms and reciprocal values of the numbers in close proximity to one is especially critical; thus, we decided to approximate these problematic functions by their Taylor series of the fourth order close to point 1, effectively resolving the abovementioned problem. The presented modifications allowed the diagnostic algorithm to be implemented in the target microcontroller using only one core. Regarding the computational time, the combination of Algorithms 1and 2 uses one microcontroller core at 83%–88%. Subsequently, the average microcontroller load decreases to 55%–62% after fault detection, as only Algorithm 3is computed. Table Ilists the computational times achieved through the algorithm implementation on the TC277 and TC397 microcontrollers. The third core facilitates communication and data acquisition. The essential data from the microcontroller are transferred via Ethernet; simultaneously, Ethernet serves as the conduit for sending the control commands to the system. The AURIX sends a UDP packet with 400 data bytes every sampling period; considering the necessary headers, this represents a data flow of 4.64 MB/s. Such communication allows real-time monitoring of 100 distinct numerical values. An ISC is emulated using a fault insertion unit (see Fig. 3) with an antiseries arrangement of two PSMNR90-50SLH MOSFET power transistors and an ACS709 current sensor to measure the fault current. Assuming the characteristics of the utilized components, an ISC is emulated with a short-circuit resistance of 2.5 mΩ. However, the resulting short-circuit current is also affected by the inductance of the wires linking the motor and fault insertion unit, which is not negligible compared with the inductance of one or two turns in the experimental motor winding. In the initial part of the validation experiments, we assessed the functionality of our method (including the estimation of the electrical parameters) under both the steady and the transient state conditions. The outcomes are depicted in Fig. 4above. The experimental motor was driven to the angular velocity setpoint, and the ISCs were emulated in phase awith the fault severity of 4/25 using the fault insertion unit. Simultaneously, the dynamometer exerted a torque load consistent at 0.5 Nm (steady state and velocity transient) or gradually rising from 0.25 to 0.75 Nm, with a 2 Nm/s rate (load transient). As shown in Fig. 4, even though the persistence of the input signals diminishes rapidly during the steady state, the parametric This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. ZEZULA et al.: DIAGNOSTICS OF INTERTURN SHORT CIRCUITS IN PMSMS WITH ONLINE FAULT INDICATORS ESTIMATION 7 Fig. 4. Estimated electrical parameters, fault indicators, and fault detection-related waveforms: The 200 W motor. estimation algorithm can preserve the information obtained during the transients to produce stabilized and smoothened estimations of the motor’s electrical parameters. Furthermore, the persistence requirements in the steady state can be effectively lowered by utilizing the previously recognized permanent magnet flux linkage as a constant. As also visualized in Fig. 4, the implemented algorithm is capable of tracking changes in the time-varying electrical parameters of the experimental motor, including minor increases in the resistance of the stator winding and MOSFET power transistors due to heating. The emulated fault, occurring at the time tf, is then detected at the time td within 3 ms. Generally, a higher amplitude of the currents and an elevated angular velocity lead to a faster detection. In the load transient, however, the detection might decelerate compared to the steady state scenario assuming the same current level; this is because the detection utilizes the electrical parameters that are concurrently updated and whose estimates remain unsettled. The fault indicators are then recognized within 6 ms after the detection at td. In the subsequent part of the validation experiments, we tested the diagnostic capabilities of the designed algorithm across the different operating conditions (steady state without a load, load transient with a 5 Nm/s rate, and velocity transient without a load) and emulated fault severities (2/25, 4/25, and 6/25). The observed outcomes are exposed in Fig. 5below, where, at the angular velocity of ωe= 1200 rad/s, the diagnostic algorithm detects even two shorted turns, approximately corresponding to the converted value xf(Rf=0Ω)=0.04, which represents 1.33% of the entire stator winding shorted with a zero resistance. Despite the experimental motor’s potential for a maximum electrical angular velocity of 104rad/s, the validation experiments were intentionally carried out at a moderated rate because detecting ISCs is especially challenging at lower angular velocities, attributable to the diminished back-electromotive force and resulting lower fault current amplitude. The value ωe= 1200 rad/s proved to be the minimum velocity at which the detection algorithm can reliably detect two shorted turns of the unloaded motor. Detecting two shorted turns at lower rates would require tuning the electrical parameter estimators more aggressively (higher values of Ξand ζin Algorithm 1). However, as the experimental motor exhibits an asymmetry in the stator windings (see Fig. 5, where the second harmonic distortion in the d−qcurrents is observable even before a short-circuit occurs), adopting a more aggressive tuning would result in a false detection of this asymmetry at higher velocity rates and also in other issues related to the rapid loss of the information learned about the electrical parameters. As shown in Fig. 5, applying a higher load to the 200 W motor yields an increased q-axis current, producing an elevated signal-to-noise ratio and thus a faster detection and estimation of the fault indicators; such properties are obtained despite the faults occurring in the load transient. During the velocity transient experiments, the ISCs were emulated close to 1100 rad/s at a change from 800 to 1200 rad/s. Stabilizing the fault severity and location, as evidenced in Fig. 5, takes more time: the velocity is lower than in the steady state scenario, leading to a decreased rate of change in the α−βvoltages and currents. In order to substantiate the functionality and effectiveness of the proposed diagnostic algorithm across different machine designs, we applied our method even to another experimental motor with a rated power of 20 kW and maximum electrical angular velocity of 1.1×104rad/s. The testbed featuring the 20 kW motor is visualized in Fig. 6. This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. 8IEEE TRANSACTIONS ON INDUSTRIAL ELECTRONICS Fig. 5. Testing the algorithm’s capabilities under the different operating conditions and fault severities: The 200 W motor. Fig. 6. Diagnostic algorithm testing setup: The 20 kW motor. The stator windings of the 20 kW motor, driven by an Infineon HYBRID KIT DRIVE power stage with an AURIX Application Kit TC397 at a sampling rate of 10 kHz, comprise two parallel branches, each containing two coil segments arranged in series (np=2and ns=2); a part contains seven turns. The estimated electrical parameters are Rs=6.05 mΩ,Ls=90.2μH, and λpm =11.7 mWb. Fig. 7. Gradually arising fault current in a case with a 10 Nm load. Although the target microcontroller has six cores operating at 300 MHz, only three were used, as in the previous case. The first core is dedicated to the control algorithm, which contains many safety and self-monitoring features, unlike the first implementation, where only a speed controller and d−qcurrent controllers were implemented. The control algorithm also includes a state machine managing the startup sequence and zero calibration of the current sensors. The proposed diagnostic algorithm runs in the second core, while the communication is implemented in the third one. The synchronization between the cores is the same as in the TC277 implementation. The measured computational times of the diagnostic algorithm in Table Iabove reflect the increased computational power of the microcontroller, although the execution of the control algorithm runs longer, considering its increased complexity. This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination. ZEZULA et al.: DIAGNOSTICS OF INTERTURN SHORT CIRCUITS IN PMSMS WITH ONLINE FAULT INDICATORS ESTIMATION 9 Fig. 8. Testing the algorithm’s capabilities under the different operating conditions and fault severities: The 20 kW motor. Unlike the 200 W machine discussed above, the 20 kW motor operates with higher voltages, currents, and noise levels of the current sensors. We therefore performed more robust tuning of the electrical parameter estimators (Ξ=0.1I3×3and ζ=0.1in Algorithm 1) and the fault detector (ξ=0.04 in Algorithm 2). Furthermore, we implemented adaptive band-pass filters of iα,iβ,uα,uβ,vα, and vβto suppress the occasionally occurring outlier values caused by an interference from the devices surrounding the motor. We have y(k+1)=bu(k)−u(k−1)+a1y(k)+ a2y(k−1) b=2 ψ 1−ψ2e−ψωe(k)Tssinωe(k)Ts1−ψ2 a1=2e−ψωe(k)Tscosωe(k)Ts1−ψ2 a2=−e−2ψωe(k)Ts(18) where u(k)and y(k)are the filter input and output, respectively, and the damping factor ψis set to 0.3. An ISC in the 20 kW motor is emulated using a fault insertion unit (see Fig. 6) comprising a power relay LEV200A4NAF connected in parallel to a power module sTT1400N16P55 with two antiparallel thyristors. A control signal is then simultaneously dispatched to the relay and thyristors. However, due to the mechanical movement, the relay reaction is delayed by 20 ±5 ms compared with the thyristors’ response, resulting in an extended relay lifespan. On the other hand, the fault gradually arises in two steps with a relative shift, attributed to a voltage drop on the thyristors (0.85–1.39V), which also decreases the fault current at a low-fault severity. The described situation is shown in Fig. 7, which displays the measured fault currents. The vertical lines in Figs. 7and 8below are attributed to the time tfr when the relay is switched ON. The second experimental motor was driven to the ωesetpoint of 1000 rad/s, and the ISCs were emulated in phase bwith different fault severities (1/7, 2/7, and 3/7) and loads generated by the dynamometer (consistent 5 Nm or a gradual rise from 2 to 7 Nm, with a rate of 200 Nm/s). In the velocity transient experiments, the faults were emulated close to 1100 rad/s (velocity change from 1000 to 1400 rad/s). The outcomes of the fault detection and indicator estimation experiments are depicted in Fig. 8below, indicating that higher fault severity values are detected even before the relay activation. Subsequently, the fault severity estimator follows the value associated with the lower fault current, and after the relay has been switched ON,the estimator adapts to the increased value of if. As the velocity increases in the relevant transient experiments, the ISCs are detected faster, and the fault location and severity estimations are accelerated. V. CONCLUSION This article proposed model-based fault diagnostics for synchronous motors with permanent magnets under an ISC fault. The designed algorithm allowed detecting the fault and estimated its location and severity using parametric estimation and model comparison approaches expanded to include probabilistic fault detection. In the table below, the essential properties of the This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.