Duet3D / RepRapFirmware

OO C++ RepRap Firmware
GNU General Public License v3.0
942 stars 534 forks source link

Tn P6 entered in resurrect.g when it should be Tn P0 #620

Open T3P3 opened 1 year ago

T3P3 commented 1 year ago

https://forum.duet3d.com/topic/25509/is-it-possible-to-modify-my-resurrect-g/13

AndyEveritt commented 1 year ago

RRF3.5.0-b3 also produces Tn P6

; File "0:/gcodes/80mm-pull-down (T0 0.6mm - Prusament PETG).gcode" resume print after print paused at 2023-05-31 19:33
G21
M140 P0 S85.0
G29 S1
G92 X321.030 Y123.690 Z-8.150 B20.000 C96.000
G60 S1
G10 P1 S0 R0
G10 P0 S240 R240
T0 P0
M98 P"resurrect-prologue.g"
M116
M290 X0.000 Y0.000 Z0.000 B0.000 C0.000 R0
T-1 P0
T0 P6
; Workplace coordinates
G10 L2 P1 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P2 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P3 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P4 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P5 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P6 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P7 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P8 X0.00 Y0.00 Z0.00 B0.00 C0.00
G10 L2 P9 X0.00 Y0.00 Z0.00 B0.00 C0.00
G54
M106 S0.00
M106 P2 S0.00
M106 P4 S0.00
M116
G92 E0.00000
M83
G94
M486 S-1
G17
M23 "0:/gcodes/80mm-pull-down (T0 0.6mm - Prusament PETG).gcode"
M26 S1630
G0 F6000 Z2.200
G0 F6000 X300.000 Y80.000 B20.000 C96.000
G0 F6000 Z0.200
G1 F5000.0 P0
G21
M24
AndyEveritt commented 1 year ago

On investigating this bug. I had the Duet hang when trying to pause the print. The only way out was to EStop

image

AndyEveritt commented 1 year ago

Pause hang will occur if you pause on line G1 Y80 E20 F600 ; prime nozzle during the start of the print

M140 S85 ; set bed temperature
M104 S240 ; set temperature
;TYPE:Custom
; custom gcode: start_gcode
T-1
M557 X80.4905:219.51 Y63.0512:143.076 S20
G28 Z
G29
G29 S1
G10 P0 S240 R240
T0
M116 ; wait for temperatures to reach target
G1 Z5 F3000 ; lift
G1 X300 Y10 F10000 ; move to prime
G1 Z0.2 F3000 ; get ready to prime
G92 E0 ; reset extrusion distance
G1 Y80 E20 F600 ; prime nozzle
G1 Y100 F5000 ; quick wipe
G1 Z0 ; prevent oozing
; custom gcode end: start_gcode
M107
G21 ; set units to millimeters
G90 ; use absolute coordinates
M83 ; use relative distances for extrusion
; custom gcode: start_filament_gcode
; Filament gcode
; custom gcode end: start_filament_gcode
;_TOOLCHANGE 0
M109 S240 ; set temperature and wait for it to be reached
M190 S85 ; set bed temperature and wait for it to be reached
... rest of print file
AndyEveritt commented 1 year ago

Second new bug found. Just running the above gcode (excluding the last line with elipsis and the gcode that followed) causes the Duet 3 SBC to hang after homing Z on RRF3.5.0-b3 pause_freeze.txt

T3P3 commented 5 months ago

@AndyEveritt is the original Tn P6 bug still present?