<?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 HURCO Post tweak advice in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7802818#M15350</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could anyone advise how to remove or comment out code in the post so that we can achieve the result in the modified program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for any assistance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 12:37:43 GMT</pubDate>
    <dc:creator>Tekniplaz</dc:creator>
    <dc:date>2018-02-23T12:37:43Z</dc:date>
    <item>
      <title>HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7802818#M15350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could anyone advise how to remove or comment out code in the post so that we can achieve the result in the modified program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for any assistance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 12:37:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7802818#M15350</guid>
      <dc:creator>Tekniplaz</dc:creator>
      <dc:date>2018-02-23T12:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7804995#M15351</link>
      <description>&lt;P&gt;Hello Tony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To remove the M59 code you can comment out the following lines in the onCommand function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;case COMMAND_START_CHIP_TRANSPORT:
    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;//&lt;/STRONG&gt;&lt;/FONT&gt; writeBlock(mFormat.format(59));
    return;
  case COMMAND_STOP_CHIP_TRANSPORT:
    &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;//&lt;/FONT&gt;&lt;/STRONG&gt; writeBlock(mFormat.format(61));
    return;&lt;/PRE&gt;
&lt;P&gt;The G0 M140 block is used to retract the Z-axis.&amp;nbsp; If you want it to use a G53 block to retract the Z-axis at the start of a tool change sequence, then modify the following line at the top of the post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var useMultiAxisFeatures = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/PRE&gt;
&lt;P&gt;If you don't want the safety retract then you can comment out the following code in the onSection function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    // retract to safe plane
    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/*&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;    retracted = true;
    if (useMultiAxisFeatures) {
      writeBlock(gFormat.format(0), mFormat.format(140)); // retract
    } else {
      writeBlock(gAbsIncModal.format(90), gFormat.format(53), "Z" + xyzFormat.format(0)); // retract
    }&lt;BR /&gt;    &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;*/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;To get rid of the lines at the end of the program and replace them with a stop code (M00) comment out the following lines in onClose and add the command to output the stop code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/*&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;  if (useMultiAxisFeatures) {
    writeBlock(gFormat.format(0), mFormat.format(140)); // retract
  } else {
    writeBlock(gAbsIncModal.format(90), gFormat.format(53), "Z" + xyzFormat.format(0)); // retract
  }
  zOutput.reset();

  if (!machineConfiguration.hasHomePositionX() &amp;amp;&amp;amp; !machineConfiguration.hasHomePositionY()) {
    writeBlock(gFormat.format(28), gAbsIncModal.format(91), "X" + xyzFormat.format(0), "Y" + xyzFormat.format(0)); // return to home
  } else {
    var homeX;
    if (machineConfiguration.hasHomePositionX()) {
      homeX = "X" + xyzFormat.format(machineConfiguration.getHomePositionX());
    }
    var homeY;
    if (machineConfiguration.hasHomePositionY()) {
      homeY = "Y" + xyzFormat.format(machineConfiguration.getHomePositionY());
    }
    writeBlock(gAbsIncModal.format(90), gFormat.format(53), gMotionModal.format(0), homeX, homeY);
  }
  
  onCommand(COMMAND_UNLOCK_MULTI_AXIS);
  writeBlock(gFormat.format(69)); // cancel frame
  writeBlock(mFormat.format(31)); // rotary axes encoder reset
  
  writeBlock(
    gMotionModal.format(0),
    conditional(machineConfiguration.isMachineCoordinate(0), "A" + abcFormat.format(0)),
    conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(0)),
    conditional(machineConfiguration.isMachineCoordinate(2), "C" + abcFormat.format(0))
  );

  onCommand(COMMAND_LOCK_MULTI_AXIS);

  if (forceMultiAxisIndexing || !is3D() || machineConfiguration.isMultiAxisConfiguration()) {
    writeBlock(mFormat.format(127)); // cancel shortest path traverse
  }

  onCommand(COMMAND_STOP_CHIP_TRANSPORT);
  onImpliedCommand(COMMAND_END);
  onImpliedCommand(COMMAND_STOP_SPINDLE);
  writeBlock(mFormat.format(2)); // end of program, stop spindle, coolant off
  writeBlock("E");&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;*/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;  onCommand(COMMAND_STOP);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 00:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7804995#M15351</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2018-02-24T00:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7805331#M15352</link>
      <description>&lt;P&gt;Thank you very much for the help on this.&lt;/P&gt;&lt;P&gt;For the most part it worked except for getting rid of the end lines and adding M00. The post just errors when making these changes, is there an alternative we could try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 07:32:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7805331#M15352</guid>
      <dc:creator>Tekniplaz</dc:creator>
      <dc:date>2018-02-24T07:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7805840#M15353</link>
      <description>&lt;P&gt;Can you provide the log file and the post processor you modified so I can see what is causing the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 16:31:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7805840#M15353</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2018-02-24T16:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7818998#M15354</link>
      <description>&lt;P&gt;Hi Bob, sorry for the delay.&lt;/P&gt;&lt;P&gt;Please see attached the post and log file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:30:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7818998#M15354</guid>
      <dc:creator>Tekniplaz</dc:creator>
      <dc:date>2018-03-01T11:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7819189#M15355</link>
      <description>&lt;P&gt;Hello Tony,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You removed the '}' at the end of the onClose function.&amp;nbsp; Add this back and your post will run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  onCommand(COMMAND_STOP_CHIP_TRANSPORT);
  onImpliedCommand(COMMAND_END);
  onImpliedCommand(COMMAND_STOP_SPINDLE);
  writeBlock(mFormat.format(2)); // end of program, stop spindle, coolant off
  writeBlock("E");
*/
  onCommand(COMMAND_STOP);
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;} // add this line&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 12:44:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7819189#M15355</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2018-03-01T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: HURCO Post tweak advice</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7819347#M15356</link>
      <description>&lt;P&gt;Brilliant thank you Bob!&lt;/P&gt;&lt;P&gt;All appears to be OK now.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:34:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/hurco-post-tweak-advice/m-p/7819347#M15356</guid>
      <dc:creator>Tekniplaz</dc:creator>
      <dc:date>2018-03-01T13:34:35Z</dc:date>
    </item>
  </channel>
</rss>

