Good evening,
following situation with a Duet6HC-Board in SBC-Mode connected to a RPI 5 (FW/DSF v3.5.4):
When I run tool-change macros and reach a certain depth of nested macros, I get a delay of ~4 secs after executing the 'deepest'/innermost macro.
The macro-calls look like this:
Any tool command via console (or NC file):
-> tfree_1.g
-> tool_free.g (my generic tool-command)
-> system_vars.g (set/updates a bunch of global variables)
-> special_system_var.g (set a single global variable)
When I execute special_system_var.g the system pauses for some seconds. From the log I can estimate the delay: ~4 seconds.
I doesn't matter if this macro contains any code; even if it's empty the pause occurs.
If I remove this macro(-level) and replace the M98-call with the macro-content everything works as expected.
I checked if this is a generic issue with nested macros: I called up to 6 nested macros without an issue. I also tested these macros (just some echo-stuff and the M98 for the next level) within a system tool-change-macro and also no problem.
So the issue is related to the nesting-depth and my concrete tool-macros.
I can easily find a workaround for this, but it should be helpful to understand what happens here.
Anyone any idea?
Thanks and regards,
Reiner