Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I add the Manual NC command "Display Message" to my post processor config?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
johannesJGAKQ
395 Views, 3 Replies

How do I add the Manual NC command "Display Message" to my post processor config?

I want to add support for the "Display Message" command in my post processor config file.

Screenshot 2021-12-17 at 00.29.37.png

My end goal is to output this message as a line of G-code like this:

 

(MSG, Message goes here)

 

 

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.


I have tried adding this:

 

function onDisplay(message) {
writeDisplay(message);
}

 

but that didn't work. I cannot find any variables or functions named "message", so I am not sure how to make that show up.
 
(Stop/M0 works, and Comment works as well. Just not sure how I get the Display Message to work).
 
 
Any suggestions?
 

 

 

Tags (1)
3 REPLIES 3
Message 2 of 4

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.  


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

Message 3 of 4

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.

After doing some tests, I actually need it to be prefixed with an M0 command as well.

 

So the output I'm looking to achieve is this:

M0 (MSG, My message goes here)

 

But with the ability to change the content of the message each time I use it.

 

Thus, I was hoping to figure out how to make the "Display Message" show up in my post.

 

Kind regards

Johannes

 

 

Message 4 of 4

I found this post, which helped me get to the solution.

 

https://forums.autodesk.com/t5/hsm-post-processor-forum/improved-handling-of-manual-nc-commands/td-p...

 

 

// 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
  }
}

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report