<?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 PMSM Example in MBDT: Questions about specific implementations in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PMSM-Example-in-MBDT-Questions-about-specific-implementations/m-p/993843#M3911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I was going through example of closed loop FOC of PMSM using hall sensor given in example section of MBDT library.&lt;/P&gt;&lt;P&gt;there in Fast control loop sub system actual value of current( in ampere) is compare with reference value( in ampere) and error term is given to PI controller but output of PI controller is voltage which is between -1 to 1.i.e output of PI is per unit value not actual value in terms of Voltage. I think output of Pi should be actual value of voltage not Per unit value. have you divide output of&amp;nbsp;PI by base value of voltage? I could not find anything like this .or is PI gain taking care of this conversion.&lt;/P&gt;&lt;P&gt;2) at what point you are sampling currents is it at peak of triangular carrier or at zero crossing of triangular carrier?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2020 15:40:55 GMT</pubDate>
    <dc:creator>aniket_bagade</dc:creator>
    <dc:date>2020-03-05T15:40:55Z</dc:date>
    <item>
      <title>PMSM Example in MBDT: Questions about specific implementations</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PMSM-Example-in-MBDT-Questions-about-specific-implementations/m-p/993843#M3911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I was going through example of closed loop FOC of PMSM using hall sensor given in example section of MBDT library.&lt;/P&gt;&lt;P&gt;there in Fast control loop sub system actual value of current( in ampere) is compare with reference value( in ampere) and error term is given to PI controller but output of PI controller is voltage which is between -1 to 1.i.e output of PI is per unit value not actual value in terms of Voltage. I think output of Pi should be actual value of voltage not Per unit value. have you divide output of&amp;nbsp;PI by base value of voltage? I could not find anything like this .or is PI gain taking care of this conversion.&lt;/P&gt;&lt;P&gt;2) at what point you are sampling currents is it at peak of triangular carrier or at zero crossing of triangular carrier?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:40:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PMSM-Example-in-MBDT-Questions-about-specific-implementations/m-p/993843#M3911</guid>
      <dc:creator>aniket_bagade</dc:creator>
      <dc:date>2020-03-05T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Example given in mbdt</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PMSM-Example-in-MBDT-Questions-about-specific-implementations/m-p/993844#M3912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aniket,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;output of PI controller is voltage which is between -1 to 1.i.e output of PI is per unit value not actual value in terms of Voltage&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason for normalizing the output of the PI controller to [-1:+1] is to take benefits of the AMMCLIB Floating point blocks that required the inputs to be normalized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can compute the actual voltage as PI controller output, or you can take that into consideration when you compute the KP/KI gains. The actual voltage in V units in not needed (perhaps only for vizualization) hence if you include the normalization in the controller gain computations you will save 2 divisions operations (controller_out/U_MAX)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;2) at what point you are sampling currents is it at peak of triangular carrier or at zero crossing of triangular carrier?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The current shunts are placed in series with the lower transistors, hence in order to pass the current thru the shunt, you need the lower transistor to be in conduction for a minimal amount of time. Since the PWM is center align, then the lower transistor will be open at the peak of the triangular carrier. The drawback of this method is that you can't apply 100% of the available DC bus voltage (you need the lower transistor to open). To overcome this drawback - we use 3rd harmonic injection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:25:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PMSM-Example-in-MBDT-Questions-about-specific-implementations/m-p/993844#M3912</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2020-03-09T12:25:30Z</dc:date>
    </item>
  </channel>
</rss>

