<?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: Fanuc 0-M revision C Post processing issue in Fusion Manufacture Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528425#M111290</link>
    <description>&lt;P&gt;will be away for the next 4 days.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 23:43:53 GMT</pubDate>
    <dc:creator>djowen40</dc:creator>
    <dc:date>2019-01-16T23:43:53Z</dc:date>
    <item>
      <title>Fanuc 0-M revision C Post processing issue</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8527904#M111287</link>
      <description>&lt;P&gt;I am having 3 issues with the format of my post processing for a FANUC 0-M revision C when I use the Fanuc post process that comes with Fusion 360. I have copied the file and made a few changes already, but I am still running into 3 issues.&lt;BR /&gt;&lt;BR /&gt;At the following URL (&lt;A href="https://forums.autodesk.com/t5/fusion-360-computer-aided/post-for-fanuc-0m-problem-with-m06/td-p/5534368" target="_blank" data-saferedirecturl="https://www.google.com/url?q=https://forums.autodesk.com/t5/fusion-360-computer-aided/post-for-fanuc-0m-problem-with-m06/td-p/5534368&amp;amp;source=gmail&amp;amp;ust=1547756401327000&amp;amp;usg=AFQjCNGtw-lLDdFG5Q484Rtb4x7kCrozCA"&gt;https://forums.autodesk.com/&lt;WBR /&gt;t5/fusion-360-computer-aided/&lt;WBR /&gt;post-for-fanuc-0m-problem-&lt;WBR /&gt;with-m06/td-p/5534368&lt;/A&gt;) it is mentioned that emails can be sent to &lt;SPAN class="gI"&gt;&lt;SPAN data-hovercard-id="cam.posts@autodesk.com" data-hovercard-owner-id="22"&gt;cam.posts@autodesk.com&lt;/SPAN&gt;&lt;/SPAN&gt; to try to get resolution, but I have yet to get a reply email unfortunately.&lt;BR /&gt;&lt;BR /&gt;at line 1156 of the new post processor that I created for my machine it used to create GCode in the format T? M06. I made th following changes and got the code to swap the M06 command and Tool#, but my first issue is my machine does not like the zero in the M6 command. The Gcode needs to read as such "M6 T?", but I cannot see where it is putting in the zero &lt;BR /&gt;&lt;BR /&gt;line 1156&lt;BR /&gt;Original &lt;BR /&gt;writeBlock("T" + toolFormat.format(tool.number)&lt;WBR /&gt;, mFormat.format(6));&lt;BR /&gt;&lt;BR /&gt;Modified&lt;BR /&gt;writeBlock (mFormat.format(6),"T" + toolFormat.format(tool.number)&lt;WBR /&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The second issue that I am running into is the machine does not like the use of parenthesie "( OR )".&lt;BR /&gt;&lt;BR /&gt;The third issue I am running into is the machine does not like blank lines in the code. It seems after every tool change there is a blank line followed by a comment with parenthesie.&lt;BR /&gt;&lt;BR /&gt;I have attached a picture in an attempt to clarify. I hope I have given you enough information.&lt;BR /&gt;&lt;BR /&gt;Thanks for your time!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="yj6qo ajU"&gt;
&lt;DIV id=":166" class="ajR" tabindex="0" data-tooltip="Show trimmed content"&gt;&lt;IMG class="ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" border="0" /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8527904#M111287</guid>
      <dc:creator>ronnieperrin</dc:creator>
      <dc:date>2019-01-16T20:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Fanuc 0-M revision C Post processing issue</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528365#M111288</link>
      <description>&lt;P&gt;1st issue is easy&lt;/P&gt;
&lt;P&gt;the zero padding is injected by the m format specification. fidn the line that looks like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var mFormat = createFormat({prefix:"M", width:2, zeropad:ture, decimals:1});&lt;/PRE&gt;
&lt;P&gt;and change it two this (note change to both width and zeropad)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var mFormat = createFormat({prefix:"M", width:1, zeropad:false, decimals:1});&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;issue 2:&lt;/P&gt;
&lt;P&gt;the function shown below does the formatting of text, you can see the left and right parentheses&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;hard coded in you can change them to whatever character&amp;nbsp;your control requires (if you don't need the closing character then delete the + ")" altogether)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;function formatComment(text) {
  return &lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;"("&lt;/STRONG&gt;&lt;/FONT&gt; + filterText(String(text).toUpperCase(), permittedCommentChars).replace(/[()]/g, "") + &lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;")"&lt;/STRONG&gt;&lt;/FONT&gt;;
}&lt;/PRE&gt;
&lt;P&gt;it looks like your control is using % for comments so the new code might look like this&lt;/P&gt;
&lt;PRE&gt;function formatComment(text) {
  return &lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;"%"&lt;/STRONG&gt;&lt;/FONT&gt; + filterText(String(text).toUpperCase(), permittedCommentChars).replace(/[()]/g, "");
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Issue 3:&lt;/P&gt;
&lt;P&gt;you can remove any possibility of generating blank lines by deleting any line in the post that reads as shown below.&lt;/P&gt;
&lt;PRE&gt;writeln("");&lt;/PRE&gt;
&lt;P&gt;You you can modify it to be a blank comment if you like the white space breaking up the g-code segments by changing the line to&lt;/P&gt;
&lt;PRE&gt;writeln("%");&lt;/PRE&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>Wed, 16 Jan 2019 23:14:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528365#M111288</guid>
      <dc:creator>djowen40</dc:creator>
      <dc:date>2019-01-16T23:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fanuc 0-M revision C Post processing issue</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528395#M111289</link>
      <description>&lt;P&gt;Thank you very much for your help &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5348802"&gt;@djowen40&lt;/a&gt;. As soon as I get back to it I will provide an update.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 23:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528395#M111289</guid>
      <dc:creator>ronnieperrin</dc:creator>
      <dc:date>2019-01-16T23:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Fanuc 0-M revision C Post processing issue</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528425#M111290</link>
      <description>&lt;P&gt;will be away for the next 4 days.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 23:43:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/fanuc-0-m-revision-c-post-processing-issue/m-p/8528425#M111290</guid>
      <dc:creator>djowen40</dc:creator>
      <dc:date>2019-01-16T23:43:53Z</dc:date>
    </item>
  </channel>
</rss>

