<?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: FOC control modes in S32K</title>
    <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909031#M4684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/marekmusak"&gt;marekmusak&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;I also have the same issue of understanding torque control from the&amp;nbsp;https://www.nxp.com/docs/en/application-note/AN12235.pdf ,&amp;nbsp;to maintain constant torque .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution pointed out to &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/bhanu.kassel@gmail.com"&gt;bhanu.kassel@gmail.com&lt;/A&gt;‌ is for AN12435.pdf .&lt;/P&gt;&lt;P&gt;Could you please give more information on the same ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kruthik&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2020 13:21:37 GMT</pubDate>
    <dc:creator>kruthik_kumar</dc:creator>
    <dc:date>2020-02-10T13:21:37Z</dc:date>
    <item>
      <title>FOC control modes</title>
      <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909026#M4679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hello all!&lt;BR /&gt;I'm starting out learning about motor controllers and FOC. I have the&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;S32K144 along with the motor development kit :&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;MTRDEVKSPNK144: S32K144&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I'm struggling quite alot with finding documentation or descriptions of the different motor control techniques that are available to the FOC control: in the example project downloaded, called MTRDEVKSPNK144_S32DS, the FOC control-modes are in struct "controlStructMode_t" in "motor_structure.h" file. The available modes are Scalar control, voltage control, current control, and speed control. I'd like to know the differences or advantages/disadvantages between them so I can decide on which is best, and why it is better.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I have attached the structs that contain the control modes and how each is implemented in the FOCFastLoop of the main code (current loop of the cascaded control), in case this can help in understanding what is going on. The FOCFastLoop is shown in 2 pictures where "FOC_FastLoop_2" is the immediate continuation of the code from the first picture.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FOC_control_structs.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81942iC6706B04512CDF2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="FOC_control_structs.jpg" alt="FOC_control_structs.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;FOC control structures, with available modes.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FOC_FastLoop_1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81986i6FAC8DA315FA61FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="FOC_FastLoop_1.jpg" alt="FOC_FastLoop_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;FOC FastLoop function with scalar and voltage control implementations&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FOC_FastLoop_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82027i8F400C4ED55891B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="FOC_FastLoop_2.jpg" alt="FOC_FastLoop_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;FOC FastLoop function with current and speed control implementations&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I hope someone can point me in the right direction.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2019 06:59:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909026#M4679</guid>
      <dc:creator>mark_chylinski</dc:creator>
      <dc:date>2019-08-28T06:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: FOC control modes</title>
      <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909027#M4680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTRDEVKSPNK144&amp;nbsp;demonstrates primarily advantage of the Field Oriented Control (FOC) technique in Sensorless mode.&amp;nbsp;One of the&amp;nbsp;&lt;SPAN&gt;MTRDEVKSPNK144&amp;nbsp;&lt;/SPAN&gt;feature is that you can select character of the control&amp;nbsp;(or mode). This feature can be used for debug purposes to setup&amp;nbsp;new hardware or to control motor to demanded speed (speed control) or&amp;nbsp;torque (current control).&lt;/P&gt;&lt;P&gt;So it depends on what requires your application either constant torque or constant speed.&lt;/P&gt;&lt;P&gt;Nevertheless, detailed discussion also with block diagrams you can find in application note&amp;nbsp;AN4642&amp;nbsp;- "Motor Control Application Tuning (MCAT) Tool for 3-Phase PMSM":&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4642.pdf" title="https://www.nxp.com/docs/en/application-note/AN4642.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4642.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOC implementation on S32K144 is discussed in application note AN12235 - "3-phase Sensorless PMSM Motor Control Kit with S32K144"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN12235.pdf" title="https://www.nxp.com/docs/en/application-note/AN12235.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN12235.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2019 13:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909027#M4680</guid>
      <dc:creator>marekmusak</dc:creator>
      <dc:date>2019-08-30T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: FOC control modes</title>
      <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909028#M4681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MTRDEVKSBNK144. How to maintain constant torque for BLDC motors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BHANU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 07:47:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909028#M4681</guid>
      <dc:creator>bhanu_kassel</dc:creator>
      <dc:date>2019-09-03T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: FOC control modes</title>
      <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909029#M4682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two PI controllers used in this application: speed PI controller for speed control and current PI controller for current limit. You can use&amp;nbsp;&lt;SPAN&gt;current PI controller to maintain constant torque.&amp;nbsp;Ignore&amp;nbsp;output of the speed controller&amp;nbsp;and use only current PI&amp;nbsp;for&amp;nbsp;duty cycle control. Then, create new variable for example "torque_req" that you will use for constant torque control&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;torqueErr = MLIB_Sub(torque_req, torque_filt);&lt;BR /&gt;duty_cycle = GFLIB_ControllerPIpAW(torqueErr, &amp;amp;currentPIPrms);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify "&lt;SPAN&gt;torque_req"&lt;/SPAN&gt;&amp;nbsp;in FreeMASTER apps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constant "&lt;SPAN&gt;torque_req" = constant torque.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:36:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909029#M4682</guid>
      <dc:creator>marekmusak</dc:creator>
      <dc:date>2019-09-03T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: FOC control modes</title>
      <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909030#M4683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I didn't understand your view. Can you explain in more detail?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 06:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909030#M4683</guid>
      <dc:creator>bhanu_kassel</dc:creator>
      <dc:date>2019-09-05T06:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: FOC control modes</title>
      <link>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909031#M4684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/marekmusak"&gt;marekmusak&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;I also have the same issue of understanding torque control from the&amp;nbsp;https://www.nxp.com/docs/en/application-note/AN12235.pdf ,&amp;nbsp;to maintain constant torque .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution pointed out to &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/bhanu.kassel@gmail.com"&gt;bhanu.kassel@gmail.com&lt;/A&gt;‌ is for AN12435.pdf .&lt;/P&gt;&lt;P&gt;Could you please give more information on the same ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kruthik&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 13:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FOC-control-modes/m-p/909031#M4684</guid>
      <dc:creator>kruthik_kumar</dc:creator>
      <dc:date>2020-02-10T13:21:37Z</dc:date>
    </item>
  </channel>
</rss>

