<?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: Fusion 360/Haas: How can I move my table to a specific place at the end of a run? in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-360-haas-how-can-i-move-my-table-to-a-specific-place-at/m-p/12934426#M692</link>
    <description>&lt;P&gt;The simplest way to do this is to comment out the following code in the onClose function.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  /*if (getProperty("homePositionCenter")) { // &amp;lt;&amp;lt;&amp;lt; ADD /* TO THE BEGINNING OF THE LINE
    if (hasParameter("part-upper-x") &amp;amp;&amp;amp; hasParameter("part-lower-x")) {
      var xHome = (getParameter("part-upper-x") + getParameter("part-lower-x")) / 2;
    } else {
      var xHome = machineConfiguration.hasHomePositionX() ? machineConfiguration.getHomePositionX() : toPreciseUnit(0, MM);
    }
    writeBlock(gMotionModal.format(0), "X" + xyzFormat.format(xHome)); // only desired when X is in the table
    writeRetract(Y);
  }*/ // &amp;lt;&amp;lt;&amp;lt; ADD */ TO THE END OF THE LINE&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the add these lines directly after the lines you commented out.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  if (getProperty("homePositionCenter")) {
    writeBlock(gFormat.format(53), gMotionModal.format(0), "X" + xyzFormat.format(toPreciseUnit(-16, IN)), "Y" + xyzFormat.format(0));
  }&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 01 Aug 2024 22:06:56 GMT</pubDate>
    <dc:creator>bob.schultz</dc:creator>
    <dc:date>2024-08-01T22:06:56Z</dc:date>
    <item>
      <title>Fusion 360/Haas: How can I move my table to a specific place at the end of a run?</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-360-haas-how-can-i-move-my-table-to-a-specific-place-at/m-p/12931550#M691</link>
      <description>&lt;P&gt;Hi. I use Fusion 360 with the &lt;A href="https://cam.autodesk.com/posts/post.php?name=haas" target="_blank" rel="noopener"&gt;Haas NGC post&lt;/A&gt; provided by Autodesk to control my Haas Mini Mill.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the "Home Position Center" variable set to true so I don't have to click it every time in the post dialogue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-31 at 12.49.33 PM.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1393006iC3D2F9DCCE8545AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-31 at 12.49.33 PM.png" alt="Screenshot 2024-07-31 at 12.49.33 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gets me most of the way there [At the end of each run the table moves forward in Y as much as possible to the operator and then in X to center the table to the spindle] but the problem is the door is offset to the right of the spindle. So unless I manually edit the nc program to go to "X-16." every time the vice is too far right to quickly access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like the table to move forward in Y and in X to -16 at the same time at the end of the run so the vice/part is centered to the door, not the spindle. Not forward in Y &lt;EM&gt;and then&lt;/EM&gt; moving to -16. in X like a dogleg path. I'd like both X/Y to move at the same time so the table moves diagonally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really know next to nothing about programming. But I don't want someone to do this for me. I like downloading the latest post every few months when Autodesk updates the post so I'd need to keep making this edit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure this is possible and probably super easy but I don't think I can figure it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: So basically I just want every program I post to have this line right before the M30:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-31 at 1.10.42 PM.png" style="width: 766px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1393009i0068802E62B8853C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-31 at 1.10.42 PM.png" alt="Screenshot 2024-07-31 at 1.10.42 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 17:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-360-haas-how-can-i-move-my-table-to-a-specific-place-at/m-p/12931550#M691</guid>
      <dc:creator>eerier_bleach0f</dc:creator>
      <dc:date>2024-07-31T17:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fusion 360/Haas: How can I move my table to a specific place at the end of a run?</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-360-haas-how-can-i-move-my-table-to-a-specific-place-at/m-p/12934426#M692</link>
      <description>&lt;P&gt;The simplest way to do this is to comment out the following code in the onClose function.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  /*if (getProperty("homePositionCenter")) { // &amp;lt;&amp;lt;&amp;lt; ADD /* TO THE BEGINNING OF THE LINE
    if (hasParameter("part-upper-x") &amp;amp;&amp;amp; hasParameter("part-lower-x")) {
      var xHome = (getParameter("part-upper-x") + getParameter("part-lower-x")) / 2;
    } else {
      var xHome = machineConfiguration.hasHomePositionX() ? machineConfiguration.getHomePositionX() : toPreciseUnit(0, MM);
    }
    writeBlock(gMotionModal.format(0), "X" + xyzFormat.format(xHome)); // only desired when X is in the table
    writeRetract(Y);
  }*/ // &amp;lt;&amp;lt;&amp;lt; ADD */ TO THE END OF THE LINE&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the add these lines directly after the lines you commented out.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  if (getProperty("homePositionCenter")) {
    writeBlock(gFormat.format(53), gMotionModal.format(0), "X" + xyzFormat.format(toPreciseUnit(-16, IN)), "Y" + xyzFormat.format(0));
  }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Aug 2024 22:06:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-360-haas-how-can-i-move-my-table-to-a-specific-place-at/m-p/12934426#M692</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2024-08-01T22:06:56Z</dc:date>
    </item>
  </channel>
</rss>

