<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Important question about motor control in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2318452#M10642</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;1. I want to use Sunrise motor with its parameters but my question is if there is any block in SImulink that represents the plant because I want to have a block of the plant on one hand and the controller on the other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Moreover, I send you the parameters of motor Sunrise and I don´t know if you can confirm that the dates are true.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Rs = 0.192; % Resistencia del estator [Ohms]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Mpp = 2; % Pares de polos [-]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Ld = 0.000096; % Inductancia eje D [H]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Lq = 0.000107; % Inductancia eje Q [H]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Ke = 0.005872; % Constante Back-EMF [V.sec/rad]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_J = 0.12e-4; % Inercia [kg.m2]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_r32_F_IP_Wb_motor1 = 0.00518; % Flujo magnetico&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%% Parametros diseño LAZO DE CORRIENTE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%Loop Bandwidth = 150 [Hz]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%Loop Attenuation = 1 [-]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%Loop sample time = 0.0001 [sec]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%-----------------------------------------------------&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;f_cutoff_current = 150; % Frecuencia de corte deseada [Hz]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;w0_current = 2 * pi * f_cutoff_current; % Frecuencia natural [rad/s]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;xi_current = 0.707; % Amortiguamiento&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Ts_current = 1 /fsw; % Tiempo de muestreo &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Cálculos eje D&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Kp_D = (2 * xi_current * w0_current * PARAM_Ld) - PARAM_Rs;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Ki_D = (w0_current^2) * PARAM_Ld;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Cálculos eje Q&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Kp_Q = (2 * xi_current * w0_current * PARAM_Lq) - PARAM_Rs;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Ki_Q = (w0_current^2) * PARAM_Lq;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Current Loop Control (Calculado según NXP GFLIB) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_CLOOP_LIMIT = 0.9;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Eje D (D-axis)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_D_CC1SC = Kp_D + (Ki_D * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_D_CC2SC = -Kp_D + (Ki_D * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Eje Q (Q-axis)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_Q_CC1SC = Kp_Q + (Ki_Q * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_Q_CC2SC = -Kp_Q + (Ki_Q * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I send you the scheme that I am using in Simulink. My idea is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_1-1771229540348.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376908i66C9513943847B05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_1-1771229540348.png" alt="JonAnder_Amante_1-1771229540348.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_2-1771229553893.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376909i5A97B7E58B87D855/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_2-1771229553893.png" alt="JonAnder_Amante_2-1771229553893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_4-1771229596623.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376911iF3EEAB279A38539B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_4-1771229596623.png" alt="JonAnder_Amante_4-1771229596623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_3-1771229577117.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376910iA5F1CE9D7CE36E11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_3-1771229577117.png" alt="JonAnder_Amante_3-1771229577117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My idea is to not use the physical motor and to simulate it with the green block you see in the photos. and to perform the control (current loop and speed loop) with the MCLIB blocks.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Feb 2026 08:17:07 GMT</pubDate>
    <dc:creator>JonAnder_Amante</dc:creator>
    <dc:date>2026-02-16T08:17:07Z</dc:date>
    <item>
      <title>Important question about motor control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2305902#M10628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the board &lt;SPAN&gt;S32K344MINI-EVB with driver GD3000 and Sunrise motor. I have tested a program where you can manage the speed of motor with the project "S32K344:mc_pmsm_1sh_s32ct". I have different questions because I want to prove new options.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_1-1770196663700.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/375465i21E8D42A1779FE60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_1-1770196663700.png" alt="JonAnder_Amante_1-1770196663700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. I want to use the evaluation board to realize the control of motor, so I want to do the control FOC (2 controllers PI) but I want to simulate the plant (the motor PMSM) and the power electronics (GD3000). In this example, how I can modify it to simulate the plant but continue perfoming the control from the evaluation board?&lt;/SPAN&gt;&amp;nbsp;I suppose that I have to change something of state machine block but I don´t know what I have to change.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;2. Could you tell me the pins that I am using to send different signals from GD3000 (driver of motor) to motor PMSM? I have information in your website about this but I don´t if that´s the case. I send you a pdf with this information, although it´s not yhe same board I think the pins are the same (INFO_Driver_MOtor.pdf).&lt;/P&gt;&lt;P&gt;Thank you for all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jon Ander Amante&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 09:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2305902#M10628</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2026-02-04T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Important question about motor control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2313837#M10629</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226147"&gt;@JonAnder_Amante&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can find the answer to the initial thread here:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/missing-Motor-Control-PMSM-example-in-the-1-60-version-of-the/m-p/2313448/highlight/true#M10626" target="_blank"&gt;missing Motor Control PMSM example in the 1.60 version of the S32K3 MBDT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 14:14:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2313837#M10629</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2026-02-06T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Important question about motor control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2316523#M10635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226147"&gt;@JonAnder_Amante&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to use the &lt;A href="https://www.nxp.com/design/design-center/development-boards-and-designs/S32K344MINI-EVB" target="_blank"&gt;S32K344MINI-EVB&lt;/A&gt;,&amp;nbsp;the following modifications are needed on the board:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_0-1770819182442.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376521iE9EA517CF495AD10/image-size/large?v=v2&amp;amp;px=999" role="button" title="stefanvlad_0-1770819182442.png" alt="stefanvlad_0-1770819182442.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;1. Remove resistors &lt;STRONG&gt;R396&lt;/STRONG&gt; and &lt;STRONG&gt;R397&lt;/STRONG&gt;, located on bottom PCB near DC Jack:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_4-1770819788524.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376529i8EB250BFC515F804/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_4-1770819788524.png" alt="stefanvlad_4-1770819788524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Populate with 0 (&lt;STRONG&gt;zero&lt;/STRONG&gt;) Ohm&amp;nbsp; resistors &lt;STRONG&gt;R413&lt;/STRONG&gt;, &lt;STRONG&gt;R414&lt;/STRONG&gt; and &lt;STRONG&gt;R418 &lt;/STRONG&gt;located near J4 connector:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_3-1770819728806.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376527iA7C8E7C849E35ABB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_3-1770819728806.png" alt="stefanvlad_3-1770819728806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And also because the VDD_HV_A is supplied with 3.3V instead of 5V:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_2-1770819465940.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376524i09EFFBC617C5A3C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_2-1770819465940.png" alt="stefanvlad_2-1770819465940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We need to modify the parameters for the Udc and Idc Gains:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_6-1770820165900.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376533iD0B6B26893B98002/image-size/large?v=v2&amp;amp;px=999" role="button" title="stefanvlad_6-1770820165900.png" alt="stefanvlad_6-1770820165900.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV class="rtcContent"&gt;
&lt;DIV class="lineNode"&gt;&lt;SPAN&gt;%% Application scales &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="lineNode"&gt;&lt;SPAN&gt;MBD_I_MAX = 20.625;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="lineNode"&gt;&lt;SPAN&gt;MBD_U_DCB_MAX = 29.7;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="lineNode"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lineNode"&gt;&lt;SPAN&gt;After this we can connect the DEVKIT-MOTORGD (GD3000) board on top of S32K344MINI-EVB:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="lineNode"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_5-1770819975008.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376530iD9521C936A58AEE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_5-1770819975008.jpeg" alt="stefanvlad_5-1770819975008.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now Open FreeMASTER and run the example and check iABC waveforms:&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_7-1770821519787.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376534iB675226DFEEF715E/image-size/large?v=v2&amp;amp;px=999" role="button" title="stefanvlad_7-1770821519787.png" alt="stefanvlad_7-1770821519787.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Best regards,&lt;/P&gt;
&lt;P&gt;Stefan V.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2316523#M10635</guid>
      <dc:creator>stefanvlad</dc:creator>
      <dc:date>2026-02-11T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Important question about motor control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2316910#M10637</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply. At now, I want to realize only the control of FOC in the board "S32K344 MINI-EVB", that is to say, I have another block of the plant that it´s represented the motor PMSM (Sunrise) with power electronics but I have to use the control of FOC with MBD. In this example, could you tell me which block I have to keep and what blocks I have to remove?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_0-1770883302148.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376633iCDB15E67391B9421/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_0-1770883302148.png" alt="JonAnder_Amante_0-1770883302148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think that I have to keep the current loop and speed loop in the block called "state machine" but the problem is there are many variables and different blocks with different jumps between them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_1-1770883826681.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376636i5060B73E4FB4463C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_1-1770883826681.png" alt="JonAnder_Amante_1-1770883826681.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, my project´s target is to use the same control of FOC from this project but to use another plant.&lt;BR /&gt;&lt;BR /&gt;Thank you for all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jon Ander Amante&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 08:10:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2316910#M10637</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2026-02-12T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Important question about motor control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2317212#M10639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226147"&gt;@JonAnder_Amante&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure i understand what other plant you want to use, another motor maybe?&lt;/P&gt;
&lt;P&gt;We currently support the &lt;STRONG&gt;Sunrise Motor&lt;/STRONG&gt; with parameters in &lt;STRONG&gt;s32k344_mc_pmsm_2sh_s32ct_data&lt;/STRONG&gt;.&lt;STRONG&gt;m&lt;/STRONG&gt; and Linix Motor with parameters in s32k344_mc_pmsm_2sh_s32ct_data_linix.m&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other motors, you will need to modify the parameters accordingly in data.m files, then do a clean Build.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a good day,&lt;/P&gt;
&lt;P&gt;Stefan V.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 14:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2317212#M10639</guid>
      <dc:creator>stefanvlad</dc:creator>
      <dc:date>2026-02-12T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Important question about motor control</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2318452#M10642</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;1. I want to use Sunrise motor with its parameters but my question is if there is any block in SImulink that represents the plant because I want to have a block of the plant on one hand and the controller on the other.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Moreover, I send you the parameters of motor Sunrise and I don´t know if you can confirm that the dates are true.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Rs = 0.192; % Resistencia del estator [Ohms]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Mpp = 2; % Pares de polos [-]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Ld = 0.000096; % Inductancia eje D [H]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Lq = 0.000107; % Inductancia eje Q [H]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_Ke = 0.005872; % Constante Back-EMF [V.sec/rad]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_J = 0.12e-4; % Inercia [kg.m2]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;PARAM_r32_F_IP_Wb_motor1 = 0.00518; % Flujo magnetico&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%% Parametros diseño LAZO DE CORRIENTE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%Loop Bandwidth = 150 [Hz]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%Loop Attenuation = 1 [-]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%Loop sample time = 0.0001 [sec]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%-----------------------------------------------------&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;f_cutoff_current = 150; % Frecuencia de corte deseada [Hz]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;w0_current = 2 * pi * f_cutoff_current; % Frecuencia natural [rad/s]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;xi_current = 0.707; % Amortiguamiento&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Ts_current = 1 /fsw; % Tiempo de muestreo &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Cálculos eje D&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Kp_D = (2 * xi_current * w0_current * PARAM_Ld) - PARAM_Rs;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Ki_D = (w0_current^2) * PARAM_Ld;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Cálculos eje Q&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Kp_Q = (2 * xi_current * w0_current * PARAM_Lq) - PARAM_Rs;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Ki_Q = (w0_current^2) * PARAM_Lq;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Current Loop Control (Calculado según NXP GFLIB) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;%----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_CLOOP_LIMIT = 0.9;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Eje D (D-axis)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_D_CC1SC = Kp_D + (Ki_D * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_D_CC2SC = -Kp_D + (Ki_D * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;% Eje Q (Q-axis)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_Q_CC1SC = Kp_Q + (Ki_Q * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;MBD_Q_CC2SC = -Kp_Q + (Ki_Q * Ts_current / 2);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I send you the scheme that I am using in Simulink. My idea is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_1-1771229540348.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376908i66C9513943847B05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_1-1771229540348.png" alt="JonAnder_Amante_1-1771229540348.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_2-1771229553893.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376909i5A97B7E58B87D855/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_2-1771229553893.png" alt="JonAnder_Amante_2-1771229553893.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_4-1771229596623.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376911iF3EEAB279A38539B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_4-1771229596623.png" alt="JonAnder_Amante_4-1771229596623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonAnder_Amante_3-1771229577117.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/376910iA5F1CE9D7CE36E11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonAnder_Amante_3-1771229577117.png" alt="JonAnder_Amante_3-1771229577117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My idea is to not use the physical motor and to simulate it with the green block you see in the photos. and to perform the control (current loop and speed loop) with the MCLIB blocks.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 08:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Important-question-about-motor-control/m-p/2318452#M10642</guid>
      <dc:creator>JonAnder_Amante</dc:creator>
      <dc:date>2026-02-16T08:17:07Z</dc:date>
    </item>
  </channel>
</rss>

