Plotter and subroutine depth

More
02 Jan 2026 01:06 #340863 by MaHa
Plotter and subroutine depth was created by MaHa
Finally i found the reason for preview disappearing sometimes, while program execution. I was watching call level, current subroutine depth, and preview only works with value 0, not in a subroutine.

 

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

More
02 Jan 2026 13:07 #340879 by MaHa
Replied by MaHa on topic Plotter and subroutine depth
After further investigating, it seems when queue buster, M66 E0 L0  or G38.n is used, makes the preview disappear and sub call level is 1
Most of my routines are used for years, and when there were problems with LOG, and DO / WHILE loop and others, queue buster always helped.

I modified a probing routine for diameter inside, just moving with G1. #<queue_bust> can be set to 0 or 1 , to see the problem

the file example.ngc is used to call example_sub.ngc


 

File Attachment:

File Name: example.ngc
File Size:1 KB


 

File Attachment:

File Name: example_sub.ngc
File Size:1 KB
Attachments:

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

More
06 Jan 2026 11:07 #341058 by JT
Replied by JT on topic Plotter and subroutine depth
Do you get the same results using Axis? I ask that because Flex GUI uses the same plotter as Axis.

JT

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

More
06 Jan 2026 11:42 #341060 by MaHa
Replied by MaHa on topic Plotter and subroutine depth
In axis the preview is always there. But axis doesn't update the preview, once gcode is loaded. Typical example in axis, probing or shifting offsets during runtime. This leads to a misplaced trace compared to the originally loaded preview, which persists.
Flexgui does update the plot, if i shift offsets, G10... updates the view.
What i tested, G38, M66 and even my toolchange routine, block the preview until none of the mentioned before is in the further gcode, and then preview comes back.
 
The following user(s) said Thank You: JT

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

Moderators: JT
Time to create page: 0.064 seconds
Powered by Kunena Forum