Modify pause.g for pausing at home
Can I change pause.g so it doesn't try to raise when it is at home position?
IE canceling a print while waiting for temps if I preheat to different temps than the gcode file.
It ignores the endstops and tries anyway.
Can I put an IF THEN statement in somehow?
Using the file that was already on the card
; Pause macro file
M83 ; relative extruder moves
G1 E-4 F2500 ; retract 4mm
G91 ; relative moves
G1 Z5 F5000 ; raise nozzle 2mm
G90 ; absolute moves
G1 X0 Y85 F5000 ; move head out of the way of the print
I presume you are homing to maximum Z. Why not change your homez.g and homeall.g files to back off a few mm from the Z endstop at the end?
You could add parameter S1 to the G1 Z5 command in resume.g, then it will stop at the endstop.
It does drop down a couple of mm. Forgot to mention it is a delta and the G1 X0 Y85 F5000 in pause.g would require quite a few cm. Printing right now so can't check how much. If I change G1 Z-2 F2000 in the homedelta.g to a large enough Z- value to allow pause at home position I assume that will limit my total printable Z height?
The only issue I can see with changing Z-2 to Z-5 in that command in homedelta.g is if you have a G28 command in your slicer end gcode, and then you do a print that is the full height at the centre.
Why are you raising the nozzle by as much as 5mm in your pause.g file? That seems excessive to me. I use 2mm.
If you really want to use 5mm, I think you could use G1 S1 X5 Y5 Z5 instead of G1 Z5 in your pause.g file, to have each motor stop if it triggers a homing switch.
Good question (G1 Z5), I've never modified the pause file and notice it says 2mm in the notes. The pause file was from someone else's files with a similar delta. I'll drop that to 2mm.