Pause and Resume if play a gcode from sc card through webinterface wont work

Hello,

I have problems to pause an than executed gcode through the webinterface (using the cnc-ui from the web-if package).

Tried two different ways. First tried the the command field with “play /sd/test.gcode”. After that the gcode is excetuded. If I then press the “abort-button” nothing happens! Even if I type M26 or M600 in the command field.

Whats wrong here?

I have read the troubleshooting instructions on the Smoothieware web site and I still need help.

My test gcode:

G0 X400 F3000
G0 X10 F3000
G0 X400 F3000
G0 X10 F3000
G0 X400 F3000
G0 X10 F3000
G0 X400 F3000
G0 X10 F3000
G0 X400 F3000
G0 X10 F3000
G0 X400 F3000
G0 X10 F3000

You are looking for the “suspend” command : http://smoothieware.org/stopping-smoothie

That’s the same as M600.

If M600 doesn’t work, that’s likely because when you ask for the playing to suspend, the entire file has been played and is already in the execution buffer. Gcodes are first fed to a gcode file to a command buffer, M600 pauses one but can not pause the other.

If you want to stop execution faster/sooner, you need to use kill (M112) but you will have to home after it.

Alternatively, you can try reducing mm_per_line_segment to something like 0.1, which should ensure the buffer isn’t immediately filled by the file, leaving you a file to pause from.

Hi Arthur thanks for your response. Ok, but than the last position is lost and I have to repeat the whole gcode again after homing? Is it possible to save the last position? Even if that is not possible, maybe the excecuted gcode from sd card could printed on the webinterface in a window with the number of acutual line in numbers, so after performing M112 I could see what the last executed gcode line was and load a new file with only the not excecuted rest of the file?