Strange Behavior , after "Pause" 'Cancel ""print again"
-
@moth4017 said in Strange Behavior , after "Pause" 'Cancel ""print again":
No Cancel.g
Can you create a cancel.g file? Either put in some commands you want to happen when the print is canceled, or leave it blank for it to do nothing. The default cancel behaviour may be your problem.
https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m0-stop-or-unconditional-stop
-
i should have done this before sorry
in the console when i press "print again"
i get these error messages
Error: Homing failed
Error: Driver 0.4 error: over temperature shutdown
Error: Driver 0.5 error: over temperature shutdown
Error: Driver 0.4 error: over temperature shutdown
Error: Driver 0.5 error: over temperature shutdown
Warning: Driver 0.4 warning: over temperature warning -
@moth4017 Did you try running M906 so that you can see what current setting the drivers are using when they generate errors?
-
M906 pre test X,y,Z 1000ma
after Cancel print
M906Motor current (mA) - X:1000, Y:1000, Z:1000, E:1400, idle factor 10% -
@moth4017 Very odd? Do you always get those driver temperature errors when you have this problem?
-
@gloomyandy
Hi Yes , but i can print ok if i send new G code , it only hppend after the above sequency -
@phaedrux
If i add the cancel.g file when pressing "cancel" button the cancel.g file does not run, cancel.g file in system directory;cancel.g M98 P/macros/home_max_Z ; home_max_Z M400 ; make sure everything has stopped before we make changes ;G91 ; relative positioning ;;M915 P0.4:0.5:0.6 S3 F0 R0 ; Configure Z-Axis Stall Detection ;M913 Z80 ; Lower motor current by 50% ;M574 Z2 S4 ; Configure Z-Axis stall detection homing ;G91 ; relative positioning M98 P/macros/sensorless_Z G1 F3000 ; G1 H1 Z350 ; Home Z-Axis actuators independently M400 ; make sure everything has stopped before we make changes M913 Z100 ; Reset motor current G90 ; absolute positioning G92 Z290 ;sensorless_z M915 P0.4:0.5:0.6 S3 F0 R0 ; Configure Z-Axis Stall Detection M906 Z300 ; Lower motor current by 50% M574 Z2 S4 ; Configure Z-Axis stall detection homing M400 ; make sure everything has stopped before we make changes M906 Z1000 ; Reset motor current M400
-
Can you share the results of sending M122 and M98 P"config.g" ?
-
@phaedrux ```
3/11/2022, 11:01:06 AM M122
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.4.0rc2 (2022-02-22 17:07:31) running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: 3R9YY-6T9RL-D65J0-40KMN-2UW2Z-RHYT0
Used output buffers: 3 of 40 (15 max)
=== RTOS ===
Static ram: 103652
Dynamic ram: 110396 of which 0 recycled
Never used RAM 27592, free system stack 132 words
Tasks: NETWORK(ready,49.2%,228) HEAT(notifyWait,0.1%,356) Move(notifyWait,0.0%,292) CanReceiv(notifyWait,0.0%,942) CanSender(notifyWait,0.0%,356) CanClock(delaying,0.0%,339) TMC(notifyWait,3.6%,114) MAIN(running,44.5%,428) IDLE(ready,0.0%,29) AIN(delaying,2.5%,264), total 100.0%
Owned mutexes: WiFi(NETWORK)
=== Platform ===
Last reset 02:17:44 ago, cause: power up
Last software reset at 2022-03-09 19:21, reason: User, GCodes spinning, available RAM 24040, slot 2
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00000000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
MCU revision 3, ADC conversions started 8264987, completed 8264987, timed out 0, errs 0
Step timer max interval 754
MCU temperature: min 28.5, current 30.2, max 32.7
Supply voltage: min 23.8, current 23.9, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: pos 0, standstill, SG min 0, read errors 0, write errors 0, ifcnt 9, reads 30414, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 1: pos 0, standstill, SG min 0, read errors 0, write errors 0, ifcnt 9, reads 30414, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 2: pos 96320, standstill, SG min 0, read errors 0, write errors 0, ifcnt 9, reads 30414, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 3: pos 0, standstill, SG min 0, read errors 0, write errors 0, ifcnt 9, reads 30413, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 4: pos 0, standstill, SG min 174, read errors 0, write errors 0, ifcnt 16, reads 30407, writes 16, timeouts 0, DMA errors 0, CC errors 0
Driver 5: pos 0, standstill, SG min 16, read errors 0, write errors 0, ifcnt 16, reads 30407, writes 16, timeouts 0, DMA errors 0, CC errors 0
Driver 6: pos 0, standstill, SG min 26, read errors 0, write errors 0, ifcnt 16, reads 30407, writes 16, timeouts 0, DMA errors 0, CC errors 0
Date/time: 2022-03-11 11:01:05
Cache data hit count 4294967295
Slowest loop: 5.52ms; fastest: 0.13ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 14.1ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, segments created 3, maxWait 624ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 2, completed 2, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty
=== CAN ===
Messages queued 74382, received 0, lost 0, boc 0
Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 18 (min 18), ts 41325/0/0
Tx timeouts 0,0,41324,0,0,33056 last cancelled message type 30 dest 127
=== Network ===
Slowest loop: 16.87ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8- WiFi -
Network state is active
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.25
WiFi MAC address f0:08:d1:02:a1:0b
WiFi Vcc 3.34, reset reason Power up
WiFi flash size 2097152, free heap 25512
WiFi IP address 192.168.0.19
WiFi signal strength -49dBm, mode 802.11n, reconnections 0, sleep mode modem
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
HTTP is enabled on port 80 FTP is disabled TELNET is disabled
- WiFi -
-
@phaedrux
hi any thourghts? -
@moth4017 said in Strange Behavior , after "Pause" 'Cancel ""print again":
@phaedrux
If i add the cancel.g file when pressing "cancel" button the cancel.g file does not run, cancel.g file in system directory;cancel.g M98 P/macros/home_max_Z ; home_max_Z M400 ; make sure everything has stopped before we make changes ;G91 ; relative positioning ;;M915 P0.4:0.5:0.6 S3 F0 R0 ; Configure Z-Axis Stall Detection ;M913 Z80 ; Lower motor current by 50% ;M574 Z2 S4 ; Configure Z-Axis stall detection homing ;G91 ; relative positioning M98 P/macros/sensorless_Z G1 F3000 ; G1 H1 Z350 ; Home Z-Axis actuators independently M400 ; make sure everything has stopped before we make changes M913 Z100 ; Reset motor current G90 ; absolute positioning G92 Z290 ;sensorless_z M915 P0.4:0.5:0.6 S3 F0 R0 ; Configure Z-Axis Stall Detection M906 Z300 ; Lower motor current by 50% M574 Z2 S4 ; Configure Z-Axis stall detection homing M400 ; make sure everything has stopped before we make changes M906 Z1000 ; Reset motor current M400
Can you try a simplified cancel.g? Maybe just a G28 XY
-
;cancel.g
G28 X YThe console displayed this after cancel print:-
M0
Printing paused at X128.9 Y78.9 Z0.3
Cancelled printing file 0:/gcodes/shark-v2-0-a_0.35mm_PLA__2h32m.gcode, print time was 0h 5mthe Cancel.g file didnt run, so i put "G28 X Y" in the command line , this ran perfectly , but then i got this error in the console , only happens when i do the "Cancel"
3/16/2022, 7:56:33 PM Error: Driver 0.4 error: over temperature shutdown
3/16/2022, 7:56:33 PM Emergency stop, attemping to reconnect...
3/16/2022, 7:56:31 PM Error: Driver 0.6 error: over temperature shutdown
3/16/2022, 7:56:31 PM Error: Driver 0.5 error: over temperature shutdown
3/16/2022, 7:56:30 PM Error: Driver 0.4 error: over temperature shutdown -
It seems like it's not picking up your files.
Can you get a fresh SD card out and set it up with fresh files entirely? Get a clean basic config from the config tool.
Maybe post some screen shots of your file structure? Or zip up your entire SD card minus the gcodes folder and post that?
-
@phaedrux
Is there a reason it would not read the cancel.g only as if i change any macro files they are being read.i will try i new install though
-
So to check if the SD card was writing/reading i put the "G28 X Y" into the pause.g file to test it was working, and yes the pause.g did the "G28 X Y" but it still does not read the cancel.g file i have alsso updated to the new 3.4.0 version released today
-
@phaedrux
new Firmware loaded
M122
=== Diagnostics ===
RepRapFirmware for Duet 3 Mini 5+ version 3.4.0 (2022-03-15 18:59:15) running on Duet 3 Mini5plus WiFi (standalone mode)
Board ID: 3R9YY-6T9RL-D65J0-40KMN-2UW2Z-RHYT0
Used output buffers: 3 of 40 (19 max)
=== RTOS ===
Static ram: 103684
Dynamic ram: 110484 of which 0 recycled
Never used RAM 27472, free system stack 132 words
Tasks: NETWORK(ready,11.6%,202) HEAT(notifyWait,0.0%,342) Move(notifyWait,0.0%,292) CanReceiv(notifyWait,0.0%,942) CanSender(notifyWait,0.0%,356) CanClock(delaying,0.0%,337) TMC(delaying,1.1%,114) MAIN(running,86.1%,428) IDLE(ready,0.2%,29) AIN(delaying,0.8%,264), total 100.0%
Owned mutexes: WiFi(NETWORK)
=== Platform ===
Last reset 00:01:36 ago, cause: software
Last software reset at 2022-03-18 15:14, reason: User, GCodes spinning, available RAM 23704, slot 0
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00000000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
MCU revision 3, ADC conversions started 96385, completed 96385, timed out 0, errs 0
Step timer max interval 751
MCU temperature: min 35.9, current 36.4, max 41.2
Supply voltage: min 23.7, current 23.9, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes
Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0
Events: 0 queued, 0 completed
Driver 0: standstill, SG min 0, read errors 0, write errors 1, ifcnt 26, reads 8712, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 1: standstill, SG min 2, read errors 0, write errors 1, ifcnt 26, reads 8712, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 2: standstill, SG min 0, read errors 0, write errors 1, ifcnt 19, reads 8712, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 3: standstill, SG min 2, read errors 0, write errors 1, ifcnt 25, reads 8712, writes 9, timeouts 0, DMA errors 0, CC errors 0
Driver 4: standstill, SG min 46, read errors 0, write errors 1, ifcnt 53, reads 8706, writes 15, timeouts 0, DMA errors 0, CC errors 0
Driver 5: standstill, SG min 14, read errors 0, write errors 1, ifcnt 55, reads 8705, writes 16, timeouts 0, DMA errors 0, CC errors 0
Driver 6: standstill, SG min 74, read errors 0, write errors 1, ifcnt 51, reads 8705, writes 16, timeouts 0, DMA errors 0, CC errors 0
Date/time: 2022-03-18 15:16:32
Cache data hit count 187991149
Slowest loop: 5.91ms; fastest: 0.13ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 22.5MBytes/sec
SD card longest read time 1.0ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, segments created 3, maxWait 624ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 2, completed 2, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty
=== CAN ===
Messages queued 864, received 0, lost 0, boc 0
Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 18 (min 18), ts 481/0/0
Tx timeouts 0,0,480,0,0,382 last cancelled message type 30 dest 127
=== Network ===
Slowest loop: 138.62ms; fastest: 0.00ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8- WiFi -
Network state is active
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.25
WiFi MAC address f0:08:d1:02:a1:0b
WiFi Vcc 3.34, reset reason Power up
WiFi flash size 2097152, free heap 25512
WiFi IP address 192.168.0.19
WiFi signal strength -53dBm, mode 802.11n, reconnections 0, sleep mode modem
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
Still getting this error after "Pause" "Cancel" "print again"
Cancelled printing file 0:/gcodes/shark-v2-0-a_0.35mm_PLA__2h32m.gcode, print time was 0h 0m
Error: Failed to home axes
Error: Driver 0.5 error: over temperature shutdown
Error: Driver 0.4 error: over temperature shutdown
Error: Driver 0.5 error: over temperature shutdown
Error: Driver 0.4 error: over temperature shutdown
Error: Driver 0.5 error: over temperature shutdown - WiFi -
-
Can you upload your actual files for pause.g and cancel.g?
-
@phaedrux
;cancel.g
G28 X Y; pause.g
; called when a print from SD card is paused
;
; generated by RepRapFirmware Configuration Tool v3.3.10 on Thu Dec 30 2021 11:07:38 GMT+1300 (New Zealand Daylight Time)
M83 ; relative extruder moves
G1 E-10 F3600 ; retract 10mm 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
G28 X YThe G28 X Y works on pause.g but still not on cancel.g
-
Can you drag and drop the actual files to upload them? That way we can see if there are any non-standard characters or something like that in the file itself.
And since it's calling some homing files, perhaps you can share those as well. Maybe there is something happening in homex and homey.
-
@phaedrux ```
;cancel.g G28 X Y
; homex.g ; called to home the X axis ;M98 P/macros/sensorless_Z G91 ; relative positioning G1 H1 X-235 F12000 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X15 F6000 ; go back a few mm G1 H1 X-235 F360 ; move slowly to X axis endstop once more (second pass) ;G1 H2 Z-5 F12000 ; lower Z again G90 ; absolute positioning G1 X20 F6000 ; go to X 0 print area G92 X0 ; set X to 0 position
;sensorless_z M915 P0.4:0.5:0.6 S3 F0 R0 ; Configure Z-Axis Stall Detection M906 Z300 ; Lower motor current by 50% M574 Z2 S4 ; Configure Z-Axis stall detection homing M400 ; make sure everything has stopped before we make changes M906 Z1000 ; Reset motor current M400
; homey.g ; called to home the Y axis ; ; generated by RepRapFirmware Configuration Tool v3.3.10 on Thu Dec 30 2021 11:07:38 GMT+1300 (New Zealand Daylight Time) M98 P/macros/sensorless_Z G91 ; relative positioning G1 H1 Y315 F12000 ; move quickly to Y axis endstop and stop there (first pass) G1 H2 Y15 F12000 ; go back a few mm G1 H1 Y315 F360 ; move slowly to Y axis endstop once more (second pass) ;G1 H2 Z-5 F12000 ; higher Z again G90 ; absolute positioning G1 Y0 F6000 ; go to X 0 print area G92 Y0 ; set X to 0 position```
; pause.g ; called when a print from SD card is paused ; ; generated by RepRapFirmware Configuration Tool v3.3.10 on Thu Dec 30 2021 11:07:38 GMT+1300 (New Zealand Daylight Time) M83 ; relative extruder moves G1 E-10 F3600 ; retract 10mm 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 G28 X Y