Category: General LinuxCNC Questions
I am having virtually the same problem, but with a twist. Using the qtvcp gcode_graphics widget, which uses qt5_graphics, I can load any .ngc file with any tool number no problem. However, when the display is a VTK render window, any ngc file that specifies a tool greater than 9 causes a gcode interp error. For example, if line 3 in the ngc file contains:
G21 G40 G49 G64 P0.03 M6 T1
it works fine. If I change the line to:
G21 G40 G49 G64 P0.03 M6 T13
it throws:
!!!interp_error=1 result=2 last_sequence_number=3
I looked for the reason in gcodemodule.cc but C++ is beyond my brain capacity.
BTW, T13 is a valid tool. If I specify an invalid tool, so long as it's less than 10, it only throws a tool not found in tool table error, which is perfectly normal. Any insights would be greatly appreciated.
Jim