@ELAD said in Assistance with editing PAUSE.G and other files:
If during a pause there is a power cut the X and Y coordinates are saved but the Z coordinate gets an extra 5mm, therefore when the sending M916 the print continues well, except it pours filament 5mm too high over the model.
That might be caused by the G1 Z5 move in your resurrect-prologue.g file, along with the fact that you are not homing Z. Try reversing that movement at the end of the file.
If the print pauses due to a signal received from the filament runout sensor (Trianglelab), it doesn't invoke filament-change.g but it invokes pause.g.
That is intentional. File filament-change.g is only invoked in response to M600, which is for use within a Gcode file where a manual change of filament colour is wanted. We are considering defining a separate macro file to be invoked when a filament sensor indicates a filament problem.
In addition, if an M291 is contained inside the pause.g the message of "Extruder # reports no filament" is not being shown.
Is this on PanelDue, or in DWC? PanelDue can only track and display a single popup message at a time.
Furthermore, if an M291 with S2or3 is used, then the print resumes automatically when that message pops to the display. (without pressing on the resume)
That sounds odd. I will see if I can reproduce it in firmware 3.1.1.
I would appreciate it if someone knowledgeable than me could advise how to edit the pause.g and resume.g thus it will cool down the hotend but remembers the standby and active temps and works well for dual colour prints with two tools.
I don't think there's a way to do that yet, although you can get close to it using conditional GCode in RRF3. The mechanism would be to command a reduction in temperature by a fixed amount (e.g. 200C) using conditional GCode. Then increase it again by the same amount in resume.g. When we introduce variables into RRF3 conditional GCode, it will be more straightforward.
Meanwhile, in RRF2 you can set the active tool to standby using T-1 so that at least the temperature of the active tool drops to the standby temperature. Then use command T R1 in resume.g to active it again.
Perhaps a G60 would be useful?
In what way? G60 saves the current position, but not the temperatures.
HTH David