<?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: KMS Position Control in Kinetis Motor Suite</title>
    <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633650#M133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run into issues finding the line count for magnetic encoders in the past. &amp;nbsp;Can you provide the specific part number you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, I would suggest trying 2048 instead of 512, just to see if that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other thing to look into is electrical noise on the encoder wires. &amp;nbsp;The easiest way to test for this is to use an oscilloscope and look at the ABI signals when the motor is running. &amp;nbsp;If those signals are not very clean it can cause encoder issues. &amp;nbsp;Only things you can really do to help with this is to ground the motor body, separate the motor phase wires from encoder wires, and shield the encoder wires.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 15:56:28 GMT</pubDate>
    <dc:creator>linestream-adam</dc:creator>
    <dc:date>2017-02-15T15:56:28Z</dc:date>
    <item>
      <title>KMS Position Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633649#M132</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 using the KMS without problem using the "sensorless velocity" mode.&lt;/P&gt;&lt;P&gt;Now I try to use the "position control" mode, but I have problems with encoder (I think...).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a magnetic encoder with ABI output connected directly to MKV31, configured to 2048 counts, and a 8 poles motor.&lt;/P&gt;&lt;P&gt;In the motor basic informatión, I put next values:&lt;/P&gt;&lt;P&gt;* pole pairs = 4&lt;/P&gt;&lt;P&gt;* Encoder Lines = 512.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why "512", because I read:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DL&gt;&lt;DT&gt;PPR, P/R, sometimes notated as C/T&amp;nbsp; =&amp;nbsp; Pulses per revolution&lt;/DT&gt;&lt;DT&gt;LPR, L/R&amp;nbsp; = Lines per revolution (same as PPR)&lt;/DT&gt;&lt;DT&gt;CPR&amp;nbsp; = Counts per revolution. Usually means encoder resolution after 4X decoding. However, some manufacturers (such as Avago and USdigital) specify PPR value as CPR.&lt;/DT&gt;&lt;/DL&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an Datasheet Example Quadrature Output for 8 Positions&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="176155_176155.png"&gt;&lt;IMG alt="176155_176155.png" src="https://community.nxp.com/t5/image/serverpage/image-id/122863iE1F7B9E0465F4D1B/image-size/large?v=v2&amp;amp;px=999" title="176155_176155.png" /&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;IMG alt="pastedImage_3.png" src="https://community.nxp.com/t5/image/serverpage/image-id/14196i17B066A0DAE682A0/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I configure the output for 2048 positions, the Encoder Lines may be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri,Arial,Helvetica,sans-serif,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size: 16px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counts/rev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;USER_MOTOR_ENCODER_LINES = -------------------&amp;nbsp; = -------------- = 512 Lines&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x4 Decoding &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's this OK ??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Allways appears an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="176267_176267.png"&gt;&lt;IMG alt="176267_176267.png" src="https://community.nxp.com/t5/image/serverpage/image-id/122864iD925190567FD3830/image-size/large?v=v2&amp;amp;px=999" title="176267_176267.png" /&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;IMG alt="pastedImage_4.png" src="https://community.nxp.com/t5/image/serverpage/image-id/14237iE8E16E7F68A04C2E/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I try change two phases of motor, and change two signals of encoder by software in qei_sys.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define HW_CHAN0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0U)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* FTM Channel Assignment for PHA */&lt;BR /&gt;#define HW_CHAN1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1U)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* FTM Channel Assignment for PHB */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// #define HW_CHAN0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1U)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* FTM Channel Assignment for PHA */&lt;BR /&gt;// #define HW_CHAN1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0U)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* FTM Channel Assignment for PHB */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If a read the QEI using&amp;nbsp;&amp;nbsp; "uint16_t QEIS_readPositionCounter(void)" function, the signal is read correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The motor turn one or two seconds and appers the error.&lt;/P&gt;&lt;P&gt;Sometimes, the motor turn in the one side, and next try to turn in another side.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I can't get to KMS accept the parameters.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;What am I doing wrong?&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;Thank you.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;PRE class="" data-fulltext="" data-placeholder="Traducción" dir="ltr" style="text-align: left; height: 72px;"&gt;&lt;SPAN lang="en"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633649#M132</guid>
      <dc:creator>sergigomis</dc:creator>
      <dc:date>2020-11-02T13:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: KMS Position Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633650#M133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run into issues finding the line count for magnetic encoders in the past. &amp;nbsp;Can you provide the specific part number you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, I would suggest trying 2048 instead of 512, just to see if that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other thing to look into is electrical noise on the encoder wires. &amp;nbsp;The easiest way to test for this is to use an oscilloscope and look at the ABI signals when the motor is running. &amp;nbsp;If those signals are not very clean it can cause encoder issues. &amp;nbsp;Only things you can really do to help with this is to ground the motor body, separate the motor phase wires from encoder wires, and shield the encoder wires.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 15:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633650#M133</guid>
      <dc:creator>linestream-adam</dc:creator>
      <dc:date>2017-02-15T15:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: KMS Position Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633651#M134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam.&lt;/P&gt;&lt;P&gt;I use the magnetic encoder AS5601, but I will change to AS5047D in the next prototypes.&lt;/P&gt;&lt;P&gt;The ABI signals are OK. And yes, I tried to use 2048 instead of 512, but nothing. I tried all possible combinations.&lt;BR /&gt;With 512, is the only configuration that motor turn a few seconds before appear the error window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the ABI signal in the input of MKV31.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="encoder.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13563iC15575296B4158B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="encoder.jpg" alt="encoder.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 17:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633651#M134</guid>
      <dc:creator>sergigomis</dc:creator>
      <dc:date>2017-02-15T17:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: KMS Position Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633652#M135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those signals look pretty good. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On reading the datasheet I became concerned about the limited maximum speed of this encoder. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2017-02-15 16_08_10-AS5601_DS000395_3-00.pdf.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/13945i0F287A0293E597DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-02-15 16_08_10-AS5601_DS000395_3-00.pdf.png" alt="2017-02-15 16_08_10-AS5601_DS000395_3-00.pdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It says here that the maximum speed when using the incremental output is 456 rpm. &amp;nbsp;Also the two notes on the bottom are concerning when operating with a motor. This encoder module may not be suitable for motor operations. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have the encoder lines correct but I don't think this chip is fast enough to work for motor control applications. &amp;nbsp;The other chip you have selected looks like it should work great though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:11:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633652#M135</guid>
      <dc:creator>linestream-adam</dc:creator>
      <dc:date>2017-02-15T21:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: KMS Position Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633653#M136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I know. This is the reason to change encoder to AS5047D.&lt;/P&gt;&lt;P&gt;But also try to set "Rated speed" of KMS to 400rpm to limit this, but I have same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633653#M136</guid>
      <dc:creator>sergigomis</dc:creator>
      <dc:date>2017-02-15T21:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: KMS Position Control</title>
      <link>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633654#M137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume it is an instantaneous change issue and not a pure speed issue.&lt;/P&gt;&lt;P&gt;You can bypass the flux id:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go into Motor Manager - Identification Page&lt;/LI&gt;&lt;LI&gt;Uncheck Allow Rotation&lt;/LI&gt;&lt;LI&gt;Run Electrical Identification&lt;/LI&gt;&lt;LI&gt;Go to Speed Control&lt;/LI&gt;&lt;LI&gt;Try to spin your motor&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I don't have much confidence that this will work, but you can give it a shot.&lt;/P&gt;&lt;P&gt;My advice would be to switch to the other device and start from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:54:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Motor-Suite/KMS-Position-Control/m-p/633654#M137</guid>
      <dc:creator>linestream-adam</dc:creator>
      <dc:date>2017-02-15T21:54:29Z</dc:date>
    </item>
  </channel>
</rss>

