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

    optimize heightmap

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    3
    167
    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.
    • jensus11undefined
      jensus11
      last edited by

      Hello,
      I think my heightmap doesn't look that good. I would like to optimize it. Can you help me with this and take a look at my data/files?
      Which data should I upload?

      Thanks

      Bildschirmfoto 2024-02-19 um 19.04.35.png

      config.g

      ; Configuration file for Duet WiFi (firmware version 3)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 24 2020 14:10:48 GMT+0200 (Mitteleuropäische Sommerzeit)
      
      ;############## General Preferences ##################
      
      G90                                                				; send absolute coordinates...
      M83                                                				; ...but relative extruder moves
      M550 P"home"                              			            ; set printer name
      M552 S1                                            				; enable network
      M586 P0 S1                                         				; enable HTTP
      M586 P1 S1                                         				; enable FTP
      M586 P2 S1                                         				; enable Telnet
      M669 K1 														; switch to CoreXY mode
      
      ;############## Drive Direction ######################
      
      M569 P0 S0                                         				; physical drive 0 goes backwards X
      M569 P1 S0                                        				; physical drive 1 goes backwards Y
      M569 P2 S1                                        				; physical drive 2 goes backwards Z
      M569 P3 S0                                        				; physical drive 3 goes forwards  E
      
      ;############## Axis Mapping #########################
      
      M584 X0 Y1 Z2 E3                                   				; set drive mapping
      
      ;############## Microstepping ########################
      
      M350 X16 Y16 Z16 E16 I1                            				; configure microstepping with interpolation
      
      ;############## Steps Per mm #########################
      
      M92 X160.00 Y160.00 Z160 E692                  				    ; set steps per mm
      
      ;############## Speeds and Feeds #####################
      
      ;M566 X1000.00 Y1000.00 Z60.00 E300.00                		    ; set maximum instantaneous speed changes (mm/min) -Jerk
      M566 X800.00 Y800.00 Z60.00 E400.00                			    ; set maximum instantaneous speed changes (mm/min) -Jerk
      M203 X15000.00 Y15000.00 Z6000.00 E7200.00          			; set maximum speeds (mm/min)
      M201 X2000.00 2000.00 Z20.00 E3000.00              			    ; set accelerations (mm/s^2)
      ;M201 X1400.00 Y1400.00 Z20.00 E3000.00              			; set accelerations (mm/s^2)
      M906 X1200 Y1200 Z1600 E1000 I5                    				; set motor currents (mA) and motor idle factor in per cent
      M84 S60                                            				; set idle timeout
      
      ;############## Axis Limits ##########################
      
      M208 X0 Y8 Z0 S1                                   				; set axis minima
      M208 X250 Y260 Z225 S0                             				; set axis maxima
      
      ;############## Endstops #############################
      
      M574 X1 S1 P"xstop"                                				; configure active-high endstop for low end on X via pin xstop
      M574 Y2 S1 P"ystop"                                				; configure active-high endstop for high end on Y via pin ystop
      
      ;############## Z-Probe ##############################
      
      M558 P5 C"zprobe.in" H5 F400 T8000                 				; create servo zprobe.in   for BLTouch
      M950 S0 C"exp.heater3"                             				; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X18.0 Y-43.0 Z2.82									; set Z probe trigger value, offset and trigger height
      M557 X28:238 Y17:217 S25                             			; define mesh grid
      
      
      ;M376 H10
      
      ;############## Heaters ##############################
      
      M308 S0 P"bedtemp" Y"thermistor" T100000 B4838     			 	; 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
      M143 H0 S100                                       			 	; set temperature limit for heater 0 to 120C
      M307 H0 R0.413 K1.227:0.000 D4.91 E1.35 S1.00 B0             	; disable bang-bang mode for the bed heater and set PWM limit
      M140 H0                                            			 	; map heated bed to heater 0
      M308 S1 P"e0temp" Y"thermistor" T100000 B4725 C7.06e-8    	 	; 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
      M143 H1 S285                                             	 	; set temperature limit for heater 1 to 260C
      M307 H1 R4.065 K0.547:0.000 D2.25 E1.35 S1.00 B0 V24.3   	 	; disable bang-bang mode for heater  and set PWM limit
      
      ;############## 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" Q25000                                   		; create fan 2 on pin fan2 and set its frequency
      M106 P2 S0:1 H1:0 T45                              				; set fan 2 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 ######################
      
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" 				; set voltage thresholds and actions to run on power loss
      M575 P1 S1 B57600	  											; enable support for PanelDue 
      
      ;############## Miscellaneous ########################
      
      M501
      

      bed.g

      ; bed.g
      ; called to perform automatic bed compensation via G32
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 25 2020 17:43:46 GMT+0200 (Mitteleuropäische Sommerzeit)
      M561 ; clear any bed transform
      G29  ; probe the bed and enable compensation
      

      homeall.g

      ; homeall.g
      ; called to home all axes
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 25 2020 17:43:46 GMT+0200 (Mitteleuropäische Sommerzeit)
      G91                      ; relative positioning
      G1 H2 Z10 F10000         ; lift Z relative to current position
      G1 H1 X-260 Y270 F5000   ; move quickly to X and Y axis endstops and stop there (first pass)
      G1 H1 X-240              ; coarse home X
      G1 H1 Y260               ; coarse home Y
      G1 X5 Y-5 F5000          ; go back a few mm
      G1 H1 X-10               ; fine home X
      G1 H1 Y10                ; fine home Y
      M98 P"homez.g"
      G90                      ; absolute positioning
      

      homez.g

      ; homez.g
      ; called to home the Z axis
      ;
      ; generated by RepRapFirmware Configuration Tool v3.1.3 on Thu Jun 25 2020 17:43:46 GMT+0200 (Mitteleuropäische Sommerzeit)
      G91               												; relative positioning
      G1 H2 Z10 F10000    											; lift Z relative to current position
      G90               												; absolute positioning
      G1 X108 Y168 F15000  		 									; Move to the center of the bed. Adjust to the co-ordinates required for the centre of your bed
      M558 F800 				 										; Set the probing speed
      G30					 											; Probe a single point
      M558 F180 				 										; Set a slower probing speed
      G30																; Probe a single point
      G1 X0 Y260 F15000
      

      M122

      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 3.5.0-rc.3 (2024-01-24 17:56:24) running on Duet WiFi 1.02 or later
      Board ID: 08DLM-996AL-K6PSD-6JKD6-3S86T-KVGUZ
      Used output buffers: 5 of 26 (26 max)
      === RTOS ===
      Static ram: 23224
      Dynamic ram: 73068 of which 0 recycled
      Never used RAM 13780, free system stack 120 words
      Tasks: NETWORK(2,nWait 6,33.7%,194) HEAT(3,nWait 5,0.1%,327) Move(4,nWait 5,0.9%,283) MAIN(1,running,65.1%,742) IDLE(0,ready,0.1%,30), total 100.0%
      Owned mutexes:
      === Platform ===
      Last reset 02:09:23 ago, cause: power up
      Last software reset at 2024-02-18 20:00, reason: User, Gcodes spinning, available RAM 12768, slot 1
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
      Error status: 0x14
      Aux0 errors 0,0,0
      MCU temperature: min 20.5, current 42.5, max 42.6
      Supply voltage: min 23.9, current 24.3, max 24.6, under voltage events: 0, over voltage events: 0, power good: yes
      Heap OK, handles allocated/used 99/1, heap memory allocated/used/recyclable 2048/44/16, gc cycles 0
      Events: 0 queued, 0 completed
      Driver 0: ok, SG min 0
      Driver 1: standstill, SG min 0
      Driver 2: ok, SG min n/a
      Driver 3: ok, SG min 0
      Driver 4: standstill, SG min n/a
      Driver 5: 
      Driver 6: 
      Driver 7: 
      Driver 8: 
      Driver 9: 
      Driver 10: 
      Driver 11: 
      Date/time: 2024-02-19 19:10:15
      Cache data hit count 4294967295
      Slowest loop: 235.95ms; fastest: 0.19ms
      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 9.0ms, write time 478.8ms, max retries 0
      === Move ===
      DMs created 83, segments created 9, maxWait 6486772ms, bed compensation in use: mesh, height map offset 0.000, max steps late 1, ebfmin -1.00, ebfmax 1.00
      next step interrupt due in 72 ticks, disabled
      Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0
      === DDARing 0 ===
      Scheduled moves 2690, completed 2685, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state 3
      === Heat ===
      Bed heaters 0 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0
      Heater 0 is on, I-accum = 0.0
      Heater 1 is on, I-accum = 0.3
      === GCodes ===
      Movement locks held by null
      HTTP is idle in state(s) 0
      Telnet is idle in state(s) 0
      File is idle in state(s) 3
      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
      Daemon is idle in state(s) 0
      Autopause is idle in state(s) 0
      Q0 segments left 3
      Code queue 0 is empty
      === Network ===
      Slowest loop: 534.20ms; fastest: 0.00ms
      Responder states: HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)
      HTTP sessions: 1 of 8
      === WiFi ===
      Interface state: active
      Module is connected to access point 
      Failed messages: pending 0, notrdy 0, noresp 0
      Firmware version 2.1beta6
      MAC address XXXXXXXXXXXXXX
      Module reset reason: Turned on by main processor, Vcc 3.38, flash size 2097152, free heap 37616
      WiFi IP address XXXXXXXXX
      Signal strength -38dBm, channel 3, mode 802.11n, reconnections 0
      Clock register 00002002
      Socket states: 0 0 0 0 0 0 0 0
      
      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @jensus11
        last edited by

        @jensus11 what kind of machine is it? You have M669 K1 in config, so a CoreXY. Moving bed, or moving gantry? It looks like the Z axis is driven from a single motor at the moment, or is it two motors on the same driver? Does it have bed levelling screws?

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        1 Reply Last reply Reply Quote 0
        • jensus11undefined
          jensus11
          last edited by jensus11

          The bed can be adjusted with screws and Z has a stepper. Leveling via a 4 point macro, which doesn't work when I check it with paper. The 2 screws in the front are ok, only at the back both screws are too far away from the nozzle. If I manually level the heightmap comes from above.

          4 point macro

          
          M140 S70
          M190 S70
          
          M671 x43:214:214:43 y43:43:214:214 P0.7                             ; The location of the four bed securing screws
          
          ;M558 P0												            ; Uncomment this if you don't have a Z Probe
          
          G28 X Y Z                                                           ; Home Z
          
          
          G30 P0 X43  Y43 Z-99999 ; probe near an adjusting screw             ; Front left screw
          G30 P1 X214 Y43 Z-99999 ; probe near an adjusting screw             ; Front right screw
          G30 P2 X214 Y214 Z-99999 ; probe near an adjusting screw            ; Rear right screw
          G30 P3 X43  Y214 Z-99999 S4 ; probe near an adjusting screw         ; Rear left screw
          
          G28 Z                                                               ; Home Z
          
          ;M140 S0
          
          

          bed mesh

          
          M140 S70
          M190 S70
          M98 P"homeall.g"
          G29
          M140 S0
          
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA