<?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 Adding a comma (as text) in Manual NC in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7693537#M42123</link>
    <description>&lt;P&gt;We use Manual NC to engrave serial numbers and other text using G-Code commands built into the HAAS control (where the Manual NC allows us to pass along a combination of G-code and text parameters to the control).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to engrave "Zanesville, OH" which should work with the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;T41 M6, S15000 M3,G54, M8, G0 X.7432 Y-1.4322, G43 Z.1 H41, G01 Z.1 F100., G187 P3 E0.002, G47 P0 (MADE IN ZANESVILLE,OH.) X.7432 Y-1.4322 I45. J0.125 R.1 Z-0.025 F15. E15. ;, G187&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the comma in Manual NC is removed from the posted code, as it is interpreted as a carriage return (a.k.a. new line of code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we keep the comma?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 12:04:27 GMT</pubDate>
    <dc:creator>NYC_CNC</dc:creator>
    <dc:date>2018-01-16T12:04:27Z</dc:date>
    <item>
      <title>Adding a comma (as text) in Manual NC</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7693537#M42123</link>
      <description>&lt;P&gt;We use Manual NC to engrave serial numbers and other text using G-Code commands built into the HAAS control (where the Manual NC allows us to pass along a combination of G-code and text parameters to the control).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to engrave "Zanesville, OH" which should work with the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;T41 M6, S15000 M3,G54, M8, G0 X.7432 Y-1.4322, G43 Z.1 H41, G01 Z.1 F100., G187 P3 E0.002, G47 P0 (MADE IN ZANESVILLE,OH.) X.7432 Y-1.4322 I45. J0.125 R.1 Z-0.025 F15. E15. ;, G187&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the comma in Manual NC is removed from the posted code, as it is interpreted as a carriage return (a.k.a. new line of code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we keep the comma?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 12:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7693537#M42123</guid>
      <dc:creator>NYC_CNC</dc:creator>
      <dc:date>2018-01-16T12:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a comma (as text) in Manual NC</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7693684#M42124</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that the function that you are using in your postprocessor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function onPassThrough(text) {
  var commands = String(text).split(",");
  for (text in commands) {
    writeBlock(commands[text]);
  }
}&lt;/PRE&gt;&lt;P&gt;It is from:&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/hsm/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-use-Manual-NC-options-to-manually-add-code-with-Fusion-360-HSM-CAM.html" target="_blank"&gt;https://knowledge.autodesk.com/support/hsm/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-use-Manual-NC-options-to-manually-add-code-with-Fusion-360-HSM-CAM.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could replace the comma in the split method with some other&amp;nbsp;ASCII character that&amp;nbsp;generally does not appear in a text and use that&amp;nbsp;&lt;SPAN&gt;character&amp;nbsp;&lt;/SPAN&gt;to move to another line. You could use "&lt;STRONG&gt;~&lt;/STRONG&gt;" (tilde) for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function onPassThrough(text) {
  var commands = String(text).split(&lt;FONT color="#FF0000"&gt;"&lt;STRONG&gt;~&lt;/STRONG&gt;"&lt;/FONT&gt;);
  for (text in commands) {
    writeBlock(commands[text]);
  }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 13:07:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7693684#M42124</guid>
      <dc:creator>vid.kok</dc:creator>
      <dc:date>2018-01-16T13:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a comma (as text) in Manual NC</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7709362#M42379</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; That should do the trick!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 14:33:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/adding-a-comma-as-text-in-manual-nc/m-p/7709362#M42379</guid>
      <dc:creator>NYC_CNC</dc:creator>
      <dc:date>2018-01-22T14:33:14Z</dc:date>
    </item>
  </channel>
</rss>

