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

    Random pausing (between gcode commands??)

    Scheduled Pinned Locked Moved
    General Discussion
    3
    11
    390
    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.
    • brasseundefined
      brasse
      last edited by brasse

      I just switched to a Duet Wifi board on my CR-5 pro.

      When printing it randomly pauses, see video:
      https://youtu.be/7z-b43RiSE8

      What could cause this?

      Edit; more info:
      Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.1.1 (2020-05-19b2)
      Same problem slicing with cura or simplify 3d

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

        https://forum.duet3d.com/topic/5909/guide-for-posting-requests-for-help

        Need a lot more info please.

        Z-Bot CoreXY Build | Thingiverse Profile

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

          Can you post your config.g?
          Can you post your homeall.g?
          Can you post the entire gcode file or at least the first 50 or so lines of it?
          Can you send M122 and post the results?
          Can you send M98 P"config.g" and post the results?

          Z-Bot CoreXY Build | Thingiverse Profile

          brasseundefined 1 Reply Last reply Reply Quote 0
          • brasseundefined
            brasse
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • PCRundefined
              PCR
              last edited by

              post the contents @Phaedrux asked for

              1 Reply Last reply Reply Quote 0
              • brasseundefined
                brasse @Phaedrux
                last edited by

                config.g

                ; Configuration file for Duet WiFi (firmware version 3)
                ; executed by the firmware on start-up
                ;
                ; generated by RepRapFirmware Configuration Tool v3.2.0 on Thu Dec 31 2020 14:03:37 GMT+0100 (centraleuropeisk normaltid)
                
                ; General preferences
                G90                                            ; send absolute coordinates...
                M83                                            ; ...but relative extruder moves
                M550 P"CR5Pro"                                 ; set printer name
                
                ; Network
                M552 S1                                        ; enable network
                M586 P0 S1                                     ; enable HTTP
                M586 P1 S0                                     ; disable FTP
                M586 P2 S0                                     ; disable Telnet
                
                ; Drives
                M569 P0 S1                                     ; physical drive 0 goes forwards
                M569 P1 S1                                     ; physical drive 1 goes forwards
                M569 P2 S1                                     ; physical drive 2 goes forwards
                M569 P3 S1                                     ; physical drive 3 goes forwards
                M584 X0 Y1 Z2 E3                               ; set drive mapping
                M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
                ;M92 X80.00 Y80.00 Z400.00 E420.00              ; set steps per mm
                M92 X80.00 Y80.00 Z400.00 E100.00              ; set steps per mm
                M566 X900.00 Y900.00 Z60.00 E120.00            ; set maximum instantaneous speed changes (mm/min)
                M203 X6000.00 Y6000.00 Z180.00 E1200.00        ; set maximum speeds (mm/min)
                M201 X500.00 Y500.00 Z20.00 E250.00            ; set accelerations (mm/s^2)
                M906 X800 Y800 Z800 E800 I30                   ; set motor currents (mA) and motor idle factor in per cent
                M84 S30                                        ; Set idle timeout
                
                ; Axis Limits
                M208 X0 Y0 Z0 S1                               ; set axis minima
                M208 X300 Y225 Z380 S0                         ; set axis maxima
                
                ; Endstops
                M574 X1 S1 P"!xstop"                            ; configure active-high endstop for low end on X via pin xstop, inverted
                M574 Y1 S1 P"!ystop"                            ; configure active-high endstop for low end on Y via pin ystop, inverted
                M574 Z1 S1 P"!zstop"                            ; configure active-high endstop for low end on Z via pin zstop, inverted
                
                ; Filament sensor
                M591 D0 P1 C"!e0_stop" S1  ; filament monitor connected to E0_stop
                
                
                ; Z-Probe
                M558 P0 H5 F120 T6000                          ; disable Z probe but set dive height, probe speed and travel speed
                M557 X15:215 Y15:195 S20                       ; define mesh grid
                
                ; Heaters
                M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
                M950 H0 C"bedheat" T0                          ; create bed heater output on bedheat and map it to sensor 0
                ;M307 H0 B1 S1.00                               ; enable bang-bang mode for the bed heater and set PWM limit
                M307 H0 A151.4 C656.2 D2.3 V24 B0
                M140 H0                                        ; map heated bed to heater 0
                M143 H0 S110                                   ; set temperature limit for heater 0 to 110C
                M308 S1 P"e0temp" Y"thermistor" T100000 B4138  ; configure sensor 1 as thermistor on pin e0temp
                M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
                ;M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
                M307 H1 A368.4 C121.5 D4.9 V24 B0
                M143 H1 S250                                   ; set temperature limit for heater 1 to 250C
                
                ; Fans
                M950 F0 C"fan0" 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"fan1" 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
                M950 F2 C"fan2" Q500                           ; create fan 1 on pin fan1 and set its frequency
                M106 P2 S1 H-1                              ; set fan 2 value. Thermostatic control is turned off, PCB fan
                
                
                ; 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
                
                ; Miscellaneous
                M575 P1 S1 B57600                              ; enable support for PanelDue
                

                ####################################################

                homeall.g

                ; homeall.g
                ; called to home all axes
                ;
                ; generated by RepRapFirmware Configuration Tool v3.2.0 on Thu Dec 31 2020 14:03:37 GMT+0100 (centraleuropeisk normaltid)
                G91                     ; relative positioning
                G1 H2 Z5 F6000          ; lift Z relative to current position
                G1 H1 X-305 Y-230 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
                G1 H2 X5 Y5 F6000       ; go back a few mm
                G1 H1 X-305 Y-230 F360  ; move slowly to X and Y axis endstops once more (second pass)
                G1 H1 Z-385 F360        ; move Z down stopping at the endstop
                G90                     ; absolute positioning
                G92 Z0                  ; set Z position to axis minimum (you may want to adjust this)
                

                ####################################################
                First lines of Gcode:

                G90
                M82
                M106 S0
                M140 S60
                M190 S60
                M104 S200 T0
                M109 S200 T0
                M107 ;turn off fan
                G28 ; home X Y and Z axis end-stops
                G0 X10 Y10 F9000 ; Go to front 10mm to the right
                G0 Z0.15 ; Drop to bed
                G92 E0 ; zero the extruded length
                G1 X50 E25 F500 ; Extrude 25mm of filament in a 4cm line
                G92 E0 ; zero the extruded length
                G1 E-0.8 F500 ; Retract a little
                G1 X80 F4000 ; Quickly wipe away from the filament line
                G1 Z0.3 ; Raise and begin printing.
                ; process Process1
                ; layer 1, Z = 0.240
                T0
                G92 E0.0000
                G1 E-4.8000 F3600
                ; feature skirt
                ; tool H0.240 W0.480
                G1 Z0.240 F1002
                G1 X124.105 Y122.048 F7200
                G1 E-0.1000 F3600
                G92 E0.0000
                G1 X123.845 Y121.944 E0.0133 F1200
                G1 X123.395 Y121.716 E0.0372
                G1 X123.191 Y121.593 E0.0485
                G1 X122.766 Y121.291 E0.0732
                G1 X122.547 Y121.105 E0.0869
                G1 X122.130 Y120.678 E0.1151
                G1 X121.957 Y120.468 E0.1281
                G1 X121.663 Y120.042 E0.1526
                G1 X121.541 Y119.834 E0.1640
                G1 X121.321 Y119.383 E0.1878
                G1 X121.223 Y119.127 E0.2008
                G1 X121.038 Y118.489 E0.2323
                G1 X120.982 Y118.191 E0.2467
                G1 X120.925 Y117.579 E0.2758
                G1 X120.918 Y117.431 E0.2828
                G1 X120.922 Y107.400 E0.7585
                G1 X120.940 Y107.160 E0.7699
                G1 X121.045 Y106.466 E0.8032
                G1 X121.144 Y106.105 E0.8209
                G1 X121.474 Y105.289 E0.8627
                G1 X121.672 Y104.937 E0.8818
                G1 X122.135 Y104.310 E0.9188
                G1 X122.417 Y104.015 E0.9381
                G1 X123.091 Y103.470 E0.9792
                G1 X123.429 Y103.261 E0.9981
                G1 X124.111 Y102.946 E1.0337
                G1 X124.478 Y102.828 E1.0520
                G1 X125.262 Y102.677 E1.0898
                G1 X125.468 Y102.651 E1.0997
                G1 X149.007 Y101.217 E2.2178
                G1 X149.084 Y101.214 E2.2215
                G1 X150.614 Y101.195 E2.2941
                G1 X150.776 Y101.201 E2.3017
                G1 X152.503 Y101.354 E2.3839
                G1 X152.638 Y101.371 E2.3904
                G1 X153.674 Y101.553 E2.4403
                G1 X153.777 Y101.574 E2.4453
                G1 X154.871 Y101.840 E2.4986
                G1 X154.971 Y101.868 E2.5036
                G1 X155.998 Y102.190 E2.5546
                G1 X156.094 Y102.224 E2.5594
                G1 X157.019 Y102.579 E2.6064
                G1 X157.119 Y102.622 E2.6116
                G1 X158.223 Y103.134 E2.6693
                G1 X158.316 Y103.181 E2.6742
                G1 X159.143 Y103.633 E2.7189
                G1 X159.232 Y103.685 E2.7238
                G1 X160.229 Y104.316 E2.7797
                G1 X160.317 Y104.375 E2.7847
                G1 X161.154 Y104.986 E2.8339
                G1 X161.243 Y105.056 E2.8392
                G1 X162.195 Y105.858 E2.8983
                G1 X162.274 Y105.930 E2.9034
                G1 X162.972 Y106.603 E2.9493
                G1 X163.047 Y106.681 E2.9544
                G1 X163.898 Y107.622 E3.0146
                G1 X163.964 Y107.700 E3.0195
                G1 X164.487 Y108.358 E3.0593
                G1 X164.532 Y108.417 E3.0629
                G1 X164.956 Y109.005 E3.0972
                G1 X165.012 Y109.087 E3.1019
                G1 X165.721 Y110.211 E3.1649
                G1 X165.811 Y110.374 E3.1738
                G1 X166.011 Y110.794 E3.1958
                G1 X166.125 Y111.116 E3.2120
                G1 X166.307 Y111.885 E3.2495
                G1 X166.347 Y112.353 E3.2717
                G1 X166.300 Y113.132 E3.3088
                G1 X166.237 Y113.490 E3.3260
                G1 X166.073 Y114.044 E3.3534
                G1 X165.941 Y114.361 E3.3697
                G1 X165.548 Y115.078 E3.4084
                G1 X165.484 Y115.184 E3.4143
                G1 X164.914 Y116.056 E3.4637
                G1 X164.847 Y116.151 E3.4692
                G1 X164.051 Y117.194 E3.5314
                G1 X163.985 Y117.276 E3.5364
                G1 X163.405 Y117.940 E3.5782
                G1 X163.340 Y118.010 E3.5828
                G1 X162.559 Y118.803 E3.6356
                G1 X162.486 Y118.872 E3.6403
                G1 X161.768 Y119.516 E3.6860
                G1 X161.691 Y119.581 E3.6908
                G1 X160.847 Y120.246 E3.7417
                G1 X160.767 Y120.305 E3.7465
                G1 X159.957 Y120.866 E3.7932
                G1 X159.876 Y120.918 E3.7977
                G1 X159.044 Y121.423 E3.8439
                G1 X158.965 Y121.469 E3.8482
                G1 X158.097 Y121.929 E3.8948
                G1 X158.014 Y121.970 E3.8992
                G1 X157.192 Y122.347 E3.9421
                G1 X157.104 Y122.385 E3.9466
                G1 X156.105 Y122.773 E3.9974
                G1 X156.014 Y122.805 E4.0020
                G1 X155.143 Y123.084 E4.0454
                

                #####################################################

                M122

                === Diagnostics ===
                RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later
                Board ID: 0JD0M-9K662-MG5T4-6J9FL-3S06T-K8N6Z
                Used output buffers: 3 of 24 (24 max)
                === RTOS ===
                Static ram: 27980
                Dynamic ram: 93776 of which 44 recycled
                Exception stack ram used: 544
                Never used ram: 8728
                Tasks: NETWORK(ready,268) HEAT(blocked,1216) MAIN(running,1732) IDLE(ready,80)
                Owned mutexes:
                === Platform ===
                Last reset 01:25:11 ago, cause: software
                Last software reset at 2021-01-07 19:27, reason: User, spinning module GCodes, available RAM 8776 bytes (slot 1)
                Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task MAIN
                Error status: 4
                MCU temperature: min 49.3, current 49.7, max 50.2
                Supply voltage: min 23.7, current 24.2, max 24.3, under voltage events: 0, over voltage events: 0, power good: yes
                Driver 0: standstill, SG min/max not available
                Driver 1: standstill, SG min/max not available
                Driver 2: standstill, SG min/max not available
                Driver 3: ok, SG min/max not available
                Driver 4: standstill, SG min/max not available
                Date/time: 2021-01-07 20:53:05
                Cache data hit count 4294967295
                Slowest loop: 51.70ms; fastest: 0.14ms
                I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
                === Storage ===
                Free file entries: 9
                SD card 0 detected, interface speed: 20.0MBytes/sec
                SD card longest read time 2.8ms, write time 18.2ms, max retries 0
                === Move ===
                Hiccups: 0(0), FreeDm: 168, MinFreeDm: 157, MaxWait: 0ms
                Bed compensation in use: none, comp offset 0.000
                === MainDDARing ===
                Scheduled moves: 9333, completed moves: 9330, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: 3
                === AuxDDARing ===
                Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0  CDDA state: -1
                === Heat ===
                Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
                Heater 0 is on, I-accum = 0.2
                Heater 1 is on, I-accum = 0.5
                === GCodes ===
                Segments left: 0
                Movement lock held by HTTP
                HTTP is idle in state(s) 21
                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
                Daemon is idle in state(s) 0
                Autopause is idle in state(s) 0
                Code queue is empty.
                === Network ===
                Slowest loop: 202.00ms; fastest: 0.09ms
                Responder states: HTTP(2) 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 1
                WiFi firmware version 1.23
                WiFi MAC address 48:3f:da:4f:c7:b5
                WiFi Vcc 3.38, reset reason Unknown
                WiFi flash size 4194304, free heap 24120
                WiFi IP address 192.168.111.68
                WiFi signal strength -66dBm, reconnections 0, sleep mode modem
                Socket states: 0 0 0 0 0 0 0 0
                === Filament sensors ===
                Extruder 0 sensor: ok
                

                #######################
                M98 P"config.g"
                HTTP is enabled on port 80
                FTP is disabled
                TELNET is disabled

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

                  Thanks. That provides a much clearer picture of what's going on. Unfortunately I don't see any obvious issues.

                  Was that M122 captured after the pausing was happening in the print?

                  Was that the first layer? Usually pausing like that could be due to a low Z jerk value and using mesh compensation, but your Z jerk is high enough and you aren't even using mesh compensation as far as I can tell.

                  You also aren't using high microstepping which can sometimes be the cause.

                  I think it's worth trying to update your firmware to 3.2 though. Upload this intact zip file to the system tab in DWC.

                  https://github.com/Duet3D/RepRapFirmware/releases/download/3.2/Duet2and3Firmware-3.2.zip

                  Only other thing I can think to test would be to disable the filament sensor and disconnect it and see if there is a difference.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • brasseundefined
                    brasse
                    last edited by

                    The M122 was taken during the pause, before "Stop"

                    No mesh compensation.

                    I will try to disconnect+disable the filament sensor, if i dont have any luck there i will try 3.2 firmware.
                    Will report back. Thanks for the help so far!

                    1 Reply Last reply Reply Quote 0
                    • brasseundefined
                      brasse
                      last edited by

                      The filament sensor was the problem.
                      Disconnected and disabled that and now it works fine.
                      Thanks.

                      How can i correct it though?

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

                        @brasse said in Random pausing (between gcode commands??):

                        ; Filament sensor M591 D0 P1 C"!e0_stop" S1 ; filament monitor connected to E0_stop

                        What kind of filament sensor is it? Were the wires running near the stepper wiring?

                        I still think updating to 3.2 is worth a try.

                        Z-Bot CoreXY Build | Thingiverse Profile

                        brasseundefined 1 Reply Last reply Reply Quote 0
                        • brasseundefined
                          brasse @Phaedrux
                          last edited by

                          @Phaedrux Upgrade to 3.2 solved it! Thanks 🙂

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