<?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: Fusion gcode not working on machine in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-gcode-not-working-on-machine/m-p/8933697#M10965</link>
    <description>&lt;P&gt;There are a couple of changes you need to make where the rotary axes are defined in the &lt;EM&gt;onOpen&lt;/EM&gt; function.&lt;/P&gt;
&lt;PRE&gt;  if (&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/FONT&gt;) { &lt;FONT color="#FF0000"&gt;// change to true&lt;/FONT&gt;
    //var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120.0001, 120.0001], preference:1});
    var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], range:[-5.000, 360.000], preference:1});
    var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[0, 360], cyclic:true});
    machineConfiguration = new MachineConfiguration(&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;bAxis&lt;/FONT&gt;&lt;/STRONG&gt;, cAxis);  &lt;FONT color="#FF0000"&gt;// change to bAxis&lt;/FONT&gt;

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(0);
  }&lt;/PRE&gt;
&lt;P&gt;This will output the actual rotary axes positions instead of the tool axis vector, which&amp;nbsp; is currently being output in A3, B3, C3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will now find that the post will error due to the limits of B-axis being exceeded, just like on your machine.&amp;nbsp; This is because the tool tilts more than 110 degrees.&amp;nbsp; You can see this by changing the limits of the B-axis and looking at the output for the B-axis.&lt;/P&gt;
&lt;PRE&gt;var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], range:[-5.000, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;360.000&lt;/STRONG&gt;&lt;/FONT&gt;], preference:1});&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;B-axis exceeds limits&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;N161 G1 X-14.673 Y24.484 Z-22.024 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;B120.92&lt;/STRONG&gt;&lt;/FONT&gt; C=DC(61.504)&lt;/PRE&gt;</description>
    <pubDate>Fri, 26 Jul 2019 22:27:49 GMT</pubDate>
    <dc:creator>bob.schultz</dc:creator>
    <dc:date>2019-07-26T22:27:49Z</dc:date>
    <item>
      <title>Fusion gcode not working on machine</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-gcode-not-working-on-machine/m-p/8905813#M10964</link>
      <description>&lt;P&gt;Hi all. I have a vmc with siemens 840d control. it has a 5 axis trunnion setup as b/c. the limits of movement in b are -5 +110 degrees. When I try to create some 5 axis simultaneous code the machine always gets a b axis limit switch error. I am not sure what&amp;nbsp; I am doing wrong. attatched are the model I am using and&amp;nbsp; a copy of the code created, and the post processor. I have changed the post processor to only use b and c axis and to give the above limits on b. I hope someone can help please.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 10:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-gcode-not-working-on-machine/m-p/8905813#M10964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-12T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fusion gcode not working on machine</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-gcode-not-working-on-machine/m-p/8933697#M10965</link>
      <description>&lt;P&gt;There are a couple of changes you need to make where the rotary axes are defined in the &lt;EM&gt;onOpen&lt;/EM&gt; function.&lt;/P&gt;
&lt;PRE&gt;  if (&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/FONT&gt;) { &lt;FONT color="#FF0000"&gt;// change to true&lt;/FONT&gt;
    //var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[-120.0001, 120.0001], preference:1});
    var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], range:[-5.000, 360.000], preference:1});
    var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[0, 360], cyclic:true});
    machineConfiguration = new MachineConfiguration(&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;bAxis&lt;/FONT&gt;&lt;/STRONG&gt;, cAxis);  &lt;FONT color="#FF0000"&gt;// change to bAxis&lt;/FONT&gt;

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(0);
  }&lt;/PRE&gt;
&lt;P&gt;This will output the actual rotary axes positions instead of the tool axis vector, which&amp;nbsp; is currently being output in A3, B3, C3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will now find that the post will error due to the limits of B-axis being exceeded, just like on your machine.&amp;nbsp; This is because the tool tilts more than 110 degrees.&amp;nbsp; You can see this by changing the limits of the B-axis and looking at the output for the B-axis.&lt;/P&gt;
&lt;PRE&gt;var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], range:[-5.000, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;360.000&lt;/STRONG&gt;&lt;/FONT&gt;], preference:1});&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;B-axis exceeds limits&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;N161 G1 X-14.673 Y24.484 Z-22.024 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;B120.92&lt;/STRONG&gt;&lt;/FONT&gt; C=DC(61.504)&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 22:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/fusion-gcode-not-working-on-machine/m-p/8933697#M10965</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2019-07-26T22:27:49Z</dc:date>
    </item>
  </channel>
</rss>

