<?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: [GENERIC POST] OSAI (POST LIBRARY) in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9091433#M10117</link>
    <description>&lt;P&gt;My version of OSAI control dont have any problems with interpolating on different G-planes.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 06:54:05 GMT</pubDate>
    <dc:creator>hawk_</dc:creator>
    <dc:date>2019-10-17T06:54:05Z</dc:date>
    <item>
      <title>[GENERIC POST] OSAI (POST LIBRARY)</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9079881#M10113</link>
      <description>&lt;P&gt;I noticed that generic OSAI post that are installed with HSM generate wrong IJK onCircular moves (same problem with post from online library). Making small research I noticed what lines&amp;nbsp;are responsible for generate thats moves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In OASI post&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    switch (getCircularPlane()) {
    case PLANE_XY:
      writeBlock(gPlaneModal.format(17));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cx), jOutput.format(cy), feedOutput.format(feed));
      break;
    case PLANE_ZX:
      writeBlock(gPlaneModal.format(18));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cx), jOutput.format(cz), feedOutput.format(feed));
      break;
    case PLANE_YZ:
      writeBlock(gPlaneModal.format(19));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cy), jOutput.format(cz), feedOutput.format(feed));
      break;
    default:
      linearize(tolerance);&lt;/PRE&gt;&lt;P&gt;In Haas post (that g-code structure of both control unit are more or less similar)&lt;/P&gt;&lt;PRE&gt;    switch (getCircularPlane()) {
    case PLANE_XY:
      writeBlock(gPlaneModal.format(17), gFeedModeModal.format(94), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cx - start.x, 0), jOutput.format(cy - start.y, 0), getFeed(feed));
      break;
    case PLANE_ZX:
      writeBlock(gPlaneModal.format(18), gFeedModeModal.format(94), gMotionModal.format(clockwise ? 2 : 3), iOutput.format(cx - start.x, 0), kOutput.format(cz - start.z, 0), getFeed(feed));
      break;
    case PLANE_YZ:
      writeBlock(gPlaneModal.format(19), gFeedModeModal.format(94), gMotionModal.format(clockwise ? 2 : 3), jOutput.format(cy - start.y, 0), kOutput.format(cz - start.z, 0), getFeed(feed));
      break;
    default:
      linearize(tolerance);
    }&lt;/PRE&gt;&lt;P&gt;Haas post are correct and the circular moves IJK are OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main differences are with&amp;nbsp;&amp;nbsp;i/j/kOutput.format&amp;nbsp;&lt;/P&gt;&lt;P&gt;OSAI -&amp;gt; (cx)&lt;/P&gt;&lt;P&gt;HAAS -&amp;gt; (cx - start.x, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I tried to change the code to be similar like in HAAS, OSAI post crash. Maybe someone know the solution?&lt;/P&gt;&lt;P&gt;Changing post to generate code using R parameter works fine, nevertheless I would like to fix problem with IJK moves.&amp;nbsp;&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="HAASvsOSAI.jpg" style="width: 942px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/686529i72AFA86D558D64C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="HAASvsOSAI.jpg" alt="HAASvsOSAI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 20:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9079881#M10113</guid>
      <dc:creator>hawk_</dc:creator>
      <dc:date>2019-10-10T20:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: [GENERIC POST] OSAI (POST LIBRARY)</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9080845#M10114</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/885678"&gt;@hawk_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you could configure Osai arc as in Haas postprocessor :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function onCircular(clockwise, cx, cy, cz, x, y, z, feed) {
  if (pendingRadiusCompensation &amp;gt;= 0) {
    error(localize("Radius compensation cannot be activated/deactivated for a circular move."));
    return;
  }

&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;  var start = getCurrentPosition();&lt;/FONT&gt;&lt;/STRONG&gt;

  if (isFullCircle()) {
    if (properties.useRadius || isHelical()) { // radius mode does not support full arcs
      linearize(tolerance);
      return;
    }
    switch (getCircularPlane()) {
    case PLANE_XY:
      writeBlock(gPlaneModal.format(17));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;iOutput.format(cx - start.x), jOutput.format(cy - start.y)&lt;/FONT&gt;&lt;/STRONG&gt;, feedOutput.format(feed));
      break;
    case PLANE_ZX:
      writeBlock(gPlaneModal.format(18));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;iOutput.format(cx - start.x), jOutput.format(cz - start.z)&lt;/FONT&gt;&lt;/STRONG&gt;, feedOutput.format(feed));
      break;
    case PLANE_YZ:
      writeBlock(gPlaneModal.format(19));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;iOutput.format(cy - start.y), jOutput.format(cz - start.z)&lt;/FONT&gt;&lt;/STRONG&gt;, feedOutput.format(feed));
      break;
    default:
      linearize(tolerance);
    }
  } else if (!properties.useRadius) {
    switch (getCircularPlane()) {
    case PLANE_XY:
      writeBlock(gPlaneModal.format(17));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;iOutput.format(cx - start.x), jOutput.format(cy - start.y)&lt;/FONT&gt;&lt;/STRONG&gt;, feedOutput.format(feed));
      break;
    case PLANE_ZX:
      writeBlock(gPlaneModal.format(18));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;iOutput.format(cx - start.x), jOutput.format(cz - start.z)&lt;/FONT&gt;&lt;/STRONG&gt;, feedOutput.format(feed));
      break;
    case PLANE_YZ:
      writeBlock(gPlaneModal.format(19));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;iOutput.format(cy - start.y), jOutput.format(cz - start.z)&lt;/FONT&gt;&lt;/STRONG&gt;, feedOutput.format(feed));
      break;
    default:
      // see G16
      linearize(tolerance);
    }
  } else { // use radius mode
    var r = getCircularRadius();
    if (toDeg(getCircularSweep()) &amp;gt; (180 + 1e-9)) {
      r = -r; // allow up to &amp;lt;360 deg arcs
    }
    switch (getCircularPlane()) {
    case PLANE_XY:
      writeBlock(gPlaneModal.format(17));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), "R" + rFormat.format(r), feedOutput.format(feed));
      break;
    case PLANE_ZX:
      writeBlock(gPlaneModal.format(18));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), "R" + rFormat.format(r), feedOutput.format(feed));
      break;
    case PLANE_YZ:
      writeBlock(gPlaneModal.format(19));
      writeBlock(gAbsIncModal.format(90), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), "R" + rFormat.format(r), feedOutput.format(feed));
      break;
    default:
      // see G16
      linearize(tolerance);
    }
  }
}&lt;/PRE&gt;
&lt;P&gt;Please test it carefully and let me know if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 09:47:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9080845#M10114</guid>
      <dc:creator>andrea.amilo</dc:creator>
      <dc:date>2019-10-11T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: [GENERIC POST] OSAI (POST LIBRARY)</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9082073#M10115</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4515634"&gt;@andrea.amilo&lt;/a&gt;&amp;nbsp; I checked and now values are OK, but still there is an problem with proper parameter i/j/k usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;N24 G19
N25 G03 Y-128. Z-52.187 I10. &lt;FONT color="#FF0000"&gt;J0.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Should be (like in haas)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;N70 G19 G3 Y-128. Z-52.187 J10. &lt;FONT color="#FF0000"&gt;K0.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;This problem touch all move with interpolation on plane G18/G19. Moves on G17 are OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Changing &lt;STRONG&gt;i/j/kOutput &lt;/STRONG&gt;for proper one (because in OSAI post there is only I and J output even for &lt;STRONG&gt;CZ&lt;/STRONG&gt; moves) and that crash postprocessor. To solve it it`s nesesery to add at the beginning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// circular output
var iOutput = createVariable({prefix:"I", force:true}, xyzFormat);
var jOutput = createVariable({prefix:"J", force:true}, xyzFormat);
&lt;FONT color="#FF0000"&gt;var kOutput = createVariable({prefix:"K", force:true}, xyzFormat);&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far the postprocessor has been working fine, but I will still do an additional test.&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>Fri, 11 Oct 2019 19:10:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9082073#M10115</guid>
      <dc:creator>hawk_</dc:creator>
      <dc:date>2019-10-11T19:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: [GENERIC POST] OSAI (POST LIBRARY)</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9084282#M10116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/885678"&gt;@hawk_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can configure your Osai postprocessor to have only arcs in G17 plane (IJ).&lt;/P&gt;
&lt;P&gt;You have to set :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;allowedCircularPlanes = 1 ; // allow circular motion in G17 plane&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;at the top of the file ( line 34 ).&lt;/P&gt;
&lt;P&gt;Please let me know if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 05:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9084282#M10116</guid>
      <dc:creator>andrea.amilo</dc:creator>
      <dc:date>2019-10-14T05:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: [GENERIC POST] OSAI (POST LIBRARY)</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9091433#M10117</link>
      <description>&lt;P&gt;My version of OSAI control dont have any problems with interpolating on different G-planes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 06:54:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/generic-post-osai-post-library/m-p/9091433#M10117</guid>
      <dc:creator>hawk_</dc:creator>
      <dc:date>2019-10-17T06:54:05Z</dc:date>
    </item>
  </channel>
</rss>

