Resurrect.g problems
-
Following a heater failure near the beginning of a long print I thought I should use the opportunity to figure out how I should restart from the point of failure, rather than just start again in case it happens again much further into the print.
My resurrect.g, pause.g and resume.g are is as follows:
; File "0:/gcodes/CFDMP_1B.gcode" resume print after print paused at 2018-08-05 02:24
M140 P0 S65.0
G10 P0 S212 R212
T0 P0
G29 S1
G92 X115.043 Y117.020 Z11.300
M98 Presurrect-prologue.g
M106 P0 S0.50
M106 P3 S0.00
M106 P4 S0.00
M106 P5 S0.00
M106 P6 S0.00
M106 P7 S0.00
M106 P8 S0.00
M106 S127.50
M116
M290 S0.000
G92 E0.00000
M83
M23 0:/gcodes/CFDMP_1B.gcode
M26 S3715755 P0.000
G0 F6000 Z13.300
G0 F6000 X115.043 Y117.020
G0 F6000 Z11.300
G1 F3600.0 P0
M24; pause.g
; called when a print from SD card is paused
;
; generated by RepRapFirmware Configuration Tool on Thu Dec 28 2017 11:27:37 GMT+0000 (GMT Standard Time)
M83 ; relative extruder moves
G1 E-2 F3600 ; retract 2mm of filament
G91 ; relative positioning
G1 Z5 F360 ; lift Z by 5mm
G90 ; absolute positioning
G1 X0 Y0 F6000 ; go to X=0 Y=0; resume.g
; called before a print from SD card is resumed
;
; generated by RepRapFirmware Configuration Tool on Thu Dec 28 2017 11:27:37 GMT+0000 (GMT Standard Time)
G1 R1 Z5 F6000 ; go to 5mm above position of the last print move
G1 R1 ; go back to the last print move
M83 ; relative extruder moves
G1 E2 F3600 ; extrude 2mm of filamentI have a couple of questions.
In my resurrect.g there is an M98 Presurrect.prologue.g I don't seem to have this?and when I use G30 to home Z it shows my Z position at -15.01 when the z probe is triggered. Is this correct?
regards
Arthur
-
Sorry I should have stated I am using firmware v2.01
-
-
Thanks thats what I have been trying to follow but when I try to home Z using g30 its showing z position as -15.01 when z probe is triggered is this correct?
regards
Arthur
-
@flyingscot said in Resurrect.g problems:
Thanks thats what I have been trying to follow but when I try to home Z using g30 its showing z position as -15.01 when z probe is triggered is this correct?
regards
Arthur
That sounds odd. What exactly are you doing in resurrect-prologue.g to home Z? I presume you are positioning the head clear of the print for homing.
-
I maybe have it wrong I though I had to home machine manually to stop head crashing into job.
so I homed x & y with buttons and moved head to a clear position and ran g30 from console.arthur
-
Oh thats the other problem I only have resurrect.g no resurrect-prologue.g Do I have to re-name it?
-
@flyingscot No these are two separate files.
resurrect.g
is created for every paused print anew whereasresurrect-prologue.g
will be a generic set of instructions being equal to all resurrected prints. Typically these contain at least the homing process with a partial build on the build plate and then also contain an arbitrary amount of additional commands that you might need to do whenever you have to restart a failed print.For reference mine looks like
G28 XY ; Home X and Y regularly G0 Y230 ; Move Y to the front maximum G28 Z ; Home Z now where the head has least chance to hit something
-
ok nearly there I think I now have a resurrect-prologue.g file as below.
the clear area for z probe is X205, Y 2. so X & X home ok then the head moves to X205, Y2 but then tries to home Z in the middle of the bed where the job is.
I read that z coordinates cant be used with g28 z so how do you stop it heading to its normal home z position?resurrect-prologue.g
G28 XY ;Home X & Y regularly
G0 Y2 ;Move y to front of bed
G0 X205 ;Move X to clear area
G28 Z ;Home Z where head has least chance of hitting anything -
@flyingscot
G28 Z
will simply run/sys/homez.g
. So you might have to modify this?! I don't have a Z probe just a simple microswitch endstop so to home Z my axis just lowers until the switch is hit independent of the heads position. So I cannot tell you exactly what is the best in this case. -
@wilriker said in Resurrect.g problems:
@flyingscot
G28 Z
will simply run/sys/homez.g
. So you might have to modify this?!Just copy the contents of homez.g into the resurrect-prologue file in place of the G28 Z command, removing or adjusting any commands that position the head in XY before executing the G30 or G1 S1 Z command that does the actual homing.
-
@dc42 said in Resurrect.g problems:
Just copy the contents of homez.g into the resurrect-prologue file in place of the G28 Z command, removing or adjust any commands that position the head in XY before executing the G30 or G1 S1 Z command that does the actual homing.
That makes a lot more sense than my idea.
Too hot -> brain-melt -> going home now (or into the fridge?). -
Success, thanks for all your help Guys