<?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: Help adding tool Breakage detection to post in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8526905#M12510</link>
    <description>Hello I've run into another problem with this on my Laser side, it looks like certain tools also need a  VC115=1.0 added in the post. It would need to look like this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;M3 S2000&lt;BR /&gt;&lt;BR /&gt;VC115=1.0&lt;BR /&gt;&lt;BR /&gt;CALL O9608 PH=14. PX=0. PM=1. PQ=0.02 PW=0.&lt;BR /&gt;&lt;BR /&gt;M5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
    <pubDate>Wed, 16 Jan 2019 15:38:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-16T15:38:49Z</dc:date>
    <item>
      <title>Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8513073#M12501</link>
      <description>&lt;P&gt;Hello, I was hoping someone could help me.&amp;nbsp; I'd like to add tool breakage detection to my post.&amp;nbsp; I'm using the standard okuma milling post and my machine has a blum laser.&amp;nbsp; I would like my post to automatically add some code before every tool change the check for tool breakage.&amp;nbsp; The code needed would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M3 S2000&lt;/P&gt;
&lt;P&gt;CALL O9608 PH=50. PX=0. PM=1. PQ=0.02 PW=0.&lt;/P&gt;
&lt;P&gt;M5&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've made many simple post changes in the past, but this is a bit over my head.&lt;/P&gt;
&lt;P&gt;One thing to note the PH=50. is call up the tool offset to use when checking so this would need to be driven off of whatever tool is in the spindle. For example tool 8 would be PH=8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 13:54:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8513073#M12501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-10T13:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8518119#M12502</link>
      <description>&lt;P&gt;It is pretty straight forward to get this output.&amp;nbsp; First add the following function to the post, you can place it in front of onSection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function checkTool(_tool) {
  writeBlock(mFormat.format(3), sOutput.format(2000));
  writeBlock("CALL", "O9608", "PH="+_tool.number, "PX=0.", "PM=1.", "PQ=0.02", "PW=0.");
  writeBlock(mFormat.format(5));
}&lt;/PRE&gt;
&lt;P&gt;Next add the following line in onSection just prior to the tool change.&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;    checkTool(tool);&lt;/STRONG&gt;&lt;/FONT&gt;
    if (properties.preloadTool &amp;amp;&amp;amp; !isFirstSection()) {
      writeComment("T" + toolFormat.format(tool.number));
      writeBlock(mFormat.format(6));
    } else {
      writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));
    }&lt;/PRE&gt;
&lt;P&gt;This should get you the desired output.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 15:37:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8518119#M12502</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-01-12T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8520634#M12503</link>
      <description>Thank you Bob, this is really close, the only thing is that it's outputting the height offset for the tool that it is about to change to, not the tool in the spindle.  Did I do something wrong or does something else need changing?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you again&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8520634#M12503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-14T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8520790#M12504</link>
      <description>&lt;P&gt;Yep, I should have noticed that the tool check is being done before the tool change.&amp;nbsp; Modify the call to &lt;EM&gt;checkTool&lt;/EM&gt; that you added to &lt;EM&gt;onSection&lt;/EM&gt; to look like this to check the tool currently loaded into the spindle.&lt;/P&gt;
&lt;PRE&gt;    if (!isFirstSection()) {
      checkTool(getPreviousSection().getTool());
    }&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:52:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8520790#M12504</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-01-14T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8520931#M12505</link>
      <description>Sorry, I'm still having some issues I think I'm missing something as to how to put this in the post.  Whenever I add this part in it won't post and gives me an error.  One other thing I noticed is that it does this at the beginning of the program before the first tool change, I could see this causing some major issues, is there a way to get it to not check in the beginning before the first tool change?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the help&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jan 2019 16:41:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8520931#M12505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-14T16:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523131#M12506</link>
      <description>&lt;P&gt;Your code should look like the following after inserting the new code.&amp;nbsp; You will notice that there is a check for the first operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;    if (!isFirstSection()) { &lt;STRONG&gt;// don't check tool on first operation&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;      checkTool(getPreviousSection().getTool());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;    }&lt;/FONT&gt;
    if (properties.preloadTool &amp;amp;&amp;amp; !isFirstSection()) {
      writeComment("T" + toolFormat.format(tool.number));
      writeBlock(mFormat.format(6));
    } else {
      writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));
    }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 12:31:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523131#M12506</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-01-15T12:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523215#M12507</link>
      <description>Thank you Bob, this is closer its outputting the proper code but is still outputting the code with the tool its about to change to.&lt;BR /&gt;&lt;BR /&gt;(2D Adaptive1)&lt;BR /&gt;M09&lt;BR /&gt;M01&lt;BR /&gt;M03 S2000&lt;BR /&gt;CALL O9608 PH=3 PX=0. PM=1. PQ=0.02 PW=0.&lt;BR /&gt;M05&lt;BR /&gt;M03 S2000&lt;BR /&gt;CALL O9608 PH=1 PX=0. PM=1. PQ=0.02 PW=0.&lt;BR /&gt;M05&lt;BR /&gt;(T3)&lt;BR /&gt;M06&lt;BR /&gt;G30 P1&lt;BR /&gt;(T3)&lt;BR /&gt;G116 T3&lt;BR /&gt;T60&lt;BR /&gt;S5500 M03&lt;BR /&gt;&lt;BR /&gt;This is an example of what I get, it first run the tool breakage check with the wrong tool offset, the one its changing too, and then the proper one.&lt;BR /&gt;&lt;BR /&gt;Thanks so much&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:01:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523215#M12507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-15T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523238#M12508</link>
      <description>&lt;P&gt;I think you left the original call to &lt;EM&gt;checkTool&lt;/EM&gt; in your code.&amp;nbsp; There should only be one call and it should be the one in the &lt;EM&gt;isFirstSection&lt;/EM&gt;() conditional.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:13:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523238#M12508</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-01-15T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523296#M12509</link>
      <description>&lt;P&gt;Thank you, yes I had forgotten to take out the one check tool.&amp;nbsp; It works perfectly now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for all your help&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8523296#M12509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-15T13:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8526905#M12510</link>
      <description>Hello I've run into another problem with this on my Laser side, it looks like certain tools also need a  VC115=1.0 added in the post. It would need to look like this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;M3 S2000&lt;BR /&gt;&lt;BR /&gt;VC115=1.0&lt;BR /&gt;&lt;BR /&gt;CALL O9608 PH=14. PX=0. PM=1. PQ=0.02 PW=0.&lt;BR /&gt;&lt;BR /&gt;M5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jan 2019 15:38:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8526905#M12510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-16T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8528260#M12511</link>
      <description>&lt;P&gt;You can enter the following conditional in the &lt;EM&gt;checkTool&lt;/EM&gt; function to output this line.&amp;nbsp; If you take a look at this code you can see how easy it is to add output to the NC file.&amp;nbsp; Since you state that "some" tools need this value, I included a conditional that you will have to add so that the line is not output with all tools.&amp;nbsp; If you want it output with all tools you can simply replace &lt;EM&gt;conditional&lt;/EM&gt; with &lt;EM&gt;true&lt;/EM&gt;.&lt;/P&gt;
&lt;PRE&gt;function checkTool(_tool) {
  writeBlock(mFormat.format(3), sOutput.format(2000));&lt;BR /&gt;  &lt;FONT color="#FF0000"&gt;if (&lt;EM&gt;conditional&lt;/EM&gt;) {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;    writeBlock("&lt;SPAN&gt;VC115=1.0");&lt;BR /&gt;&lt;/SPAN&gt;  }&lt;/FONT&gt;
  writeBlock("CALL", "O9608", "PH="+_tool.number, "PX=0.", "PM=1.", "PQ=0.02", "PW=0.");
  writeBlock(mFormat.format(5));
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Jan 2019 22:30:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8528260#M12511</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-01-16T22:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8529616#M12512</link>
      <description>&lt;P&gt;Thank you that gives me everything I need&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 13:04:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8529616#M12512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-17T13:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8879193#M12513</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;will this work with the standard siemens 840d post i would love tool breakage detection for my machines&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:40:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8879193#M12513</guid>
      <dc:creator>s.noke71</dc:creator>
      <dc:date>2019-06-28T12:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help adding tool Breakage detection to post</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8883450#M12514</link>
      <description>&lt;P&gt;The basic logic would work, but the actual output would have to be modified to match the Siemens 840D requirements.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 17:30:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/help-adding-tool-breakage-detection-to-post/m-p/8883450#M12514</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-07-01T17:30:24Z</dc:date>
    </item>
  </channel>
</rss>

