<?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: Pattern Post produce unnecessary delay in HSM Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10809892#M1983</link>
    <description>&lt;P&gt;Thanks for your help. I have tried your suggestion - not sure exactly where the code belongs. So I have found in the Function onSection() the following code:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if (true ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;insertToolCall ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;isFirstSection() ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (rpmFormat.areDifferent(spindleSpeed, sOutput.getCurrent())) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (tool.clockwise != getPreviousSection().getTool().clockwise)) {&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;lt; 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; error(localize("Spindle speed out of range."));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;gt; 99999) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; warning(localize("Spindle speed exceeds maximum value."));&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed == 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(mFormat.format(5), c[0], c[1], c[2], c[3], formatComment("SPINDLE IS OFF"));&lt;BR /&gt;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sOutput.format(spindleSpeed), mFormat.format(tool.clockwise ? 3 : 4),&amp;nbsp;c[0], c[1], c[2], c[3]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; );&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if ((spindleSpeed &amp;gt; 5000) &amp;amp;&amp;amp; properties.waitForSpindle) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onDwell(properties.waitForSpindle);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I have inserted your code in the following manner:&lt;/P&gt;&lt;P&gt;if (true ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;insertToolCall ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;isFirstSection() ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (rpmFormat.areDifferent(spindleSpeed, sOutput.getCurrent())) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (tool.clockwise != getPreviousSection().getTool().clockwise)) {&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;lt; 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; error(localize("Spindle speed out of range."));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;gt; 99999) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; warning(localize("Spindle speed exceeds maximum value."));&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed == 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(mFormat.format(5), c[0], c[1], c[2], c[3], formatComment("SPINDLE IS OFF"));&lt;BR /&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; if (currentSection.isPatterned &amp;amp;&amp;amp; currentSection.isPatterned() &amp;amp;&amp;amp; getCurrentSectionId() &amp;gt; 0){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (!(getPreviousSection().getPatternId() == currentSection.getPatternId())){&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeBlock(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sOutput.format(spindleSpeed), mFormat.format(tool.clockwise ? 3 : 4),&amp;nbsp;c[0], c[1], c[2], c[3]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((spindleSpeed &amp;gt; 5000) &amp;amp;&amp;amp; properties.waitForSpindle) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onDwell(properties.waitForSpindle);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Unfortunately, that code did not output SxxxX M3&amp;nbsp;M8 anywhere in the NC file. It skipped that line everywhere...&lt;/P&gt;&lt;P&gt;I will show the current output and desired output in the new post.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 19:39:48 GMT</pubDate>
    <dc:creator>Eli_Dexter</dc:creator>
    <dc:date>2021-12-08T19:39:48Z</dc:date>
    <item>
      <title>Pattern Post produce unnecessary delay</title>
      <link>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10804803#M1981</link>
      <description>&lt;P&gt;When doing Pattern of one or more operations post processor (Tormach in my case) is adding a&amp;nbsp; line Sxxxx M3 M8 for each element of the pattern. This causes a small delay (1 sec or so) in the execution of the code. When the number of pattern elements is small this delay is insignificant. But when the number of patterned elements grows all the small delays can accumulate into a few minutes extra execution time.&lt;/P&gt;&lt;P&gt;Is there a way not to output that line if the operation order in the pattern is either "Order by Tool" or "Order by Operation"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 22:17:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10804803#M1981</guid>
      <dc:creator>Eli_Dexter</dc:creator>
      <dc:date>2021-12-06T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Post produce unnecessary delay</title>
      <link>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10805993#M1982</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/526690"&gt;@Eli_Dexter&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  	  	if (currentSection.isPatterned &amp;amp;&amp;amp; currentSection.isPatterned() &amp;amp;&amp;amp; getCurrentSectionId() &amp;gt; 0){
			if (!(getPreviousSection().getPatternId() == currentSection.getPatternId())){
				//example code or existing code for M3 M8
			}
		}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't know what to do: attach a Part with CAM with your pattern, your Postprocessor and a correct, changed G-Code&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 11:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10805993#M1982</guid>
      <dc:creator>FTKnur</dc:creator>
      <dc:date>2021-12-07T11:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Post produce unnecessary delay</title>
      <link>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10809892#M1983</link>
      <description>&lt;P&gt;Thanks for your help. I have tried your suggestion - not sure exactly where the code belongs. So I have found in the Function onSection() the following code:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;if (true ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;insertToolCall ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;isFirstSection() ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (rpmFormat.areDifferent(spindleSpeed, sOutput.getCurrent())) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (tool.clockwise != getPreviousSection().getTool().clockwise)) {&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;lt; 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; error(localize("Spindle speed out of range."));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;gt; 99999) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; warning(localize("Spindle speed exceeds maximum value."));&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed == 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(mFormat.format(5), c[0], c[1], c[2], c[3], formatComment("SPINDLE IS OFF"));&lt;BR /&gt;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sOutput.format(spindleSpeed), mFormat.format(tool.clockwise ? 3 : 4),&amp;nbsp;c[0], c[1], c[2], c[3]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; );&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if ((spindleSpeed &amp;gt; 5000) &amp;amp;&amp;amp; properties.waitForSpindle) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onDwell(properties.waitForSpindle);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I have inserted your code in the following manner:&lt;/P&gt;&lt;P&gt;if (true ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;insertToolCall ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;isFirstSection() ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (rpmFormat.areDifferent(spindleSpeed, sOutput.getCurrent())) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; (tool.clockwise != getPreviousSection().getTool().clockwise)) {&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;lt; 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; error(localize("Spindle speed out of range."));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed &amp;gt; 99999) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; warning(localize("Spindle speed exceeds maximum value."));&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; if (spindleSpeed == 0) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(mFormat.format(5), c[0], c[1], c[2], c[3], formatComment("SPINDLE IS OFF"));&lt;BR /&gt;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; if (currentSection.isPatterned &amp;amp;&amp;amp; currentSection.isPatterned() &amp;amp;&amp;amp; getCurrentSectionId() &amp;gt; 0){&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (!(getPreviousSection().getPatternId() == currentSection.getPatternId())){&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeBlock(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sOutput.format(spindleSpeed), mFormat.format(tool.clockwise ? 3 : 4),&amp;nbsp;c[0], c[1], c[2], c[3]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; );&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((spindleSpeed &amp;gt; 5000) &amp;amp;&amp;amp; properties.waitForSpindle) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onDwell(properties.waitForSpindle);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Unfortunately, that code did not output SxxxX M3&amp;nbsp;M8 anywhere in the NC file. It skipped that line everywhere...&lt;/P&gt;&lt;P&gt;I will show the current output and desired output in the new post.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:39:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10809892#M1983</guid>
      <dc:creator>Eli_Dexter</dc:creator>
      <dc:date>2021-12-08T19:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Post produce unnecessary delay</title>
      <link>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10809920#M1984</link>
      <description>&lt;P&gt;Original Post:&lt;/P&gt;&lt;P&gt;( vendor Tormach)&lt;BR /&gt;( model 770)&lt;BR /&gt;( description Tormach 770 CNC Machine)&lt;BR /&gt;(T1 D=0.25 CR=0. - ZMIN=-0.06 - flat end mill)&lt;BR /&gt;(T2 D=0.0937 CR=0. - ZMIN=-0.06 - flat end mill)&lt;BR /&gt;(T3 D=0.25 CR=0. TAPER=45deg - ZMIN=-0.0425 - chamfer mill)&lt;BR /&gt;G90 G54 G64 G50 G17 G40 G80 G94 G91.1 G49&lt;BR /&gt;G20 (Inch)&lt;BR /&gt;G30&lt;/P&gt;&lt;P&gt;N10(2D Pocket2)&lt;BR /&gt;T1 G43 H1 M6&lt;BR /&gt;S3750 M3 M8&lt;BR /&gt;G54&lt;BR /&gt;...&lt;BR /&gt;M5 M9&lt;BR /&gt;G30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N20(2D Contour4)&lt;BR /&gt;T2 G43 H2 M6&lt;BR /&gt;S3750 M3 M8&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;G0 Z0.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N30(2D Contour4)&lt;BR /&gt;S3750 M3 M8&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;G0 Z0.1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;N810(2D Contour4)&lt;BR /&gt;S3750 M3 M8&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;G0 Z0.1&lt;/P&gt;&lt;P&gt;M5 M9&lt;BR /&gt;G30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N820(2D Contour2)&lt;BR /&gt;T3 G43 H3 M6&lt;BR /&gt;S5000 M3 M8&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Desired Code should be:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;N10(2D Pocket2)&lt;BR /&gt;T1 G43 H1 M6&lt;BR /&gt;S3750 M3 M8&lt;BR /&gt;G54&lt;BR /&gt;...&lt;BR /&gt;M5 M9&lt;BR /&gt;G30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N20(2D Contour4)&lt;BR /&gt;T2 G43 H2 M6&lt;BR /&gt;S3750 M3 M8&lt;/P&gt;&lt;P&gt;G0 ...&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;G0 Z0.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N30(2D Contour4)&lt;BR /&gt;G0...&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;G0 Z0.1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;N810(2D Contour4)&lt;BR /&gt;G0...&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;G0 Z0.1&lt;/P&gt;&lt;P&gt;M5 M9&lt;BR /&gt;G30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N820(2D Contour2)&lt;BR /&gt;T3 G43 H3 M6&lt;BR /&gt;S5000 M3 M8&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this explains what I meant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:51:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10809920#M1984</guid>
      <dc:creator>Eli_Dexter</dc:creator>
      <dc:date>2021-12-08T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Post produce unnecessary delay</title>
      <link>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10810987#M1985</link>
      <description>&lt;P&gt;Can you attach the Files? Thats the easiest way to help you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 07:53:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-forum/pattern-post-produce-unnecessary-delay/m-p/10810987#M1985</guid>
      <dc:creator>FTKnur</dc:creator>
      <dc:date>2021-12-09T07:53:48Z</dc:date>
    </item>
  </channel>
</rss>

