<?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: Modifying FANUC post for 4 axis HBM in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8357344#M13125</link>
    <description>&lt;P&gt;So I modified the post, per your suggestions, and have gotten this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Error: Error: Direction is not supported for machine configuration.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Stack dump:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;("Direction is not supported for machine configuration.")@:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;onOpen()@C:\Users\Public\Documents\Autodesk\Inventor HSM\Posts\Pama-M8-4 axis.cps:204&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Failed while processing onOpen().&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Failed to invoke 'onOpen' in the post configuration.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Failed to invoke function 'onOpen'.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Failed to execute configuration.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Stop time: Wednesday, October 24, 2018 9:12:55 PM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Post processing failed.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is what my onOpen() command currently looks like in the post:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;function onOpen() {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (properties.useRadius) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maximumCircularSweep = toRad(360); // avoid potential center calculation errors for CNC&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; if (true) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bAxis = createAxis({coordinate:1, table:true, axis:[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0], cyclic:true, preference:1});&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; machineConfiguration = new MachineConfiguration(bAxis);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setMachineConfiguration(machineConfiguration);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; optimizeMachineAngles2(1); // map tip mode&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; if (!machineConfiguration.isMachineCoordinate(0)) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aOutput.disable();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (!machineConfiguration.isMachineCoordinate(1)) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bOutput.disable();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (!machineConfiguration.isMachineCoordinate(2)) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cOutput.disable();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (!properties.separateWordsWithSpace) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setWordSeparator("");&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 24 Oct 2018 21:18:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-24T21:18:22Z</dc:date>
    <item>
      <title>Modifying FANUC post for 4 axis HBM</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8343884#M13123</link>
      <description>&lt;P&gt;Looking for help in modifying the existing FANUC A-axis post to use on our Pama Speedram.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently it will not generate and code unless the A-Axis is in line with the X axis, this presents a problem as our machine has our rotary table in the Y axis orientation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our control is FANUC series 30i-model B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 16:57:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8343884#M13123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-18T16:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying FANUC post for 4 axis HBM</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8347192#M13124</link>
      <description>&lt;P&gt;I am going to guess that you are running the 'fanuc with a-axis.cps' post processor.&amp;nbsp; You can modify this post to support a&amp;nbsp;rotary table around the Y-axis by changing the following code in the &lt;EM&gt;onOpen&lt;/EM&gt; function ...&lt;/P&gt;
&lt;PRE&gt;  if (true) {
    var aAxis = createAxis({coordinate:0, table:true, axis:[(properties.makeAAxisOtherWay ? -1 : 1) * -1, 0, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }&lt;/PRE&gt;
&lt;P&gt;... To ...&lt;/P&gt;
&lt;PRE&gt;  if (true) {
    var aAxis = createAxis({coordinate:0, table:true, axis:&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0]&lt;/STRONG&gt;&lt;/FONT&gt;, cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }&lt;/PRE&gt;
&lt;P&gt;If your machine wants to see the rotary table as a B-axis, then make the following changes.&lt;/P&gt;
&lt;PRE&gt;  if (true) {
    var &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;bAxis&lt;/STRONG&gt;&lt;/FONT&gt; = createAxis({&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;coordinate:1&lt;/STRONG&gt;&lt;/FONT&gt;, table:true, axis:&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0]&lt;/STRONG&gt;&lt;/FONT&gt;, cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;bAxis&lt;/STRONG&gt;&lt;/FONT&gt;);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 23:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8347192#M13124</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2018-10-19T23:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying FANUC post for 4 axis HBM</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8357344#M13125</link>
      <description>&lt;P&gt;So I modified the post, per your suggestions, and have gotten this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;Error: Error: Direction is not supported for machine configuration.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Stack dump:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;("Direction is not supported for machine configuration.")@:0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;onOpen()@C:\Users\Public\Documents\Autodesk\Inventor HSM\Posts\Pama-M8-4 axis.cps:204&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;Failed while processing onOpen().&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Failed to invoke 'onOpen' in the post configuration.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Failed to invoke function 'onOpen'.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error: Failed to execute configuration.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Stop time: Wednesday, October 24, 2018 9:12:55 PM&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Post processing failed.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here is what my onOpen() command currently looks like in the post:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;function onOpen() {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (properties.useRadius) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maximumCircularSweep = toRad(360); // avoid potential center calculation errors for CNC&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; if (true) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bAxis = createAxis({coordinate:1, table:true, axis:[0, (properties.makeAAxisOtherWay ? -1 : 1) * -1, 0], cyclic:true, preference:1});&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; machineConfiguration = new MachineConfiguration(bAxis);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setMachineConfiguration(machineConfiguration);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; optimizeMachineAngles2(1); // map tip mode&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; if (!machineConfiguration.isMachineCoordinate(0)) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aOutput.disable();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (!machineConfiguration.isMachineCoordinate(1)) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bOutput.disable();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (!machineConfiguration.isMachineCoordinate(2)) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cOutput.disable();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; if (!properties.separateWordsWithSpace) {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; setWordSeparator("");&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Oct 2018 21:18:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8357344#M13125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T21:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying FANUC post for 4 axis HBM</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8362192#M13126</link>
      <description>&lt;P&gt;This error is generated when the rotary axis cannot be rotated to fulfill the tool axis.&amp;nbsp; In the case of a B-axis table, the Y-component of the tool axis must always be set to 0, i.e. (x, 0, z).&amp;nbsp; First make sure that your setup defines the orientation with the Y-axis parallel to the rotation of the B-axis.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Setup.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/562372i8A5C03CC8EC1EBFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Setup.png" alt="Setup.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using a multi-axis operation it is possible that the Y-axis component of the tool axis has some noise in it.&amp;nbsp; You can check the tool axis vectors by running the &lt;EM&gt;dump&lt;/EM&gt; post processor and then looking at the calls to &lt;EM&gt;onLinear5D&lt;/EM&gt; to see what tool axes are being computed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are still getting this error, it would be good if you can provide the model you are working&amp;nbsp;with and I can take a look at it.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:53:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8362192#M13126</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2018-10-26T15:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying FANUC post for 4 axis HBM</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8362212#M13127</link>
      <description>&lt;P&gt;Let me know where I can send the model and I will do that.&amp;nbsp; So far everything seems to be setup right, B axis is parallel to my Y. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:58:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/modifying-fanuc-post-for-4-axis-hbm/m-p/8362212#M13127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-26T15:58:59Z</dc:date>
    </item>
  </channel>
</rss>

