<?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: Post is inverting Z values when using multiple WCS on mill/turn in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11142095#M121530</link>
    <description>&lt;P&gt;If your post has this code, then the axes should be reset to normal at the end of every operation and the code should not be required in &lt;U&gt;onSection&lt;/U&gt;.&amp;nbsp; I have tried it here with a few of the library posts and it works as desired.&amp;nbsp; Is it possible for you to provide the model you are working with so that I can test it and see if there is a scenario that we missed.&amp;nbsp; If this is an issue with the library posts we would like to get it fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 13:29:38 GMT</pubDate>
    <dc:creator>bob.schultz</dc:creator>
    <dc:date>2022-05-02T13:29:38Z</dc:date>
    <item>
      <title>Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11132993#M121269</link>
      <description>&lt;P&gt;As I posted in another thread, I am using tools back and forth between the main spindle (G54) and the subspindle (G55.) The only way I can do this for now is to have multiple setups for each operation (see attached picture.) Problem now is when I post, the first setup on G54 has correct Z value; then it goes to setup 2 on G55 and those also have correct Z values. However, when it goes back to the third setup at G54, all the Z values are inverted--they are posting negative when they should be positive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I post the setup by itself, the value are correct. It only happens when I post all the setups at once as one program. This is something I need to do so the post reads and stages upcoming tools correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've checked the program using the dump.cps post and it seems like the issue is coming from Fusion, not my individual post. For example, using the dump post and posting all setups at once, I get the following values for the inverted operations:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currentSection.fcsPlane=[[0, 0, -1], [0, -1, 0], [-1, 0, 0]]&lt;BR /&gt;currentSection.modelOrigin=(-1.75, 7.98123e-32, 2.69251e-16)&lt;BR /&gt;currentSection.modelPlane=[[-0, -0, -1], [0, -1, 0], [-1, 0, 0]]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But posting just the one setup by itself with the dump post gives me this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;currentSection.fcsPlane=[[0, 0, -1], [0, 1, 0], [1, 0, 0]]&lt;BR /&gt;currentSection.modelOrigin=(-0.052, 7.06643e-15, -4.19612e-15)&lt;BR /&gt;currentSection.modelPlane=[[0, -0, -1], [0, 1, -0], [1, 0, 0]]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you can see that the plane vectors are being inverted in the software then not corrected. They're "sticking."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion from the post gurus?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11132993#M121269</guid>
      <dc:creator>jswickJ9PWC</dc:creator>
      <dc:date>2022-04-27T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11133149#M121273</link>
      <description>&lt;P&gt;I've tested this out with multiple posts, including default unmodified posts from Autodesk and the results are the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11133149#M121273</guid>
      <dc:creator>jswickJ9PWC</dc:creator>
      <dc:date>2022-04-27T18:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11133185#M121274</link>
      <description>&lt;P&gt;Nevermind, I found it. There is a fault in the logic in the standard mill/turn posts that carries over to all the posts built on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Standard code is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;getSpindle&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;) == &lt;/SPAN&gt;&lt;SPAN&gt;SPINDLE_SUB&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;invertAxes&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;SPAN&gt;// polar mode has not been enabled yet&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;which will invert the axes just fine for the sub, but the logic is missing to re-invert if the spindle switches back to the main. So I added: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;getSpindle&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;) == &lt;/SPAN&gt;&lt;SPAN&gt;SPINDLE_MAIN&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;invertAxes&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Apr 2022 18:38:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11133185#M121274</guid>
      <dc:creator>jswickJ9PWC</dc:creator>
      <dc:date>2022-04-27T18:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11135993#M121340</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11083150"&gt;@jswickJ9PWC&lt;/a&gt;&amp;nbsp;I'll send this along to the post team&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 17:37:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11135993#M121340</guid>
      <dc:creator>seth.madore</dc:creator>
      <dc:date>2022-04-28T17:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11136656#M121388</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11083150"&gt;@jswickJ9PWC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've checked a few Mill/Turn posts here and they do reset the inverted axes when switching between the secondary and main spindle.&amp;nbsp; This code can be found in the &lt;U&gt;&lt;EM&gt;onSectionEnd&lt;/EM&gt; &lt;/U&gt;function, so the axes are reset at the end of each secondary spindle operation.&amp;nbsp; Does your post have this code?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;function onSectionEnd() {
...
  if (getSpindle(false) == SPINDLE_SUB) {
    invertAxes(false, false);
  }
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The inversion of the axes are handled in the post processor and not in Fusion as you've found out.&amp;nbsp; FYI, the &lt;U&gt;modelPlane &lt;/U&gt;is not used by the post processor, but rather the &lt;U&gt;workPlane&lt;/U&gt; is used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 22:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11136656#M121388</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2022-04-28T22:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11137527#M121413</link>
      <description>&lt;P&gt;The posts do have that code; however the problematic part is actually in the onSection() function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;function onSection() {
...
// invert axes for secondary spindle   // default code
  if (getSpindle(true) == SPINDLE_SUB) {   // default code
    invertAxes(true, false); // default code
  }
  else if(getSpindle(true) == SPINDLE_MAIN){  // added code to correct
    invertAxes(false, false);   // added code to correct
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 09:44:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11137527#M121413</guid>
      <dc:creator>jswickJ9PWC</dc:creator>
      <dc:date>2022-04-29T09:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11142095#M121530</link>
      <description>&lt;P&gt;If your post has this code, then the axes should be reset to normal at the end of every operation and the code should not be required in &lt;U&gt;onSection&lt;/U&gt;.&amp;nbsp; I have tried it here with a few of the library posts and it works as desired.&amp;nbsp; Is it possible for you to provide the model you are working with so that I can test it and see if there is a scenario that we missed.&amp;nbsp; If this is an issue with the library posts we would like to get it fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 13:29:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11142095#M121530</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2022-05-02T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Post is inverting Z values when using multiple WCS on mill/turn</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11142227#M121533</link>
      <description>&lt;P&gt;What is your email so I can send it directly to you?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 14:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/post-is-inverting-z-values-when-using-multiple-wcs-on-mill-turn/m-p/11142227#M121533</guid>
      <dc:creator>jswickJ9PWC</dc:creator>
      <dc:date>2022-05-02T14:33:55Z</dc:date>
    </item>
  </channel>
</rss>

