<?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 Betreff: Tool Breakage Control Datron in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11692981#M2700</link>
    <description>&lt;P&gt;None a hint ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It cannot be standard that if I select the tool breakage control for one tool, this is permanently valid in the program on the machine for all tools.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 11:09:36 GMT</pubDate>
    <dc:creator>U.Uhl</dc:creator>
    <dc:date>2023-01-20T11:09:36Z</dc:date>
    <item>
      <title>Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11656336#M2698</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question or problem again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's about the tool breakage control for a Datron.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, nothing is stored in the PP, and if I store the following command, it checks the breakage of every tool or outputs it incorrectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  case COMMAND_BREAK_CONTROL:
  writeBlock("Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;");
  return;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The whole thing then appears in the machine program as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;.
.
.
Axyz 0, 56.48511, 16.06038, -7.6, 0, 0;
Axyz 1, 56.48511, 16.06038, 15, 0, 0;
Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;
) Sm_2d_kontur1__1;
Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;
(
T3d 0, 0, 1, 15, 17, 10, 10, 10, 10, 10, 10;
Konturglaettung 1, 0.012, 0.1, 110, 1;
Axyz 1, -4.8, 204.03, z6p, 0, 0;
.
.
.
Axyz 1, 515.79999, 163.2196, 15, 0, 0;
Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;
) Sm_2d_kontur7__2;&lt;/LI-CODE&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;&lt;P&gt;The command between " ) Sm_2d_kontur1__1;&lt;BR /&gt;Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;&lt;BR /&gt;( " is wrongly positione&amp;nbsp;and the machine shows an error when opening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even after the second tool, no breakage check should be carried out.&lt;/P&gt;&lt;P&gt;(Program the whole thing only once in Fusion after Tool-D4, see image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone a suggestion&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 11:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11656336#M2698</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-01-04T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11656337#M2699</link>
      <description>&lt;P&gt;Here are also the Test Programm (changed .mcr to .txt)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 11:16:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11656337#M2699</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-01-04T11:16:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11692981#M2700</link>
      <description>&lt;P&gt;None a hint ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It cannot be standard that if I select the tool breakage control for one tool, this is permanently valid in the program on the machine for all tools.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 11:09:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11692981#M2700</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-01-20T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11759213#M2701</link>
      <description>&lt;P&gt;So, I made another attempt after searching here in the forum.&lt;/P&gt;&lt;P&gt;The following code doesn't work either, despite everything, it writes the break check in the code several times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  if (tool.breakControl){
    if (((getCurrentSectionId() + 1) &amp;gt;= getNumberOfSections()) ||
        (tool.number != getNextSection().getTool().number)) {
      onCommand(COMMAND_BREAK_CONTROL);
    }
  }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Feb 2023 12:02:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11759213#M2701</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-02-16T12:02:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11767084#M2702</link>
      <description>&lt;P&gt;Ok, a little more tinkering with the whole thing. now he writes me the command only once, but in the "wrong section".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   if (((getCurrentSectionId() + 1) &amp;gt;= getNumberOfSections()) ||
   (tool.number != getNextSection().getTool().number &amp;amp;&amp;amp;
   (tool.breakControl))) {
 writeBlock("Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;");
} else {}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words, the breakage check is not in the section or for the tool where it is actually supposed to be. but in the next or for the next tool.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 11:49:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11767084#M2702</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-02-20T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11775376#M2703</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10938893"&gt;@U.Uhl&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;to control the place of the output of manual NC commands is a bit tricky, and even more in the Datron post. &lt;BR /&gt;To get the break contol command into your desired place, please do the following into your postprocessor:&lt;BR /&gt;&lt;BR /&gt;1. Add the following code into your post:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;var manualNC = [];
function onManualNC(command, value) {
  manualNC.push({command:command, value:value});
}

function executeManualNC(command) {
  for (var i = 0; i &amp;lt; manualNC.length; ++i) {
    if (!command || (command == manualNC[i].command)) {
      switch (manualNC[i].command) {
      case COMMAND_BREAK_CONTROL:
        writeBlock("Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;");
        break;
      default:
        expandManualNC(manualNC[i].command, manualNC[i].value);
      }
    }
  }
  for (var i = manualNC.length - 1; i &amp;gt;= 0; --i) {
    if (!command || (command == manualNC[i].command)) {
      manualNC.splice(i, 1);
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Remove the code in onSectionEnd where COMMAND_BREAK_CONTROL is called (in case you dont want a tool break control at every tool change)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Add&lt;BR /&gt;&lt;STRONG&gt;executeManualNC();&lt;/STRONG&gt; &lt;BR /&gt;into the desired place where you would like to output the manual NC commands, for example somewhere in onSection() or onSectionEnd().&lt;BR /&gt;&lt;BR /&gt;You can also refer to the postprocessor training guide &lt;A href="https://cam.autodesk.com/posts/posts/guides/Post%20Processor%20Training%20Guide.pdf" target="_blank"&gt;https://cam.autodesk.com/posts/posts/guides/Post%20Processor%20Training%20Guide.pdf&lt;/A&gt; where this is explained in chapter 5.1.2 "&lt;SPAN class="markedContent"&gt;&lt;SPAN&gt;Delay Processing of Manual NC Commands&lt;/SPAN&gt;&lt;/SPAN&gt;"&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 09:45:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11775376#M2703</guid>
      <dc:creator>AchimN</dc:creator>
      <dc:date>2023-02-23T09:45:12Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11789655#M2704</link>
      <description>&lt;P&gt;Hello Achim,&lt;/P&gt;&lt;P&gt;Many thanks for the help. I was able to test your code today, so far it works. However, there is also the problem that he gives me the "output" in the wrong section.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I place the Manual NC Output (broken tool control), after the "Machining Process". However, the postprocessor throws out the command for the "Machining process" afterwards. Say another "section" further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching the file as well as the postprocessor. (Don't be surprised, this is a test postprocessor)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:00:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11789655#M2704</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-03-01T09:00:33Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11793018#M2705</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10938893"&gt;@U.Uhl&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;not exactly sure if I understood what you mean but by looking into your sample file and your post the output is as expected. You placed a manual NC 'tool break control' before the last operation and in your post you added executeManualNC to onSectionEnd.&lt;BR /&gt;This will result in having the tool break control at the end of the last operation. When you want the tool break control command to show up at the beginning of the operation next to your manual NC command you need to move the executeManualNC call to the beginning of onSection.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 12:41:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11793018#M2705</guid>
      <dc:creator>AchimN</dc:creator>
      <dc:date>2023-03-02T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11794277#M2706</link>
      <description>&lt;P&gt;This is a bit tricky with Datron or Vector control. The code is processed according to program sections or internal subprograms.&lt;/P&gt;&lt;P&gt;Example of a section is (T3d 0,0..........Axyz........) Sm_comment_3;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the sample file I placed the&amp;nbsp;manual NC "Tool Brake Control" after the last operation with the " Mit WZB (2) FRS-ALU-D2" so that this tool is checked after processing. (We are used to it from the Siemens controls/posts, for example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the post processor does not place the whole thing in the area "(T3d....Axyz....) Sm_mitwzb2__2;"&lt;BR /&gt;but in the area "(........)Sm_ohnewzb__3;" which would be the wrong area or the wrong tool is checked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I activate :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;     if (tool.breakControl) {
        if (!isFirstSection() ||
        (tool.number != getNextSection().getTool().number &amp;amp;&amp;amp;
        (tool.breakControl))) {
         //writeBlock("Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;");
         writeWords("TAST");
         onCommand(COMMAND_BREAK_CONTROL);
     } else {}
   }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and use in the tool library the check box for the break control, then he sets me&amp;nbsp; "ToolBreakControl Command" in the right Area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this would be every time activated. I find the ManualNC output more convenient and individual.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 19:44:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11794277#M2706</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-03-02T19:44:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11796107#M2707</link>
      <description>&lt;P&gt;Hmm perhaps I dont see what you mean but its still correct to me as explained before:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AchimN_0-1677851716884.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1184185iE76B89B1ADFCEC92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AchimN_0-1677851716884.png" alt="AchimN_0-1677851716884.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Command "TEDE" is output inside of the subprogram at the end of operation "Ohne WZB". If you want to change that location you either have to move your executeManualNC around into your post or move the manual NC operation in Fusion to your desired place.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 13:58:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11796107#M2707</guid>
      <dc:creator>AchimN</dc:creator>
      <dc:date>2023-03-03T13:58:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11798602#M2708</link>
      <description>&lt;P&gt;MitWZB = with ToolBreakControl&lt;BR /&gt;OhneWZB = Without ToolBreakControl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the Siemens Control or PostProcessor I am used to inserting, in Fusion360, the "manual NC command (tool breakage)" after processing and it then checks this tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case, I would like the tool breakage check to be carried out after processing&amp;nbsp; "MitWZB".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in Fusion 360 the position is correct (for me and my habit) but in the postprocessor it is output in the wrong section.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moving the "manual NC operation" would be the simplest solution, but since I also program other controls in the CAM, that would be a change for me or the other programmer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the datron post or the Vector control it is a bit more complicated than expected &lt;span class="lia-unicode-emoji" title=":downcast_face_with_sweat:"&gt;😓&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":see_no_evil_monkey:"&gt;🙈&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 20:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11798602#M2708</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-03-04T20:14:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11800591#M2709</link>
      <description>&lt;P&gt;Ok, that indeed needs extra handling in the datron post. Where do you want the command to show up? In main or subprogram?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 07:42:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11800591#M2709</guid>
      <dc:creator>AchimN</dc:creator>
      <dc:date>2023-03-06T07:42:12Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11806422#M2710</link>
      <description>&lt;P&gt;I tested it manually on the machine.&lt;/P&gt;&lt;P&gt;In the main program it would be enough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; !##########Mit WZB (2)__2##########!
; ! ZMIN = 6!
Werkzeug T2, 0, 0, 1, 0;
Drehzahl 3, 38, 0, 30;
Dynamik 3;
Schlichten = 0.95;!m/min!
Entry = 0.75;!m/min!
Exit = 0.75;!m/min!
Eintauchen = 0.75;!m/min!
Submakro Sm_mitwzb2__2;
Wzkontr 0, 1, 0, 0, 0.05, 0, 0, 0, 0.06, 0, 0, 0;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 08:10:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11806422#M2710</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-03-08T08:10:27Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11807512#M2711</link>
      <description>&lt;P&gt;Ok, then please add the following code to your post:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;var manualNC = [];
function onManualNC(command, value) {
  var section = typeof currentSection == "undefined" ? getSection(0) : currentSection;
  manualNC.push({command:command, value:value, sectionID:section.getId()});
}

function executeManualNC(command, section) {
  for (var i = 0; i &amp;lt; manualNC.length; ++i) {
    if (manualNC[i].sectionID == section.getId()) {
      if (!command || (command == manualNC[i].command)) {
        switch (manualNC[i].command) {
        case COMMAND_BREAK_CONTROL:
          var upperTol = xyzFormat.format(toPreciseUnit(0.05, MM));
          var lowerTol = xyzFormat.format(toPreciseUnit(0.06, MM));
          writeBlock(translate("Tcheck") + " 0, 1, 0, 0, " + upperTol + ", 0, 0, 0, " + lowerTol + ", 0, 0, 0;");
          break;
        default:
          expandManualNC(manualNC[i].command, manualNC[i].value);
        }
      }
    }
  }
  for (var i = manualNC.length - 1; i &amp;gt;= 0; --i) {
    if (manualNC[i].sectionID == section.getId()) {
      if (!command || (command == manualNC[i].command)) {
        manualNC.splice(i, 1);
      }
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and add this code into the desired place where you want the manual NC code to be output:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;executeManualNC(undefined, section);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With your example, you may want to place the executeManualNC call to the writeMainProgram() function at this place:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AchimN_1-1678290934927.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1186181i45FCDD3973FD77F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AchimN_1-1678290934927.png" alt="AchimN_1-1678290934927.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 15:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11807512#M2711</guid>
      <dc:creator>AchimN</dc:creator>
      <dc:date>2023-03-08T15:56:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11890113#M2712</link>
      <description>&lt;P&gt;Thanks again for the help. So far the command works now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an additional question, is it possible to reduce the whole thing at once when using a Pattern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words, if I use the break control on a multiple pattern, it throws the command out to me multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards from Germany&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 10:21:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/11890113#M2712</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-04-12T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/12077824#M2713</link>
      <description>&lt;P&gt;Is there a way to reduce the NC output of the tool break for a pattern?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case of a pattern with 4 parts, it gives me the tool break command 4 times. But that's counterproductive in that regard.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 04:27:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/12077824#M2713</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2023-07-04T04:27:11Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/13401493#M2714</link>
      <description>&lt;P&gt;Ich muss dieses Thema doch nochmal Aufrollen, da wir Aktuell die Problematik haben mit der Werkzeugbruch Kontrolle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Laut Hersteller wird das Werkzeug getestet was nach dem "&lt;SPAN&gt;Wzkontr&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0.11&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0.11&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;;" (ToolBreakOn)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;" Befehl kommt. Dieser Befehl bleibt aber Konstant bestehen bis man diesen mit "&lt;SPAN&gt;Wzkontr&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;" (ToolBreakOff) wieder ausschaltet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aktuell ist unser Post so gestrickt das wir die Bruchkontrolle in der Werkzeugbibliotheke Aktivieren. (Also nicht über Manuelle NC-Ausgabe).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ich müsste sozusagen im Post die Vorherige Section (PreviousSection) oder Werkzeug kontrollieren ob dort die Bruchkontrolle an war und dann müsste am Anfang der nächsten Section der Befehl für "ToolBreakOff" am anfang stehen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wie wäre das am Einfachsten umzusetzten ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Beispiel:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(
T3d 0, 0, 1, 15, 17, 10, 10, 10, 10, 10, 10;
Wzkontr 0, 1, 0, 0, 0.11, 0, 0, 0, 0.11, 0, 1, 1;(ToolBreakOn)
Submakro Retractzmax;
Konturglaettung 1, 0.012, 0.1, 110, 1;
Axyz 1, 520.09998, 15, z6p, 0, 0;
Axyz 1, 520.09998, 15, 15, 0, 0;
Axyz 1, 520.09998, 15, 15, 0, 0;
Axyz 1, 520.09998, 15, 5, 0, 0;
Vorschub Eintauchen, Eintauchen, Eintauchen, Eintauchen;
Axyz 0, 520.09998, 15, -0.3, 0, 0;
Vorschub Schneiden, Schneiden, Schneiden, Schneiden;
Axyz 0, 520.09998, 85, -0.3, 0, 0;
Vorschub Exit, Exit, Exit, Exit;
) Sm_projektion1__89;
(
T3d 0, 0, 1, 15, 17, 10, 10, 10, 10, 10, 10;
Wzkontr 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0;(ToolBreakOff)
Submakro Retractzmax;
Konturglaettung 1, 0.012, 0.1, 110, 1;
Axyz 1, 520.09998, 15, z6p, 0, 0;
Axyz 1, 520.09998, 15, 15, 0, 0;
Axyz 1, 520.09998, 15, 15, 0, 0;
Axyz 1, 520.09998, 15, 5, 0, 0;
Vorschub Eintauchen, Eintauchen, Eintauchen, Eintauchen;
Axyz 0, 520.09998, 15, -0.3, 0, 0;
Vorschub Schneiden, Schneiden, Schneiden, Schneiden;
Axyz 0, 520.09998, 85, -0.3, 0, 0;
Vorschub Exit, Exit, Exit, Exit;
) Sm_projektion1__90;
&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 09:23:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/13401493#M2714</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2025-04-01T09:23:55Z</dc:date>
    </item>
    <item>
      <title>Betreff: Tool Breakage Control Datron</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/13405804#M2715</link>
      <description>&lt;P&gt;Mittlerweile habe ich Kontakt mit dem Hersteller Aufgenommen und Raus gefunden wie das ganze Aussehen sollte.&lt;BR /&gt;&lt;BR /&gt;Und zwar müssen die Befehle in das Hauptmakro. Es Wäre schön das wenn ein Werkzeug mit Werkzeugbruch Angewählt oder dies Ausgeführt wird, beim nächsten Werkzeug das Automatisch dann Abgewählt wäre. Wie könnte man dies denn umsetzten ? Im Hauptmakro / Mainprogramm liest er leider keine Sectionen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beispiel Programm:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;; !##########2D_Kontur1__1##########!
; !ZMIN = -7.8!
Wzkontr 0, 1, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 1, 1;!###################### Ab hier werden die Werkzeuge geprüft!
Werkzeug T7, 0, 0, 1, 0;
Drehzahl 3, 36, 0, 30;
Sprueh 4, 0, 1, 0, 0, 0;
Dynamik 3;
Fertig = 3;!m/min!
Ramping = 3;!m/min!
Eintauchen = 1.5;!m/min!
Submakro Sm_2d_kontur1__1;
; !##########Nut1__2##########!
; !ZMIN = -8.2!
Werkzeug T7, 0, 0, 1, 0;
Drehzahl 3, 36, 0, 30;
Dynamik 3;
Schneiden = 3;!m/min!
Entry = 3;!m/min!
Ramping = 2.5;!m/min!
Submakro Sm_nut1__2;
; !##########Bohrfraesen1__3##########!
; !ZMIN = -8.35!
Wzkontr 0, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 1, 0;!###################### Ab hier werden die Werkzeuge nicht mehr geprüft!
Werkzeug T3, 0, 0, 1, 0;
Drehzahl 3, 36, 0, 30;
Dynamik 3;
Schneiden = 1.6;!m/min!
Entry = 1.75;!m/min!
Exit = 1.75;!m/min!
Submakro Sm_bohrfraesen1__3;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Apr 2025 05:25:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/tool-breakage-control-datron/m-p/13405804#M2715</guid>
      <dc:creator>U.Uhl</dc:creator>
      <dc:date>2025-04-03T05:25:09Z</dc:date>
    </item>
  </channel>
</rss>

