Is there a way how I can print all the gcode commands that are sent to the CNC back to my computer, especially when I am working off SD Cards? I have a custom extended gcode set to control my cooling and the Spindle, I need to get the commands back so that I can switch my stuff on them. Is there any way to do this?
Thanks for the help.
#1 – bdring 于 2020-04-04
There is no function for that.
There is an echo feature, but that echos the commands back to the source. I suppose you could hack that so it always sends to serial port. The problem is, that is probably not synchronized with the motion. Grbl reads a lot of commands at once and puts them in the planner. In the case of a long move, then spindle off, the spindle off may be sent to the serial port before the move is complete.