<?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: New subprogram support in post processors in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7595837#M19728</link>
    <description>&lt;P&gt;Thank you for bringing this to our attention.&amp;nbsp; The Fanuc posts do not output the initial A-axis position prior to calling a subprogram as they should.&amp;nbsp; You can make the following changes in your post to get the correct output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change the following code in the defineWorkPlane function from ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  if (_section.isMultiAxis()) {
      forceWorkPlane();
      cancelTransformation();
    } else {&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so that it looks like this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  if (_section.isMultiAxis()) {
      cancelTransformation();
      abc = _section.getInitialToolAxisABC();
      if (_setWorkPlane) {
        forceWorkPlane();
        onCommand(COMMAND_UNLOCK_MULTI_AXIS);
        gMotionModal.reset();
        writeBlock(
          gMotionModal.format(0),
          conditional(machineConfiguration.isMachineCoordinate(0), "A" + abcFormat.format(abc.x)),
          conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)),
          conditional(machineConfiguration.isMachineCoordinate(2), "C" + abcFormat.format(abc.z))
        );
      }&lt;/PRE&gt;
&lt;P&gt;You will also need to enable the&amp;nbsp;&lt;EM&gt;useSubroutinePatterns&amp;nbsp;&lt;/EM&gt;property and not the&amp;nbsp;&lt;EM&gt;useSubroutines&lt;/EM&gt; property to output a single subprogram and a number of calls to that same subprogram.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patterns.png" style="width: 323px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/434668i0C65575F1451313E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Patterns.png" alt="Patterns.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will be updating the generic Fanuc posts with this change.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 23:11:32 GMT</pubDate>
    <dc:creator>bob.schultz</dc:creator>
    <dc:date>2017-12-04T23:11:32Z</dc:date>
    <item>
      <title>New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/6875184#M19719</link>
      <description>&lt;P&gt;A number of requests have been received to output patterned operations as a single subprogram and then to have the main program call it for each pattern instance. We have implemented new properties to the generic Fanuc post processor that will allow you to do just this. There are now three properties used for the controlling of subprogram output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Subprograms.png" style="width: 325px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/322338i1FAEE3677069CC6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Subprograms.png" alt="Subprograms.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;useSubroutines: yes&lt;/STRONG&gt;&lt;BR /&gt;Setting this property to &lt;EM&gt;yes&lt;/EM&gt; will generate a separate subprogram for each operation. This will work in the same manner as subprograms do in existing post processors.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; &lt;STRONG&gt;useSubroutinePatterns: yes&lt;/STRONG&gt;&lt;BR /&gt; This property controls the output of subprograms during patterned operations. Translated pattern operations will create a single subprogram for the first instance of the pattern and all instances of the pattern will issue a call to the same subprogram to perform the operation. All start of operation codes and the initial position will be output prior to calling the subprogram. The subprogram will be output in incremental mode so that the moves are correct for each pattern instance. 3+2 operations that generate the same motion on separate faces of a part will also be output as a single subprogram.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(2D-FACE)
N30 T1 M06
(TOOL COMMENT)
N35 T2
N40 S5000 M03
N45 G54
N50 M08
N60 G00 X3.6811 Y-1.3961
N65 G43 Z0.6299 H01
&lt;STRONG&gt;N70 M98 P1002&lt;/STRONG&gt;
N80 G00 X3.6811 Y2.6039
N85 G43 Z0.6299 H01
&lt;STRONG&gt;N90 M98 P1002&lt;/STRONG&gt;
N105 G00 X3.6811 Y6.6039
N110 G43 Z0.6299 H01
&lt;STRONG&gt;N115 M98 P1002&lt;/STRONG&gt;
…
&lt;STRONG&gt;O1002(2D-FACE)&lt;/STRONG&gt;
G91
G00 Z-0.3937
G01 Z-0.2362 F39.4
X-7.3622
G02 Y0.8422 J0.4211
G01 X7.3622
G03 Y0.8421 J0.4211
G01 X-7.3622
G00 Z0.6299
G90
&lt;STRONG&gt;M99
&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;useSubroutineCycles: yes&lt;/STRONG&gt;&lt;BR /&gt; Enabling the &lt;EM&gt;useSubroutineCycles&lt;/EM&gt; property will a create subprogram for cycle hole locations that are used in multiple cycle operations, for example center drilling, drilling, and tapping. All start of operation codes and the initial cycle definition, including the first hole location, will be output prior to calling the subprogram. The subprogram itself will contain the remaining hole locations in the cycle. The &lt;EM&gt;minimumCyclePoints&lt;/EM&gt; variable is defined at the top of the post processor, which defines the minimum number of points in the cycle to consider for placing into a subprogram. Each cycle operation will have to contain the same number of points and the order of the hole locations must be the same in all operations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(DRILL)
N30 T1 M06
N35 T3
N40 S5000 M03
N45 G54
N50 M08
N60 G00 X12.7 Y50.8
N65 G43 Z15. H01
N75 G00 Z5.
&lt;STRONG&gt;N80 G98 G81 X12.7 Y50.8 Z-3. R4. F333.&lt;/STRONG&gt;
&lt;STRONG&gt;N85 M98 P1002&lt;/STRONG&gt;
N90 G80
N95 X-101.6 Y-38.1 Z15.

(TAP)
N100 M09
N105 M01
N110 T3 M06
N115 T1
N120 S7519 M03
N125 G54
N130 M08
N135 G00 X12.7 Y50.8
N140 G43 Z15. H03
N245 G00 Z5.
N250 M29 S7519
&lt;STRONG&gt;N255 G84 X12.7 Y50.8 Z-28.4 R4. P0 F9549.
N260 M98 P1002&lt;/STRONG&gt;
N265 G80
N270 X-101.6 Y-38.1 Z15.
…
&lt;STRONG&gt;O1002(DRILL)&lt;/STRONG&gt;
X38.1 Y12.7
X76.2 Y38.1
X25.4 Y-38.1
X-25.4 Y-12.7
X-63.5 Y25.4
X-114.3 Y50.8
X-101.6 Y-38.1
&lt;STRONG&gt;M99
&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;If you are in need of this style of subprogram support, please feel free to download the &lt;A href="http://cam.autodesk.com/posts/?p=fanuc" target="_self"&gt;fanuc.cps&lt;/A&gt; post processor with the new subprogram support from the standard Autodesk Post Library. &lt;STRONG&gt;Great care should be taken when running the output from this post on your machine, as always with any new feature or post processor.&lt;/STRONG&gt; Once this post has been substantially verified we will be implementing subprogram support into some of the other generic posts.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 21:15:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/6875184#M19719</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-02-13T21:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/6875800#M19720</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3704064"&gt;@bob.schultz&lt;/a&gt;&amp;nbsp;would the patterning version also work if you select order by tool?&lt;/P&gt;
&lt;P&gt;And not the order as programmed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 05:15:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/6875800#M19720</guid>
      <dc:creator>Laurens-3DTechDraw</dc:creator>
      <dc:date>2017-02-14T05:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/6876788#M19721</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1941261"&gt;@Laurens-3DTechDraw&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3704064"&gt;@bob.schultz&lt;/a&gt;&amp;nbsp;would the patterning version also work if you select order by tool?&lt;/P&gt;
&lt;P&gt;And not the order as programmed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The post does not care about the order of the pattern instances. It stores the first pattern and will then match each instance of the pattern no matter where it falls in the order of sequences. &amp;nbsp;In the provided example code the Operation order is actually defined as &lt;EM&gt;Order by tool&lt;/EM&gt;. &amp;nbsp;Here is an example of pattern instances where they are not sequential.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(2D-CONTOUR WITH COMPENSATION RIGHT)
N2785 G00 X-0.2423 Y1.4283
N2790 G43 Z0.6299 H02
N2795 M98 P1004

(2D-CONTOUR WITH COMPENSATION LEFT)
N2805 G00 X-0.4786 Y5.4283
N2810 G43 Z0.6299 H02
N2815 M98 P1003

(2D-CONTOUR WITH COMPENSATION RIGHT)
N2830 G00 X-0.2423 Y5.4283
N2835 G43 Z0.6299 H02
N2840 M98 P1004

(2D-CONTOUR WITH COMPENSATION LEFT)
N2855 G00 X-0.4786 Y9.4283
N2860 G43 Z0.6299 H02
N2865 M98 P1003&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Feb 2017 14:19:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/6876788#M19721</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-02-14T14:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7153179#M19722</link>
      <description>&lt;P&gt;We have updated &amp;nbsp;more of the stock HSM post processors with the new subprogram support as described at the top of this conversation. &amp;nbsp;Here is a list of the stock post processors that support this feature. &amp;nbsp;If you require subprogram support in a stock post not listed here, then you can request it in this thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;fanuc with a-axis.cps
haas.cps
haas next generation.cps
haas next generation m130.cps
haas umc-750.cps
haas with a-axis.cps
heidenhain.cps
mach2mill.cps
mach3mill.cps
mach4mill.cps&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7153179#M19722</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-06-14T21:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7155339#M19723</link>
      <description>&lt;P&gt;Hello Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Great news and info. This will help out lots of our customers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 16:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7155339#M19723</guid>
      <dc:creator>mwhitten123</dc:creator>
      <dc:date>2017-06-15T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7535434#M19724</link>
      <description>&lt;P&gt;Can this be added to an Okuma custom post?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 20:53:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7535434#M19724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-10T20:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7535634#M19725</link>
      <description>&lt;P&gt;Yes, subprograms can be added to an Okuma post processor.&amp;nbsp; If you have a customized post processor, then you will need to add this code yourself.&amp;nbsp; The logic will be quite similar to the Fanuc post processor, with some minor changes for the subprogram/macro definition and call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need support for subprograms in the generic Okuma post supplied by Autodesk, then please place a request on the &lt;A href="https://forums.autodesk.com/t5/hsm-post-processor-ideas/idb-p/985/tab/most-recent" target="_blank"&gt;HSM Post Processors Idea Station&lt;/A&gt; and we will take a look at it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 23:04:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7535634#M19725</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-11-10T23:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7593365#M19726</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="18664547_1079778708820723_3598230814044337856_n.jpg" style="width: 325px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/434294iE29B02AADDF3671F/image-size/large?v=v2&amp;amp;px=999" role="button" title="18664547_1079778708820723_3598230814044337856_n.jpg" alt="18664547_1079778708820723_3598230814044337856_n.jpg" /&gt;&lt;/span&gt;i face difficulty to post gcode for 4-axis (rotary) with sub program, may i know the subprogram functions support aAxis?where and how to modify the post processor for fanuc? i need the cnc to do cut many numbers cookies pocket shape cut around the cylinder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tqvm&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 10:26:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7593365#M19726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-04T10:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7593447#M19727</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mastercam.jpg" style="width: 240px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/434300iB2E521CB49BB490F/image-size/large?v=v2&amp;amp;px=999" role="button" title="mastercam.jpg" alt="mastercam.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this the code generated by mastercam, which we normally use,we are migrant to Fusion 360, hopefully, the right post precessor can be&amp;nbsp;edited&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 10:43:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7593447#M19727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-04T10:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7595837#M19728</link>
      <description>&lt;P&gt;Thank you for bringing this to our attention.&amp;nbsp; The Fanuc posts do not output the initial A-axis position prior to calling a subprogram as they should.&amp;nbsp; You can make the following changes in your post to get the correct output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Change the following code in the defineWorkPlane function from ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  if (_section.isMultiAxis()) {
      forceWorkPlane();
      cancelTransformation();
    } else {&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so that it looks like this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  if (_section.isMultiAxis()) {
      cancelTransformation();
      abc = _section.getInitialToolAxisABC();
      if (_setWorkPlane) {
        forceWorkPlane();
        onCommand(COMMAND_UNLOCK_MULTI_AXIS);
        gMotionModal.reset();
        writeBlock(
          gMotionModal.format(0),
          conditional(machineConfiguration.isMachineCoordinate(0), "A" + abcFormat.format(abc.x)),
          conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)),
          conditional(machineConfiguration.isMachineCoordinate(2), "C" + abcFormat.format(abc.z))
        );
      }&lt;/PRE&gt;
&lt;P&gt;You will also need to enable the&amp;nbsp;&lt;EM&gt;useSubroutinePatterns&amp;nbsp;&lt;/EM&gt;property and not the&amp;nbsp;&lt;EM&gt;useSubroutines&lt;/EM&gt; property to output a single subprogram and a number of calls to that same subprogram.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patterns.png" style="width: 323px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/434668i0C65575F1451313E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Patterns.png" alt="Patterns.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We will be updating the generic Fanuc posts with this change.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 23:11:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7595837#M19728</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-12-04T23:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7596314#M19729</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, i feel very happy for the fast respond. i&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code problem.jpg" style="width: 308px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/434725i8CC5811E37C8ABF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="code problem.jpg" alt="code problem.jpg" /&gt;&lt;/span&gt; try to copy the code in, the aAxis is coming out for subprogram code, but the subprogram&amp;nbsp;only generated when use subrontines is set to yes, if only set use subrontines panttern is set to yes only, no subprogram is generated.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code generated with use subrontines pattern set to yes.jpg" style="width: 302px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/434726iBAB2C24F10697463/image-size/large?v=v2&amp;amp;px=999" role="button" title="code generated with use subrontines pattern set to yes.jpg" alt="code generated with use subrontines pattern set to yes.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i&amp;nbsp; attached a fusion file together with the cps file for your references.&lt;/P&gt;&lt;P&gt;thanks for your technical support, best regards, from Joshua&lt;img id="heart" class="emoticon emoticon-heart" src="https://forums.autodesk.com/i/smilies/16x16_heart.png" alt="Heart" title="Heart" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 05:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7596314#M19729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-05T05:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7597896#M19730</link>
      <description>&lt;P&gt;Hello Joshua,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for supplying the post processor you are using, this helps to find your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is the&amp;nbsp;post is setup to output&amp;nbsp;TCP programming, meaning that the tool end point is being output instead of the locations adjusted for the rotary table.&amp;nbsp; You have two options, you can either use the stock Fanuc post that already has the A-axis enabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://cam.autodesk.com/posts/?p=fanuc_with_a-axis" target="_blank"&gt;http://cam.autodesk.com/posts/?p=fanuc_with_a-axis&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can modify your post if you have made other changes to it.&amp;nbsp; The createAxis line should look like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], cyclic:true, preference:1});&lt;/PRE&gt;
&lt;P&gt;And you will have to modify the code so that G43 is output instead of G43.4 (enables TCP) inside of the onSection function.&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;
&lt;PRE&gt;writeBlock(
        gAbsIncModal.format(90),
        gMotionModal.format(0),
        gFormat.format(currentSection.isMultiAxis() ? (machineConfiguration.isMultiAxisConfiguration() ? &lt;FONT color="#FF0000"&gt;43&lt;/FONT&gt; : 43.5) : 43),
        xOutput.format(initialPosition.x),
        yOutput.format(initialPosition.y),
        zOutput.format(initialPosition.z), hFormat.format(lengthOffset)
      );&lt;/PRE&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, 05 Dec 2017 16:28:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7597896#M19730</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-12-05T16:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7600609#M19731</link>
      <description>&lt;DIV class="custom-author-name-rank-icon author-role-icon"&gt;&lt;DIV class="lia-message-author-username lia-component-user-name"&gt;&lt;DIV class="username_area"&gt;&lt;SPAN&gt;hi, Mr&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3704064" target="_self"&gt;bob.schultz&lt;/A&gt;. Good day to you, you are so nice and finally I found the Fusion 360 can run the 3+1 Axis, substitution aAxis to yAxis. I really feel good to use the Fusion as my new cam software. I already can run the program at my HUST cnc controller, made in taiwan after i remove some unwanted code.by the way, i really need your help to remove some unwanted code. I really thanks for your hardwork in helping me! thank you! i am using your cps.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="username_area"&gt;&lt;SPAN&gt;besides, I face a difficulty to generate sub program in 2 Pattern, it look like the code in aAxis is more than 360degree( may be is correct, cause the rotary table will make more than one round. am I correct?). normally we need to array my cookies mold in two direction, one is circular pattern, follow by a linear pattern. the fusion can simulate it perfectly, but the code is not same as what we used normally. i will give the code picture. i am ready to produce the first cylinder mold with fusion. thanks again! best regard, Joshua&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="forummessage_author_details"&gt;&lt;DIV class="forummessage_author_user_rank"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="forummessage_author_user_avatar"&gt;&lt;IMG src="https://s3.amazonaws.com/com.autodesk.storage.public.production/oxygen/6CBJM9NXDRU9/profilepictures/x120.jpg?r=636407630135100000" border="0" /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="double pattern.jpg" style="width: 193px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/435427iD896ED72AD6304C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="double pattern.jpg" alt="double pattern.jpg" /&gt;&lt;/span&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/435423iE33019C8179B45A6/image-size/large?v=1.0&amp;amp;px=-1" border="0" width="257" height="705" title="2 x 4 holes.jpg" alt="2 x 4 holes.jpg" /&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Dec 2017 11:41:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7600609#M19731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-06T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7601656#M19732</link>
      <description>&lt;P&gt;Hello Joshua,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad to hear that you finding that Fusion can satisfy your machining needs.&amp;nbsp; For your last request, this should be moved to a new Forum post, since we are now diverging from the intent (subprograms) of this thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 16:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7601656#M19732</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-12-06T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7610210#M19733</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="double pattern.jpg" style="width: 193px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/437038i59D9D1D2A228C268/image-size/large?v=v2&amp;amp;px=999" role="button" title="double pattern.jpg" alt="double pattern.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sorry, i drag to far from this subject:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so now i come back to subrontines,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I face a difficulty to generate sub program in 2 Pattern, it look like the code in aAxis is more than 360degree, any setting to change to avoid generate this aAxis ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 07:57:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7610210#M19733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-09T07:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7613338#M19734</link>
      <description>&lt;P&gt;The &lt;EM&gt;range&lt;/EM&gt; setting in the &lt;EM&gt;createAxis&lt;/EM&gt; command informs the post on the limits of the rotary axis.&amp;nbsp; Make the following change when creating the A-axis to get the output degrees always between 0-360 degrees.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], cyclic:true, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;range:[0, 360]&lt;/STRONG&gt;&lt;/FONT&gt;, preference:1});&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7613338#M19734</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2017-12-11T12:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7615543#M19735</link>
      <description>&lt;P&gt;thank you,&amp;nbsp; i will try...&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 03:24:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7615543#M19735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-12T03:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7681142#M19736</link>
      <description>&lt;P&gt;Good day to you! the 3+1 aAxis cnc cam code finally generated with sub program! it work!&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;&lt;P&gt;i found fusion will generate wrong code if the pocket draw at 0 degree.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 06:07:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7681142#M19736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T06:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7686863#M19737</link>
      <description>&lt;P&gt;This problem is due to the rotary axis being output between 0-360 degrees and incremental mode being handled by the output variable 'aOutput'.&amp;nbsp; For example, while a move from A1 to A358 while in absolute mode may move the table 3 degrees, in incremental mode it will output A357.&amp;nbsp; You can correct this output by adding the following function to your post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function setAAxis(_a) {
  if (incrementalMode) {
    var previousA = aOutput.getCurrent();
    var diff = _a - previousA;
    if (diff &amp;gt; Math.PI) {
      aOutput.format(previousA + Math.PI * 2);
    } else if (diff &amp;lt; -Math.PI) {
      aOutput.format(previousA - Math.PI * 2);
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;and then add the following call prior to formatting the A-axis for output in the onRapid and onLinear functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;setAAxis(_a);&lt;/STRONG&gt;
var a = aOutput.format(_a);&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:17:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7686863#M19737</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2018-01-12T20:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: New subprogram support in post processors</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7702771#M19738</link>
      <description>&lt;P&gt;TQVM, WILL TRY .....&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 05:11:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/new-subprogram-support-in-post-processors/m-p/7702771#M19738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-19T05:11:01Z</dc:date>
    </item>
  </channel>
</rss>

