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

    Time estimates from PrusaSlicer

    Scheduled Pinned Locked Moved Solved
    Tuning and tweaking
    5
    22
    2.7k
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      Can you send the speed, accel, jerk, etc commands while a print is in progress to see if the values are what you'd expect them to be?

      Z-Bot CoreXY Build | Thingiverse Profile

      Exerqtorundefined 1 Reply Last reply Reply Quote 0
      • Exerqtorundefined
        Exerqtor @Phaedrux
        last edited by Exerqtor

        @Phaedrux said in Time estimates from PrusaSlicer:

        Can you send the speed, accel, jerk, etc commands while a print is in progress to see if the values are what you'd expect them to be?

        Sorry for the slow reply, but covid paid a visit so i haven't had the energy to deal with this lol.

        But i just managed to check the numbers during print, and apparently the printing accelerations are at 500 for some reason.

        alt text

        So i need to track down what the f**k sends that M204 P500.

        EDIT:

        I found the issue, when redoing print_level_bed.g i had forgot to turn up both speeds AND currents and the end.

        Fixed print_level_bed.g:

        ; /sys/lib/print/print_level_bed.g  v2.1
        ; Called as part of print_start.g	
        ; Used to make sure the bed is leveled
        
        ; ====================---------------------------------------------------------
        ; Homing check
        ; ====================
        
        ; Lower currents, speed & accel
        M98 P"/sys/lib/current/xy_current_low.g"                                       ; Set low XY currents
        M98 P"/sys/lib/current/z_current_low.g"                                        ; Set low Z currents
        M98 P"/sys/lib/speed/speed_probing.g"                                          ; Set low speed & accel
        
        ; LED status
        set global.sb_leds = "homing"
        
        ; Make sure all axes are Homed
        if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed           ; If axes aren't homed
          ; Home all axis
          G91                                                                          ; Relative positioning
        
          ; Lower Z relative to current position if needed
          if !move.axes[2].homed                                                       ; If Z ain't homed
            G1 Z20 F9000 H1                                                            ; Lower Z(bed) relative to current position	
          elif move.axes[2].userPosition < 10                                          ; If Z is homed and less than 10
            G1 Z20 F9000                                                               ; Move to Z 10
        
          ; Coarse home X or Y
          G1 X600 Y600 F2400 H1                                                        ; Move quickly to X or Y endstop(first pass)
        
          ; Coarse home X
          G1 X600 H1                                                                   ; Move quickly to X endstop(first pass)
        
          ; Coarse home Y
          G1 Y600 H1                                                                   ; Move quickly to Y endstop(first pass)
        
          ; Move away from the endstops
          G1 X-5 Y-5 F9000                                                             ; Go back a few mm
        
          ; Fine home X
          G1 X600 F360 H1                                                              ; Move slowly to X axis endstop(second pass)
        
          ; Fine home Y
          G1 Y600 H1                                                                   ; move slowly to Y axis endstop(second pass)
        
          ; Absolute positioning
          G90                                                                          ; Absolute positioning
        
        ; Home Z
        ; Load the probe
        M401 P0                                                                        ; Load the klicky probe
        M400                                                                           ; Wait for moves to finish
        M98 P"/sys/lib/klicky/klicky_status.g"                                         ; Refresh klicky status
        
        ; Last check to ensure klicky is attached
        if global.klicky_status = "Attached"
          echo "Probe ATTACHED"
        else
          echo "Error probe not attached - aborting"
          M291 T5 R"Z Homing Aborted!" P"Z haven't been homed - check probe" 
          abort
        
        ; Move to bed center and home Z
        M98 P"/sys/lib/goto/bed_center.g"                                              ; Move to bed center
        M98 P"/sys/lib/speed/speed_probing.g"                                          ; Set low speed & accel
        G30 K0 Z-99999                                                                 ; Probe the center of the bed
        
        ; ====================---------------------------------------------------------
        ; Check if bed is leveled
        ; ====================
        
        ; If the bed isn't leveled
        if global.bed_leveled = false
        
          ; LED status
          set global.sb_leds = "leveling"
        
         ; ====================---------------------------------------------------------
          ; Prepare to probe
          ; ====================
        
          ; Report whats going on
          M291 R"Bed leveling" P"Please wait..." T0                                    ; Leveling bed message
        
          M561                                                                         ; Clear any bed transform
          M290 R0 S0                                                                   ; Reset baby stepping
          M84 E0                                                                       ; Disable extruder stepper
        
          ; ====================---------------------------------------------------------
          ; Probing code
          ; ====================
        
          ; Coarse leveling pass  
          M558 K0 H15 F600 A1                                                          ; Increase the depth range, gets the bed mostly level immediately
          M98 P"/sys/bed_probe_points.g"                                               ; Probe the bed
        
          ; Probe the bed
          while true
            ; Probe near lead screws
            M558 K0 H3 F240:120 A30                                                    ; Reduce depth range, probe slower for better repeatability 
            M98 P"/sys/bed_probe_points.g"                                             ; Probe the bed
        
            ; Check results - exit loop if results are good
            if move.calibration.initial.deviation < 0.02                               ; If probing result is less than 0.02mm
              break                                                                    ; Stop probing 
        
            ; Check pass limit - abort if pass limit reached
            if iterations = 5                                                          ; If probed more than 5 times
              M291 P"Bed Leveling Aborted" R"Pass Limit Reached"                       ; Abort probing, something wrong
              set global.bed_leveled = false                                           ; Set global state
              abort "Bed Leveling Aborted - Pass Limit Reached"                        ; Abort probing, something wrong
        
          ; ====================---------------------------------------------------------
          ; Finish up
          ; ====================
        
          ; Home Z
          ; Move to bed center and home Z
          M98 P"/sys/lib/goto/bed_center.g"                                            ; Move to bed center
          M98 P"/sys/lib/speed/speed_probing.g"                                        ; Set low speed & accel
          G30 K0 Z-99999                                                               ; Probe the center of the bed
        
          ; Dock the probe
          M402 P0                                                                      ; Dock the klicky probe
          M400                                                                         ; Wait for moves to finish
        
          set global.bed_leveled = true                                                ; set global state
        
          ;echo "global.bed_leveled. Value : " , global.bed_leveled
          M291 R"Bed leveling" P"Done" T5                                              ; bed leveling done message
        
        else
          ; ====================---------------------------------------------------------
          ; Response if leveled
          ; ====================
        
          ; Dock the probe
          M402 P0                                                                      ; Dock the klicky probe
          M400                                                                         ; Wait for moves to finish
          M98 P"/sys/lib/klicky/klicky_status.g"                                       ; Refresh klicky status
        
          ; Full currents, speed & accel
          M98 P"/sys/lib/current/z_current_high.g"                                     ; Restore normal Z currents
          M98 P"/sys/lib/current/xy_current_high.g"                                    ; Set high XY currents
          M98 P"/sys/lib/speed/speed_printing.g"                                       ; Restore normal speed & accels
        
        
          ; Bed already leveled, no need to probe  
          M291 S1 R"Bed leveling" P"Bed allready leveled" T1
        
          M561                                                                         ; Clear any bed transform
          M290 R0 S0                                                                   ; Reset baby stepping
        
        ; LED status
        set global.sb_leds = "ready"
        
        1 Reply Last reply Reply Quote 2
        • Exerqtorundefined Exerqtor marked this topic as a question
        • Exerqtorundefined Exerqtor has marked this topic as solved
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA