I swapped in my own M6 toolchange code which (mostly) works just fine. Right before grabbing the tool, it runs a command to synchronize grabbing the tool with moving the spindle down slightly:
Code:
; Deactivate tool release to grab tool
M63 P17
G91 G1 Z[-#<z_jump>] F[#<z_jump_speed>]
However, on the first (and only first) tool change operation, and on exactly every new program loaded, the gcode just stops running right when it's about to grab the tool. It doesn't toggle machine power, it doesn't stop or pause the program, it just sits there with the "play" button pressed as if it's running. The only message I see on the terminal (even when running verbose) is:
Code:
task: main loop took 0.110972 seconds
My workaround is to move the spindle up, retract the tool, and to run the exact same program again, and everything works as it should.Any idea on how to debug this? Or tips on where in LinuxCNC source to add some more debug output around the M63 operation? I'm running 2.9.1 on a system built from LinuxCNC LiveCD. The problem persists in both Axis and QtDragon.
Thanks