LinuxCNC GCode message

More
30 Jan 2021 01:03 - 30 Jan 2021 23:38 #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.
Last edit: 30 Jan 2021 23:38 by FranseFrikandel.
The following user(s) said Thank You: Lcvette

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 01:52 - 31 Jan 2021 01:58 #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
Last edit: 31 Jan 2021 01:58 by KCJ. Reason: typos
The following user(s) said Thank You: Lcvette

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 02:05 #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.

Attachments:
The following user(s) said Thank You: Lcvette, aleksamc, FranseFrikandel

Please Log in or Create an account to join the conversation.

More
31 Jan 2021 22:29 #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?
The following user(s) said Thank You: Lcvette

Please Log in or Create an account to join the conversation.

More
02 Feb 2021 01:06 - 02 Feb 2021 01:07 #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 ...
Last edit: 02 Feb 2021 01:07 by KCJ.
The following user(s) said Thank You: Lcvette, FranseFrikandel

Please Log in or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.345 seconds
Powered by Kunena Forum