<?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: Insert code just after Z feeds to depth and once again before retract in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6597832#M21126</link>
    <description>&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help has been very much appreciated. I haven't had time to fully work it out as I have been working at customer's facility back in Ohio. The machine is very special, so there were many other things to work out as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code seems to work well and do just what I need for 3ax cuts, but not 5ax cuts. The issue is that it is turning the Jet off multiple times(4/5ax only); the code still works though.&amp;nbsp; It is most likely because I haven't had time to actually work on it privately yet. I am pretty certain that it's something that I will find quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be off-site again this week, so the final work on this can't happen until next week. I will definitely post up then or before when working at night.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 11:02:24 GMT</pubDate>
    <dc:creator>mwhitten123</dc:creator>
    <dc:date>2016-10-03T11:02:24Z</dc:date>
    <item>
      <title>Insert code just after Z feeds to depth and once again before retract</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6587658#M21124</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to "Insert code just after Z feeds to depth and once again before retract". It's for a Water Jet machine, we need to turn the Jet on just after feeding to depth and off just before retract.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;G0 X &amp;nbsp;Y &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;move to start position&lt;/P&gt;&lt;P&gt;Z.40&lt;/P&gt;&lt;P&gt;G1 Z &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;(Z feeds to cut depth just above part)&lt;/P&gt;&lt;P&gt;codes for Water Jet on goes here &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;X Y&lt;/P&gt;&lt;P&gt;X Y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;part shape is cut out&lt;/P&gt;&lt;P&gt;X Y&lt;/P&gt;&lt;P&gt;X Y&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;codes for Water Jet off goes here &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;G0 Z.40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&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;Is this possible within the HSMWorks platform? If so, does anyone have a clue for me? I am guessing that it is some fancy post-work, so maybe someone has a sample post that contains the logic that I could use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on this is very much appreciated, so thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6587658#M21124</guid>
      <dc:creator>mwhitten123</dc:creator>
      <dc:date>2016-09-27T18:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert code just after Z feeds to depth and once again before retract</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6589470#M21125</link>
      <description>&lt;P&gt;Hello Michael,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some sample code you can use to achieve your results. &amp;nbsp;Since I don't have the post you are working with (it is always recommended to supply the part, post, and sample output with your comments in it explaining the changes you want to see) I am posting the suggested changes here. &amp;nbsp;The sample code is basic in nature and may have to be expanded if you have situations other than what you listed here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will also need to change the writeComment lines to writeBlock calls that contain the codes you require to turn on and off the Water Jet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// collected state
(insert this line at the start of the post)
&lt;STRONG&gt;var jetActive = false;
&lt;/STRONG&gt;
function onRapid(_x, _y, _z) {
  var x = xOutput.format(_x);
  var y = yOutput.format(_y);
  var z = zOutput.format(_z);

(insert this code in the onRapid function)
&lt;STRONG&gt;  if (jetActive &amp;amp;&amp;amp; z) {
    writeComment("Insert Waterjet off codes here");
    jetActive = false;
  }&lt;/STRONG&gt;

(insert this code in the onLinear function)
      writeBlock(gMotionModal.format(1), x, y, z, f);
&lt;STRONG&gt;      if (!jetActive &amp;amp;&amp;amp; z) {
        writeComment("Insert Waterjet on codes here");
        jetActive = true;
      }&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;If this does not work for you, then please supply the information mentioned above detailing what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 13:58:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6589470#M21125</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2016-09-28T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Insert code just after Z feeds to depth and once again before retract</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6597832#M21126</link>
      <description>&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help has been very much appreciated. I haven't had time to fully work it out as I have been working at customer's facility back in Ohio. The machine is very special, so there were many other things to work out as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code seems to work well and do just what I need for 3ax cuts, but not 5ax cuts. The issue is that it is turning the Jet off multiple times(4/5ax only); the code still works though.&amp;nbsp; It is most likely because I haven't had time to actually work on it privately yet. I am pretty certain that it's something that I will find quickly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be off-site again this week, so the final work on this can't happen until next week. I will definitely post up then or before when working at night.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 11:02:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6597832#M21126</guid>
      <dc:creator>mwhitten123</dc:creator>
      <dc:date>2016-10-03T11:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insert code just after Z feeds to depth and once again before retract</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6630850#M21127</link>
      <description>&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code you posted works perfectly. I made an error when adding to 5ax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 05:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/insert-code-just-after-z-feeds-to-depth-and-once-again-before/m-p/6630850#M21127</guid>
      <dc:creator>mwhitten123</dc:creator>
      <dc:date>2016-10-19T05:41:05Z</dc:date>
    </item>
  </channel>
</rss>

