<?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>S12 / MagniV MicrocontrollersのトピックRe: About PI control library function for S12ZVM128</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703338#M14581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;If your application uses a permanent magnet synchronous motor, you can use the &lt;A href="https://www.nxp.com/docs/en/application-note/AN4642.pdf"&gt;Motor Control Application Tuning (MCAT)&lt;/A&gt; tool to easily tune the parameters of the controllers on-the-fly. MCAT is&amp;nbsp;a part of &lt;A href="https://www.nxp.com/support/developer-resources/run-time-software/automotive-software-and-tools/motor-control-development-solutions:AUTOMCDEVKITS?&amp;amp;tid=vanAutoMCDevKits"&gt;NXP development kits&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Closed-loop performance will signifcantly deteriorate in terms of the expected linear performance if the anti-windup is not used. You can learn about the integral windup in any textbook on control theory. A brief overview can be found on &lt;A href="https://en.wikipedia.org/wiki/Integral_windup"&gt;wikipedia&lt;/A&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 07:25:48 GMT</pubDate>
    <dc:creator>petrz_</dc:creator>
    <dc:date>2017-10-06T07:25:48Z</dc:date>
    <item>
      <title>About PI control library function for S12ZVM128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703334#M14577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using MC9S12ZVM128 controller and PI control library function in our code for PI control as below,&lt;/P&gt;&lt;P&gt;SpeedPIOut = GFLIB_ControllerPIrAW(Error, (GFLIB_CONTROLLER_PIAW_R_T_F16 *)&amp;amp;SpeedPIPrms, F16);&lt;/P&gt;&lt;P&gt;We referred the document for PI control library, we get to know that there are three options to calculate CC1 and CC2 coefficients as below,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28967i76E8A65B7B11E142/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We want to know that,&lt;/P&gt;&lt;P&gt;how to know which option is get selected while using above library function?&lt;/P&gt;&lt;P&gt;What is the significance of these three options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 05:56:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703334#M14577</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2017-09-14T05:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: About PI control library function for S12ZVM128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703335#M14578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a control system implemented in a digital computer is a discrete system. When designing a discrete controller, you have two options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;To design the discrete controller directly from scratch.&lt;/LI&gt;&lt;LI&gt;To design a continuous-time controller first and then find a discrete equivalent.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since there is a vast body of knowledge available on continuous-control design, engineers typically take the option No. 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AMMCLIB function GFLIB_ControllerPIrAW assumes that you have already designed your continuous-time controller and want to implement it in the digital computer. Based on your continuous-time gain values &lt;EM&gt;Kp&lt;/EM&gt; and &lt;EM&gt;Ki&lt;/EM&gt;, and the selected sampling period &lt;EM&gt;Ts&lt;/EM&gt;, you can calculate the discrete controller parameters using any of the discretization methods:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Forward rectangular rule&lt;/LI&gt;&lt;LI&gt;Backward rectangular rule&lt;/LI&gt;&lt;LI&gt;Trapezoid rule&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Once you select the discretization method which best suits your needs, you can use the equations provided in the AMMCLIB User's Guide to calculate the required parameters &lt;EM&gt;f16CC1sc&lt;/EM&gt; and &lt;EM&gt;f16CC2sc&lt;/EM&gt; for your GFLIB_ControllerPIrAW_F16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to any textbook on discrete control theory to learn more about the discretization methods and their properties. You can also find plenty useful resources online, e.g.:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://web.cecs.pdx.edu/~tymerski/ece452/6.pdf"&gt;http://web.cecs.pdx.edu/~tymerski/ece452/6.pdf&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://www.me.unm.edu/~starr/teaching/me581/textbook.pdf"&gt;http://www.me.unm.edu/~starr/teaching/me581/textbook.pdf&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 13:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703335#M14578</guid>
      <dc:creator>petrz_</dc:creator>
      <dc:date>2017-09-14T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: About PI control library function for S12ZVM128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703336#M14579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;Thanks for information!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want to know,&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;What is the impact of increasing/decreasing&amp;nbsp;of CC1 and CC2 parameters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Our understanding is that&amp;nbsp; if CC1 is increased,response will reduce,Or if CC2 is increased steady state error will reduce&lt;SPAN style="background-color: #ffffff; color: #212121; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #212121; font-size: small;"&gt;2. What is significance and difference of anti-windup PI controller and normal PI controller?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; : ; color: #212121; font-size: small;"&gt;Note: &lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #212121; font-size: small;"&gt;We have not designed any "control equation" beforehand. We want to tune this PI for motor control application using trial - and - error method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #212121; font-size: small;"&gt;Please guide for the same as early as possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #212121; font-size: small;"&gt;Thank You.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:50:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703336#M14579</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2017-10-05T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: About PI control library function for S12ZVM128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703337#M14580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;We want to know,&lt;/P&gt;&lt;P&gt;1. What is impact of increasing/decreasing values of CC1/CC2 parameters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Our understanding is that if CC1 increased response time will reduce, OR if CC2 increased steady state error will reduce&lt;/P&gt;&lt;P&gt;2. What is significance and difference of anti-windup PI controller and normal PI controller?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: We have not designed any "control equation" beforehand. We want to tune this PI for motor control application using trial - and - error method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide us for the same as early as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 03:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703337#M14580</guid>
      <dc:creator>pratibhasurabhi</dc:creator>
      <dc:date>2017-10-06T03:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: About PI control library function for S12ZVM128</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703338#M14581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;If your application uses a permanent magnet synchronous motor, you can use the &lt;A href="https://www.nxp.com/docs/en/application-note/AN4642.pdf"&gt;Motor Control Application Tuning (MCAT)&lt;/A&gt; tool to easily tune the parameters of the controllers on-the-fly. MCAT is&amp;nbsp;a part of &lt;A href="https://www.nxp.com/support/developer-resources/run-time-software/automotive-software-and-tools/motor-control-development-solutions:AUTOMCDEVKITS?&amp;amp;tid=vanAutoMCDevKits"&gt;NXP development kits&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;Closed-loop performance will signifcantly deteriorate in terms of the expected linear performance if the anti-windup is not used. You can learn about the integral windup in any textbook on control theory. A brief overview can be found on &lt;A href="https://en.wikipedia.org/wiki/Integral_windup"&gt;wikipedia&lt;/A&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 07:25:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/About-PI-control-library-function-for-S12ZVM128/m-p/703338#M14581</guid>
      <dc:creator>petrz_</dc:creator>
      <dc:date>2017-10-06T07:25:48Z</dc:date>
    </item>
  </channel>
</rss>

