LinuxCNC GCode message

More
5 years 9 months ago #197107 by FranseFrikandel
Hello,

Is there any way to obtain messages from GCode using the (MSG, ) syntax, and display them somewhere in the VCP? I am using a slightly modified version of probe_basic.

Please Log in to join the conversation.

More
5 years 9 months ago #197193 by KCJ
Replied by KCJ on topic LinuxCNC GCode message
Yes there is.

By default any gcode comments starting with MSG or DEBUG will be displayed in a popup notification in the upper right corner of the screen (much like in gmoccapy or axis). These notifications are completely configurable via a custom YAML config file.

The messages along with any other LinuxCNC errors should also be displayed in the notification widget in one of the status tab.

If you would like to display the messages via some other means (StatusLabel etc.), they are available from the status item channels.

If you give specific info on what you are trying to achieve we can help more.

Cheers,
Kurt

Please Log in to join the conversation.

More
5 years 9 months ago #197194 by KCJ
Replied by KCJ on topic LinuxCNC GCode message
Here is an example of the rule and status channels that could be used to display a gcode debug message in a StatusLabel.

The channels indicated by the red rectangle are other options, that could be displayed in the same status label, or separate labels if desired.

Attachment not found

Please Log in to join the conversation.

More
5 years 8 months ago #197251 by FranseFrikandel
Thanks! I haven't decided exactly how I wanted to do it but knowing theres a channel for it should get me far enough.

Is the notifications:info_message the channel where I will find the (MSG, ) messages? As I assume debug_message will only show (DEBUG, ) messages?

Also, since it seems these status items are missing in the documentation:
www.qtpyvcp.com/components/status_items.html
Is there any other place to find documentation on all available channels?

Please Log in to join the conversation.

More
5 years 8 months ago #197364 by KCJ
Replied by KCJ on topic LinuxCNC GCode message
Yes, the notifications:info_message is correct for comments beginning with MSG.

The notification plugin is separate from the main LinuxCNC status plugin, since I wanted to make it easy to replace with a custom plugin if somebody wanted different behavior.

The data channels provided by the notifications plugin should be documented in the plugin specific docs ( www.qtpyvcp.com/plugins/notifications.html ), but they they are not. I'll work on adding that, at some point ...

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum