<?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: Safe Positions for tool change/rotation in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255822#M5441</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can call/add X Y Z B home positions but is it safe to call all in a single line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 08:01:55 GMT</pubDate>
    <dc:creator>KrupalVala</dc:creator>
    <dc:date>2021-04-21T08:01:55Z</dc:date>
    <item>
      <title>Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255144#M5440</link>
      <description>&lt;P&gt;I have attached my post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the machine to move to the safe position: X 7.5 , Y 0 , Z 0 , B0 , Z0 on tool change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also need the machine to move to the same safe position before it rotates to start the next operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently it's not going to a safe position before it attempts to change the tool or to start the next op and this could cause a crash&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 23:55:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255144#M5440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-20T23:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255822#M5441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can call/add X Y Z B home positions but is it safe to call all in a single line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 08:01:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255822#M5441</guid>
      <dc:creator>KrupalVala</dc:creator>
      <dc:date>2021-04-21T08:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255834#M5442</link>
      <description>I'd prefer to retract z, then rotate B 0, then go to X, Y home. I believe&lt;BR /&gt;this is safest&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2021 08:08:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255834#M5442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-21T08:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255861#M5443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have added Z and B Homing position in a simple way.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; // save tool change position
    if (insertToolCall &amp;amp;&amp;amp; !isFirstSection()) {
      writeBlock(gFormat.format(53), "Z" + xyzFormat.format(0)); //add the code to get Z safe positon code
      writeBlock(gFormat.format(53), "B" + xyzFormat.format(0)); //add the code to get B safe position code
      if (properties.safeToolChangePositionX || properties.safeToolChangePositionY) {
        writeBlock(gFormat.format(53), conditional(properties.safeToolChangePositionX, "X" + xyzFormat.format(0)), conditional(properties.safeToolChangePositionY, "Y" + xyzFormat.format(0)));
      }
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please test the post and let me know if you want to add or change in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 08:27:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10255861#M5443</guid>
      <dc:creator>KrupalVala</dc:creator>
      <dc:date>2021-04-21T08:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10291004#M5444</link>
      <description>&lt;P&gt;This fix works great for when it does a tool change and a new operation comes up, but we still have an issue where we would like it to do this same series of moves between operations when there is no tool change. Is the "!isFirstSection()"&lt;/P&gt;&lt;P&gt;&amp;nbsp;code specifying a new operation?&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:49:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10291004#M5444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-04T23:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10294788#M5445</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;For that you need to add below codes at the end of a&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="font-family: inherit;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;onSectionEnd&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;()&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;{ .&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; forceAny();

 //Add Below codes from here...
   writeRetract(Z); //Go M140
      writeBlock(gFormat.format(53), "Z" + xyzFormat.format(0)); //add the code to get Z safe positon code
      writeBlock(gFormat.format(53), "B" + xyzFormat.format(0)); //add the code to get B safe position code
      if (properties.safeToolChangePositionX || properties.safeToolChangePositionY) {
        writeBlock(gFormat.format(53), conditional(properties.safeToolChangePositionX, "X" + xyzFormat.format(0)), conditional(properties.safeToolChangePositionY, "Y" + xyzFormat.format(0)));
      }
      // to here&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:25:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10294788#M5445</guid>
      <dc:creator>KrupalVala</dc:creator>
      <dc:date>2021-05-06T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10381026#M5446</link>
      <description>&lt;P&gt;This post has been working great for several weeks, however I just identified a problem. When two operations in a row utilize the same tool and the same rotation, the machine rotates to our defined home (z0 B0... etc) between the two operations but then it doesn't rotate back and still thinks it's in the correct work plane. It then starts the next operation in a totally incorrect workplane and crashes. Is there any way to fix this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is our most recent post version&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 23:05:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10381026#M5446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-10T23:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10381702#M5447</link>
      <description>&lt;P&gt;HI&amp;nbsp;@Anonymous&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please add below condition right after the previously added codes.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt; if (currentSection.isMultiAxis() || (!is3D() &amp;amp;&amp;amp; !currentSection.isMultiAxis())) {
        writeBlock(gRotationModal.format(69)); // cancel frame
        forceWorkPlane();
      }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 07:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10381702#M5447</guid>
      <dc:creator>KrupalVala</dc:creator>
      <dc:date>2021-06-11T07:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Safe Positions for tool change/rotation</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10383281#M5448</link>
      <description>&lt;P&gt;That seems to work now. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 17:14:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/safe-positions-for-tool-change-rotation/m-p/10383281#M5448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-11T17:14:58Z</dc:date>
    </item>
  </channel>
</rss>

