<?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: Siemens SINUMERIK 840D need to add M5 in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9057479#M10370</link>
    <description>&lt;P&gt;This could be a bit more difficult to implement, since the post processor does not know when the last retract of an operation is.&amp;nbsp; What is the reason that the M5 code needs to be output on the retraction to the clearance plane and is it for all operations or just for drilling cycles?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2019 16:42:18 GMT</pubDate>
    <dc:creator>bob.schultz</dc:creator>
    <dc:date>2019-09-30T16:42:18Z</dc:date>
    <item>
      <title>Siemens SINUMERIK 840D need to add M5</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9026354#M10365</link>
      <description>&lt;P&gt;I need to add an M5 at the end of each cycle prior to a tool change, currently if the tool is over 9,000 RPM I get a spindle position error. Getting a little tired of manually adding it in every time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing line 2557 from OnImpliedCommand to OnCommand, that worked but it only adds the M5 at the end of the program, not between tool changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried adding on M5 on line 2540 before the SUPA Command. This works perfect, except when I have multiple work offsets. It turns off the spindle when it retracts before switching to the next work offset, but then there is no command to turn the spindle on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 03:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9026354#M10365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-16T03:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Siemens SINUMERIK 840D need to add M5</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9041760#M10366</link>
      <description>&lt;P&gt;As you found out, adding the stop spindle command to the &lt;EM&gt;writeRetract&lt;/EM&gt; function will stop the spindle each time the Z-axis is retracted.&amp;nbsp; The previous section is actually ended at the top of the &lt;EM&gt;onSection&lt;/EM&gt; function, so you can add the following lines at line 1097 to stop the spindle whenever there is a tool change.&lt;/P&gt;
&lt;PRE&gt;if (insertToolCall || newWorkOffset || newWorkPlane) {
    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;if (insertToolCall &amp;amp;&amp;amp; !isFirstSection()) {
      onCommand(COMMAND_STOP_SPINDLE);
    }&lt;/STRONG&gt;&lt;/FONT&gt;
    
    // retract to safe plane
    writeRetract(Z);

    if (newWorkPlane &amp;amp;&amp;amp; useMultiAxisFeatures) {
      setWorkPlane(new Vector(0, 0, 0), false); // reset working plane
    }
  }&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Sep 2019 22:11:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9041760#M10366</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-09-23T22:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Siemens SINUMERIK 840D need to add M5</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9051564#M10367</link>
      <description>&lt;P&gt;Thanks Bob, that worked perfect, only problem is now I realized I need the M5 to be moved up one line, needs to be at the end of the Z retract. Being one line below doesn't fix the problem at the machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll trying editing this myself, but if you happen to see this message before I reply back, your help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 00:50:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9051564#M10367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-27T00:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Siemens SINUMERIK 840D need to add M5</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9052694#M10368</link>
      <description>&lt;P&gt;It is easy enough to move the spindle off block to wherever you need it.&amp;nbsp; To place it after the Z-retract block simply move it to here.&lt;/P&gt;
&lt;PRE&gt;if (insertToolCall || newWorkOffset || newWorkPlane) {&lt;BR /&gt;
    // retract to safe plane
    writeRetract(Z);&lt;BR /&gt;&lt;BR /&gt;    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;if (insertToolCall &amp;amp;&amp;amp; !isFirstSection()) {&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;      onCommand(COMMAND_STOP_SPINDLE);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;    }&lt;/STRONG&gt; &lt;/FONT&gt;

    if (newWorkPlane &amp;amp;&amp;amp; useMultiAxisFeatures) {
      setWorkPlane(new Vector(0, 0, 0), false); // reset working plane
    }
  }&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 13:07:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9052694#M10368</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-09-27T13:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Siemens SINUMERIK 840D need to add M5</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9053986#M10369</link>
      <description>&lt;P&gt;Sorry should have been more specific. I need it to move the the initial Z retract (to the CLRNC Plane)&lt;/P&gt;&lt;P&gt;see example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N50 X1.5375&lt;BR /&gt;N51 MCALL&lt;BR /&gt;N52 G0 Z0.465 M5&amp;nbsp; &amp;nbsp;&amp;lt;----- This is where I need it&lt;BR /&gt;N54 M5&amp;nbsp; &amp;nbsp;&amp;lt;-----This is where your initial recommend change puts it&lt;BR /&gt;N55 G0 SUPA Z0 D0&amp;nbsp; &amp;nbsp; &amp;nbsp; (end of cycle)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 22:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9053986#M10369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-09-27T22:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Siemens SINUMERIK 840D need to add M5</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9057479#M10370</link>
      <description>&lt;P&gt;This could be a bit more difficult to implement, since the post processor does not know when the last retract of an operation is.&amp;nbsp; What is the reason that the M5 code needs to be output on the retraction to the clearance plane and is it for all operations or just for drilling cycles?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 16:42:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/siemens-sinumerik-840d-need-to-add-m5/m-p/9057479#M10370</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-09-30T16:42:18Z</dc:date>
    </item>
  </channel>
</rss>

