Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Strange Behavior , after "Pause" 'Cancel ""print again"

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    4
    47
    1.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • moth4017undefined
      moth4017
      last edited by

      Duet 3+mini5
      DWC RC2
      RRP RC2

      im get a Strange Behavior on bed leveling after "Pause" 'Cancel ""print again"

      When the bed tries to do the 3 Point leveling the Z motors seem to be in a low current mode and are skipping steps.

      ; General preferences
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"Valkyrie 3030 V001" ; set printer name
      M669 K1 ; core xy

      ; Network
      M552 S1 ; enable network
      M586 P0 S1 ; enable HTTP
      M586 P1 S0 ; disable FTP
      M586 P2 S0 ; disable Telnet

      ; Drives
      M569 P0.0 S1 ; physical drive 0 goes forwardsM569 P0.1 S1
      M569 P0.1 S1 ; physical drive 1 goes forwardsM569 P0.1 S1
      M569 P0.2 S1 ; physical drive 2 goes forwards ( blown needs replacing)
      M569 P0.3 S1 ; physical drive 3 goes forwards (extruder
      M569 P0.4 S1 D3 V30 ; physical drive 4 goes forwards D3=stealthchop
      M569 P0.5 S0 D3 V30 ; physical drive 5 goes backwards
      M569 P0.6 S1 D3 V30 ; physical drive 6 goes forwards

      M584 X1 Y0 E3 Z0.4:0.5:0.6 ; set drive mapping FL,FR,RC
      M350 X16 Y16 I1 ; configure microstepping with interpolation
      M350 Z16 E16 I1
      M92 X80.00 Y80.00 Z320.00 E260.00 ; set steps per m
      M566 X500.00 Y500.00 Z800.00 E100.00 P1 ; set maximum instantaneous speed changes (mm/min)
      M203 X8000.00 Y8000.00 Z1000.00 E400.00 ; set maximum speeds (mm/min)
      M201 X1000.00 Y1000.00 Z200.00 E250.00 ; set accelerations (mm/s^2)
      M906 X1000 Y1000 Z1000 E1400 I10 ; set motor currents (mA) and motor idle factor in per cent
      M84 S20 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y0 Z0 S1 ; set axis minima "Travel Area"
      M208 X270 Y240 Z405 S0 ; set axis maxima "Travel area"

      ; Endstops
      M574 X1 S1 P"!io0.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io0.in
      M574 Y2 S1 P"!io1.in" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin io1.in
      ;M574 Z2 S2 P"!io4.in" ; != invert signal
      M574 Z2 S4 ; configure sensorless endstop for high end on Z, 1 = low end, 2 = high end. S4 multipule motors
      M671 X-34.4:296:132.5 Y0:0:296 S25 ; leadscrews at front left,front right, rear Center s= max correction factor must be in same order as M584

      M558 P8 C"!io3.in" H5 F600 T18000 A30 S0.03 ; set Z probe type to unmodulated and the dive height + speeds
      G31 P500 Z0.9 ; set Z probe trigger value, offset and trigger height bigger the posative number the closer to the bed
      G31 P500 X26 Y6 ; set x,y trigger value, offset and trigger height
      M557 X30:270 Y10:250 S40 ; define mesh grid

      ; Heaters
      M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed T°C" ; configure sensor 0 as thermistor on pin bedtemp
      M950 H0 C"out0" T0 Q10 ; create bed heater output on bedheat and map it to sensor 0
      M307 H0 R0.140 K0.103:0.000 D43.19 E1.35 S0.90 B0 ; PDI info for 8mm aluminium bed 700w Heater NTC 100K 3950
      M140 H0 ; map heated bed to heater 0
      M143 H0 S120 ; set temperature limit for heater 0 to 120C
      M308 S1 P"temp1" Y"thermistor" T100000 B4267 A"Extruder T°C" ; configure sensor 1 as thermistor on pin e0temp (104gt2)
      M950 H1 C"out1" T1 ; create nozzle heater output on e0heat and map it to sensor 1
      M307 H1 R3.435 K0.348:0.274 D6.64 E1.35 S1.00 B0 V23.9 ; disable bang-bang mode for heater and set PWM limit
      M143 H1 S280 ; set temperature limit for heater 1 to 280C

      ; Fans
      M950 F0 C"out4" Q500 ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"out3" Q500 ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on

      ; Tools
      M563 P0 D0 H1 F0 ; define tool 0
      G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
      G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C

      ; Custom settings are not defined
      M98 P/macros/3zhome

      ;3zhome
      M400
      M569 P0.4:0.5:0.6 V10
      G4 P100
      M574 Z2 S4
      M906 Z300 ; set motor current
      G91 ; relative positioning
      G1 H2 Z0.2 F3000 ; power up motors to ensure they are not stalled
      G4 P100 ; wait 100ms
      M400 ; wait for current moves to finish

      G4 P200
      M915 P0.4:0.5:0.6 S0 H10 F0 R0 ; Configure Z-Axis Stall Detection

      G4 P200
      G91 ; relative positioning
      G1 F4000
      G1 H1 Z350 ; Home Z-Axis actuators independently
      M400 ; make sure everything has stopped before we make changes
      M906 Z600 ; Reset motor current
      G90 ; absolute positioning
      G92 Z301 ; set position
      G91 ; relative positoning
      M84 ; Motors off

      <

      OwenDundefined gloomyandyundefined 2 Replies Last reply Reply Quote 0
      • OwenDundefined
        OwenD @moth4017
        last edited by

        @moth4017
        It would help if you post the contents of pause.g, cancel.g, stop.g and your start gcode
        Use the </> button so that we can easily scroll through the contents.

        moth4017undefined 1 Reply Last reply Reply Quote 1
        • moth4017undefined
          moth4017 @OwenD
          last edited by

          @owend

          ; 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
          
          ; stop.g
          ; called when M0 (Stop) is run (e.g. when a print from SD card is cancelled)
          ;
          ; generated by RepRapFirmware Configuration Tool v3.3.10 on Thu Dec 30 2021 11:07:38 GMT+1300 (New Zealand Daylight Time)
          
          
          No Cancel.g 
          
          Start script
          M104 S[first_layer_temperature] ; set extruder temp
          
          M109 S[first_layer_temperature] ; wait for extruder temp
          
          G28 ; home all
          
          
          
          
          
          
          
          

          <

          OwenDundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
          • OwenDundefined
            OwenD @moth4017
            last edited by

            @moth4017
            I don't see anything out of the ordinary in those files.
            Your M569 V parameter seems very low compared to the documentation, but I've never used that so I don't know enough to comment.

            1 Reply Last reply Reply Quote 0
            • gloomyandyundefined
              gloomyandy @moth4017
              last edited by

              @moth4017 What current are you expecting the steppers to be set to? Your home z seems to leave it set to 600mA (which is significantly lower than the 1000mA initially set in config.g). You might want to try running M906 from the console before your initial print and then after you have hit pause and again after cancel to see what current is set at the various stages.

              Not totally sure if it will help but you might also want to reconfigure the stall threshold to be higher after you have completed your homing just in case that is causing problems.

              I notice that you also have M84 at the end of your zhome code, this is unusual. What are you expecting it to do?

              moth4017undefined 1 Reply Last reply Reply Quote 0
              • moth4017undefined
                moth4017 @gloomyandy
                last edited by moth4017

                @gloomyandy
                Hi i have also tried setting current to 1000ma still the same issue.

                Ill try the M906 later
                M84 is at the end of the home Z as i send the bed to Max Z and then turn off the motors ,

                <

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  I think what's happening is that you're moving the Z axis to the max position and reducing the current. When it tries to move again it's stalling or maybe binding.

                  Return your motor current to normal before trying to move the axis again and see if it's able to move.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  moth4017undefined 1 Reply Last reply Reply Quote 0
                  • moth4017undefined
                    moth4017 @Phaedrux
                    last edited by

                    @phaedrux
                    Hi when i do "pause print" "cancel" "print again" the bed has remained at the top position so it has not done the sensorless homing at Z max

                    <

                    1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @moth4017
                      last edited by

                      @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

                      Z-Bot CoreXY Build | Thingiverse Profile

                      moth4017undefined 2 Replies Last reply Reply Quote 0
                      • moth4017undefined
                        moth4017 @Phaedrux
                        last edited by

                        @phaedrux

                        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

                        <

                        gloomyandyundefined 1 Reply Last reply Reply Quote 0
                        • gloomyandyundefined
                          gloomyandy @moth4017
                          last edited by

                          @moth4017 Did you try running M906 so that you can see what current setting the drivers are using when they generate errors?

                          moth4017undefined 1 Reply Last reply Reply Quote 0
                          • moth4017undefined
                            moth4017 @gloomyandy
                            last edited by moth4017

                            @gloomyandy

                            M906 pre test X,y,Z 1000ma
                            after Cancel print
                            M906Motor current (mA) - X:1000, Y:1000, Z:1000, E:1400, idle factor 10%

                            <

                            gloomyandyundefined 1 Reply Last reply Reply Quote 0
                            • gloomyandyundefined
                              gloomyandy @moth4017
                              last edited by

                              @moth4017 Very odd? Do you always get those driver temperature errors when you have this problem?

                              moth4017undefined 1 Reply Last reply Reply Quote 0
                              • moth4017undefined
                                moth4017 @gloomyandy
                                last edited by

                                @gloomyandy
                                Hi Yes , but i can print ok if i send new G code , it only hppend after the above sequency

                                <

                                1 Reply Last reply Reply Quote 0
                                • moth4017undefined
                                  moth4017 @Phaedrux
                                  last edited by moth4017

                                  @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                
                                  
                                  

                                  <

                                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                                  • Phaedruxundefined
                                    Phaedrux Moderator
                                    last edited by

                                    Can you share the results of sending M122 and M98 P"config.g" ?

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    moth4017undefined 2 Replies Last reply Reply Quote 0
                                    • moth4017undefined
                                      moth4017 @Phaedrux
                                      last edited by

                                      @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

                                      <

                                      1 Reply Last reply Reply Quote 0
                                      • moth4017undefined
                                        moth4017 @Phaedrux
                                        last edited by

                                        @phaedrux
                                        hi any thourghts?

                                        <

                                        1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator @moth4017
                                          last edited by

                                          @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

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          moth4017undefined 1 Reply Last reply Reply Quote 0
                                          • moth4017undefined
                                            moth4017 @Phaedrux
                                            last edited by

                                            @phaedrux

                                            ;cancel.g
                                            G28 X Y

                                            The 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 5m

                                            the 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

                                            <

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA