Gcode to pause print indefinitely?
Posted: Mon Sep 25, 2017 4:07 am
I'm trying to add Gcode to pause my print indefinitely so I can change the color, then resume manually. I'm using the following code on an M2 right before the z-height command for the layer I want to print in the new color:
; STOP FOR FIBER CHANGE
G91 ; set relative positioning
G1 E-5 F 300; Pull back a little
G0 Z100 F3600; raise Z (drop bed)
M84 S0 ; disable idle timeout
G1 E-95 F 300; Retract Old Color
G92 E0 ; Zero Extruder
G90 ; set absolute positioning
M0 ; Pause Print (I've tried different commands here)
G92 E0 ; Zero Extruder - NEEDED!
; END OF FIBER CHANGE
The printer pauses at the correct time, but only for about 20-30 seconds. It then resumes before I have time to change the color. I want it to pause indefinitely and resume only when I do that manually from PronterFace. I got the code from my brother who uses it successfully on his M2, but it's an earlier model. I've also tried M1, M25 (though my file is not on the SD card), and M226. They all behave the same way. Thanks in advance for any info or advice.
; STOP FOR FIBER CHANGE
G91 ; set relative positioning
G1 E-5 F 300; Pull back a little
G0 Z100 F3600; raise Z (drop bed)
M84 S0 ; disable idle timeout
G1 E-95 F 300; Retract Old Color
G92 E0 ; Zero Extruder
G90 ; set absolute positioning
M0 ; Pause Print (I've tried different commands here)
G92 E0 ; Zero Extruder - NEEDED!
; END OF FIBER CHANGE
The printer pauses at the correct time, but only for about 20-30 seconds. It then resumes before I have time to change the color. I want it to pause indefinitely and resume only when I do that manually from PronterFace. I got the code from my brother who uses it successfully on his M2, but it's an earlier model. I've also tried M1, M25 (though my file is not on the SD card), and M226. They all behave the same way. Thanks in advance for any info or advice.