<?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 Direction of 4th axis A rotation is inverted in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015827#M7957</link>
    <description>&lt;P&gt;Hi Folks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a Hurco 5 axis machine with a U(currently using as 3+2) and I'm modifying Post Processor code for it. &amp;nbsp;One remaining issue is that calls for A axis rotation move the U in the opposite direction that that which is expected. &amp;nbsp; We can move 110 degrees positive in A and 30 degrees negative in A. &amp;nbsp; The way the work is setup in Fusion360 CAM and the tool orientation lead me to believe the A axis should rotate positive 90 degrees. &amp;nbsp;Instead it tries to go negative (away from the front of the machine) and causes a machine limit error in A, due to the 30 degree rotation limit in that direction. &amp;nbsp;Below are code snippets for axis setup and rotation commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[110,-30], preference:1, resolution:0.001});&lt;BR /&gt;var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360*10,360*10], resolution:0.001});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Executing the code snippet below generates negative numbers for the A axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is why is this occuring and what to look for to&amp;nbsp;fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;writeBlock( // Angles for G68.2&lt;BR /&gt;gFormat.format(68.2),&lt;BR /&gt;"X" + xyzFormat.format(currentSection.workOrigin.x),&lt;BR /&gt;"Y" + xyzFormat.format(currentSection.workOrigin.y),&lt;BR /&gt;"Z" + xyzFormat.format(currentSection.workOrigin.z),&lt;BR /&gt;"A" + abcFormat.format(abc.x),&lt;BR /&gt;conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)),&lt;BR /&gt;"C" + abcFormat.format(abc.z)&lt;BR /&gt;); // set frame&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2016 23:46:06 GMT</pubDate>
    <dc:creator>ecnels</dc:creator>
    <dc:date>2016-01-30T23:46:06Z</dc:date>
    <item>
      <title>Direction of 4th axis A rotation is inverted</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015827#M7957</link>
      <description>&lt;P&gt;Hi Folks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a Hurco 5 axis machine with a U(currently using as 3+2) and I'm modifying Post Processor code for it. &amp;nbsp;One remaining issue is that calls for A axis rotation move the U in the opposite direction that that which is expected. &amp;nbsp; We can move 110 degrees positive in A and 30 degrees negative in A. &amp;nbsp; The way the work is setup in Fusion360 CAM and the tool orientation lead me to believe the A axis should rotate positive 90 degrees. &amp;nbsp;Instead it tries to go negative (away from the front of the machine) and causes a machine limit error in A, due to the 30 degree rotation limit in that direction. &amp;nbsp;Below are code snippets for axis setup and rotation commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[110,-30], preference:1, resolution:0.001});&lt;BR /&gt;var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360*10,360*10], resolution:0.001});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Executing the code snippet below generates negative numbers for the A axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is why is this occuring and what to look for to&amp;nbsp;fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;writeBlock( // Angles for G68.2&lt;BR /&gt;gFormat.format(68.2),&lt;BR /&gt;"X" + xyzFormat.format(currentSection.workOrigin.x),&lt;BR /&gt;"Y" + xyzFormat.format(currentSection.workOrigin.y),&lt;BR /&gt;"Z" + xyzFormat.format(currentSection.workOrigin.z),&lt;BR /&gt;"A" + abcFormat.format(abc.x),&lt;BR /&gt;conditional(machineConfiguration.isMachineCoordinate(1), "B" + abcFormat.format(abc.y)),&lt;BR /&gt;"C" + abcFormat.format(abc.z)&lt;BR /&gt;); // set frame&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 23:46:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015827#M7957</guid>
      <dc:creator>ecnels</dc:creator>
      <dc:date>2016-01-30T23:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Direction of 4th axis A rotation is inverted</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015834#M7958</link>
      <description>&lt;P&gt;Here's another clue?? &amp;nbsp;Executing a cam program causes the rotary to try and rotate the opposite direction intended, but it appears the Z axis IS trying to goto where the rotary is trying to rotate to in order to begin facing. &amp;nbsp;This makes me think maybe I've got something wrong WCS-wise?&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 00:06:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015834#M7958</guid>
      <dc:creator>ecnels</dc:creator>
      <dc:date>2016-01-31T00:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Direction of 4th axis A rotation is inverted</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015994#M7963</link>
      <description>&lt;PRE&gt;var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[110,-30], preference:1, resolution:0.001});
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360*10,360*10], resolution:0.001});&lt;/PRE&gt;&lt;P&gt;I think changing that code to this will help:&lt;/P&gt;&lt;PRE&gt;var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], range:[110,-30], preference:1, resolution:0.001});
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-360*10,360*10], resolution:0.001});&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Jan 2016 08:53:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6015994#M7963</guid>
      <dc:creator>Laurens-3DTechDraw</dc:creator>
      <dc:date>2016-01-31T08:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Direction of 4th axis A rotation is inverted</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6016067#M7972</link>
      <description>&lt;P&gt;Thanks Laurens! &amp;nbsp;I believe this would work. &amp;nbsp;While tracing through this portion of the Post code this morning it led to the following Euler line which evidently drives the rotation train: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;abc = new Vector(-eulerXYZ.x, -eulerXYZ.y, -eulerXYZ.z);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why all of those are forced negative, but staying consistent with a "positive A axis rotates toward the front of the machine", &amp;nbsp;I changed the line above, so X(A) is now positive and that keeps the axis line looking positive too. &amp;nbsp;This works.&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], range:[110,-30], preference:1, resolution:0.001});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;abc = new Vector( eulerXYZ.x, eulerXYZ.y, -eulerXYZ.z);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your Help! &amp;nbsp;Now there's one issue remaining related to WCS changes for rotary positioning, but I'll open a new Post for that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ev&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 12:17:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/direction-of-4th-axis-a-rotation-is-inverted/m-p/6016067#M7972</guid>
      <dc:creator>ecnels</dc:creator>
      <dc:date>2016-01-31T12:17:08Z</dc:date>
    </item>
  </channel>
</rss>

