<?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 How do I add the Manual NC command &amp;quot;Display Message&amp;quot; to my post processor config? in Fusion Manufacture Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828202#M54638</link>
    <description>&lt;P&gt;I want to add support for the "Display Message" command in my post processor config file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-12-17 at 00.29.37.png" style="width: 511px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1002519i03B21D454F76DBA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-12-17 at 00.29.37.png" alt="Screenshot 2021-12-17 at 00.29.37.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My end goal is to output this message as a line of G-code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(MSG, Message goes here)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to use the PassThrough command, since there is no validation of code there, I'd rather prefer to make use of the built in "Display Message" command, and only allow it to output text, similar to what the "Comment" function does.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried adding this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;function onDisplay(message) {
writeDisplay(message);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;but that&amp;nbsp;didn't work. I cannot find any variables or functions named "message", so I am not sure how to make that show up.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(Stop/M0 works, and Comment works as well. Just not sure how I get the Display Message to work).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 23:33:33 GMT</pubDate>
    <dc:creator>johannesJGAKQ</dc:creator>
    <dc:date>2021-12-16T23:33:33Z</dc:date>
    <item>
      <title>How do I add the Manual NC command "Display Message" to my post processor config?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828202#M54638</link>
      <description>&lt;P&gt;I want to add support for the "Display Message" command in my post processor config file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-12-17 at 00.29.37.png" style="width: 511px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1002519i03B21D454F76DBA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-12-17 at 00.29.37.png" alt="Screenshot 2021-12-17 at 00.29.37.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My end goal is to output this message as a line of G-code like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(MSG, Message goes here)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to use the PassThrough command, since there is no validation of code there, I'd rather prefer to make use of the built in "Display Message" command, and only allow it to output text, similar to what the "Comment" function does.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried adding this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;function onDisplay(message) {
writeDisplay(message);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;but that&amp;nbsp;didn't work. I cannot find any variables or functions named "message", so I am not sure how to make that show up.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(Stop/M0 works, and Comment works as well. Just not sure how I get the Display Message to work).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 23:33:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828202#M54638</guid>
      <dc:creator>johannesJGAKQ</dc:creator>
      <dc:date>2021-12-16T23:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add the Manual NC command "Display Message" to my post processor config?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828292#M54639</link>
      <description>&lt;P&gt;Depending on how you want it there are a few ways to add a message to a Gcode with its post using a straight out write message for a permanent message or doing a variable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 00:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828292#M54639</guid>
      <dc:creator>daniel_lyall</dc:creator>
      <dc:date>2021-12-17T00:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add the Manual NC command "Display Message" to my post processor config?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828734#M54640</link>
      <description>&lt;P&gt;The goal was to take advantage of the Manual NC command "Display Message", so that I could type whatever message I wanted, and have it be displayed on the CNC control.&lt;/P&gt;&lt;P&gt;After doing some tests, I actually need it to be prefixed with an M0 command as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the output I'm looking to achieve is this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;M0 (MSG, My message goes here)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with the ability to change the content of the message each time I use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, I was hoping to figure out how to make the "Display Message" show up in my post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 07:58:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828734#M54640</guid>
      <dc:creator>johannesJGAKQ</dc:creator>
      <dc:date>2021-12-17T07:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add the Manual NC command "Display Message" to my post processor config?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828760#M54641</link>
      <description>&lt;P&gt;I found this post, which helped me get to the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/hsm-post-processor-forum/improved-handling-of-manual-nc-commands/td-p/8904847" target="_blank"&gt;https://forums.autodesk.com/t5/hsm-post-processor-forum/improved-handling-of-manual-nc-commands/td-p/8904847&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;// Process Manual NC Command Display Message

function onManualNC(command, value) {
  switch (command) {
  case COMMAND_DISPLAY_MESSAGE: // prepend ‘MSG,’ to operator messages
  writeBlock("M0 " + "(MSG, " + value + ")");
    break;
  default:
    expandManualNC(command, value);  // normal processing of Manual NC command
  }
}&lt;/LI-CODE&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, 17 Dec 2021 08:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture-forum/how-do-i-add-the-manual-nc-command-quot-display-message-quot-to/m-p/10828760#M54641</guid>
      <dc:creator>johannesJGAKQ</dc:creator>
      <dc:date>2021-12-17T08:21:26Z</dc:date>
    </item>
  </channel>
</rss>

