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

    Correction of heightmap is not really working

    Scheduled Pinned Locked Moved
    General Discussion
    5
    126
    6.5k
    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.
    • Stephen6309undefined
      Stephen6309 @ICY_SNAKE
      last edited by

      @icy_snake Load the heightmap after the G28. You do have to load the heightmap.

      Basic example, this runs the mesh everytime:
      G28
      G29 ; add S1 just to load the current one

      I use this mesh.g , it makes the heightmap if it doesn't exist and makes sure the printer has been homed before the G29 S0, just call it with G29.

      M561            ; clear any bed transform
      G29 S1          ; load heightmap.csv
      if result > 1   ; make if it doesn't exist
        if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed ; check if homed
         G28
        G29 S0        ; create heightmap.csv
      
      1 Reply Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @ICY_SNAKE
        last edited by

        @icy_snake said in Correction of heightmap is not really working:

        heater temp i set i my ideamaker

        bed temp i ned to set manually at an extra hardware, cannot be set via software

        load heightmap i do not know to load it before printing??

        G29 S1

        do i need to reload always the heightmap before printing?

        Dieter

        Where does the heater temp setting code appear? Is what you posted code generated by IdeaMaker?

        As to the height map remember you need to do the following to load it correctly. I load it in my start code.

        G1 Xaaa Ybbb ; where aaa and bbb put the probe at the center of the bed
        G30          ; probe the bed to set the Z=0 Datum
        G29 S1       ; load the height map
        

        You may recall that in the mesh.g file the Z=0 datum is also set before creating the height map.

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        ICY_SNAKEundefined 1 Reply Last reply Reply Quote 0
        • ICY_SNAKEundefined
          ICY_SNAKE @fcwilt
          last edited by ICY_SNAKE

          @fcwilt
          now you confuse me ???

          my mesh.g

          <G29 S2                       ; cancel mesh bed compensation
          M290 R0 S0                   ; cancel baby stepping
          G90                          ; absolute moves
          ; --- set Z=0 datum which is needed for creating a heightmap
          G1 Z5 F99999                 ; insure Z starting position is high enough to avoid probing errors
          G1 X300 Y300                 ; move probe to center of bed - set values aaa and bbb as appropriate
          G30                          ; do single probe which sets Z to trigger height of Z probe
          M557 X20:600 Y20:600 S58     ; define mesh grid 420 point = S29, 210 = S58
          G29 S0                       ; probe bed and create height map
          

          my bed.g

           < ; bed.g
           ; called to perform automatic bed compensation via G32
           ;
           
           ;M98 P"config_probe.g"        ; insure probe is using most recent configuration values
           G29 S2                       ; cancel mesh bed compensation
           M290 R0 S0                   ; cancel baby stepping
           
           G90                          ; absolute moves
           G1 Z5 F99999                 ; insure Z starting position is high enough to avoid probing errors
           
           ; M671: Define positions pf manual bed levelling screws or Z leadscrews
           ; Xnn:nn:nn... list of between 2 and 4 X coordinates of the leadscrews that drive the Z axis or the bed levelling screws
           ; Ynn:nn:nn... list of between 2 and 4 Y coordinates of the leadscrews that drive the Z axis or the bed levelling screws
           ; Snn          maximum correction allowed for each leadscrew in mm (optional, default 1.0)
           ; Pnnn         pitch of the bed levelling screws (not used when bed levelling using independently-driven leadscrews). Defaults to 0.5mm which is correct for M3 bed levelling screws
           ; Fnn          fudge factor, default 1.0
            
           
           M671 X-189:-189:645:645 Y645:-64:-64:645 S10 ; Anticlockwise
           
           ; --- level bed ---
           
           while true
           
             ; run leveling pass
           
             G30 P0 X2   Y2  Z-99999    ; Probe near a leadscrew
             G30 P1 X600 Y2  Z-99999    ; Probe near a leadscrew
             G30 P2 X600 Y600 Z-99999    ; Probe near a leadscrew
             G30 P3 X2   Y600 Z-99999 S4 ; Probe near a leadscrew
           
             if move.calibration.initial.deviation < 0.02
           
               break
           
             ; check pass limit - abort if pass limit reached
           
             if iterations = 5
           
               M291 P"Bed Leveling Aborted" R"Pass Limit Reached"
               abort "Bed Leveling Aborted - Pass Limit Reached"
           
           ; --- finish up ---
           
           ; --- set Z=0 datum which can be affected by leveling ---
           
           G1 X300 Y300 ; move probe to center of bed - set values aaa and bbb as appropriate
           G30          ; do single probe which sets Z to trigger height of Z probe
          

          My Z Macro

          <; Z-setup Macro
          ; setup Z distance
          
          M300 S666 P666               ; beeo
          M291 S3 R"Measure Z Trigger Height" P"Press OK to continue, or CANCEL to abort"
          
          G28                          ; home all
          G29 S2                       ; cancel mesh bed compensation
          M290 R0 S0                   ; cancel baby stepping
          G90                          ; absolute movements
          ; this complicated looking command computes the X and Y parameters needed to move the probe to the center of the bed
          
          G1 X{((move.axes[0].max + move.axes[0].min) / 2) - sensors.probes[0].offsets[0]}, Y{((move.axes[1].max + move.axes[1].min) / 2) - sensors.probes[0].offsets[1]}, F1800
          
          M300 S1111 P666              ; beeo
          
          M564 H1 S0                   ; ignore axis limits
          M291 S2 R"Test Z Probe Trigger Height - Step 1" P"Place a paper sheet under the nozzle and raise the bed until slight friction can be noticed" Z1 ;
          G92 Z0                       ; the nozzle should now be just touching the bed so set the logical Z position to match the physical Z position
          
          M300 S666 P666               ; beep
          M291 S2 R"Test Z Probe Trigger Height - Step 2" P"Please remove the paper sheet and wait for the bed-probing to begin" ;
          G1 Z5 F200                   ; insure Z position will allow for probing
          G30 S-1                      ; probe the bed and report the Z probe trigger height
          M564 S1 H1                   ; respect axis limits
          
          M291 S2 R"Test Z Probe Trigger Height - Step 3" P"Copy the reported height value on the G-Code console and paste it into the probe_config.g file"
          

          my config_probe.g

          < ; config_probe.g
          ; config the probe and call the other files.g
          ;
          
          M950 S0 C"duex.pwm5"
          M558 P9 C"zprobe.in" H5 F120 T6000 A5 R0.7
          
          G31 P500 X-18 Y24 Z{global.g_probe_z_trigger} ; set Z probe trigger value, offset and trigger height (larger value is closer) 
          

          my config.g

          ; General preferences_________________________________________________________
          G90                                             			; send absolute coordinates...
          M83                                             			; ...but relative extruder moves
          M111 S0 													; Debug off
          M555 P2 													; Set output to look like Marlin
          M575 P0 B57600 S2               							; communication parameters for USB serial
          M575 P1 B57600 S1											; Set auxiliary serial port baud rate and require checksum (for PanelDue)
          
          ; Network_____________________________________________________________________
          M550 P"Big 60X V3.4 15.02.2022"                        		; set printer name
          ; History
          ; removed U  15.02.2022
          ;
          ;
          
          M552 S1                                        				; enable network
          M552 P192.168.10.169										; My IP Address
          M586 P0 S1                                      			; enable HTTP
          M586 P1 S0                                      			; disable FTP
          M586 P2 S0                                      			; disable Telnet
          
          ; add probe file
          
          M98 P"probe_config.g"
          G31
          
          ; Global settings
          global g_probe_z_trigger = 2.91
          
          ; Z-Probe
          M558 P9 C"zprobe.in" H5 F120 T6000 A1 R0.7
          M950 S0 C"duex.pwm5"
          M556 S50 X0 Y0 Z0                               		
          M376 H10	
          

          now it´s not loading the value ??

          DO IT OR DON'T

          fcwiltundefined 2 Replies Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @ICY_SNAKE
            last edited by

            @icy_snake said in Correction of heightmap is not really working:

            There are a few errors in your config file - see below:

            global g_probe_z_trigger = 2.91 ; this must proceed the M98 below so the variable is set for probe_config.g to use
            
            M98 P"probe_config.g"
            
            ; remove these - they appear in probe_config.g
            
            M558 P9 C"zprobe.in" H5 F120 T6000 A1 R0.7
            M950 S0 C"duex.pwm5"                                                                                                                                                                            
            

            Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

            1 Reply Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt @ICY_SNAKE
              last edited by

              @icy_snake

              Is what you posted your entire config.g file?

              There seems to be many missing commands.

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              ICY_SNAKEundefined 1 Reply Last reply Reply Quote 0
              • ICY_SNAKEundefined
                ICY_SNAKE @fcwilt
                last edited by

                @fcwilt
                Here is my complete config file

                 <; General preferences_________________________________________________________
                 G90                                             			; send absolute coordinates...
                 M83                                             			; ...but relative extruder moves
                 M111 S0 													; Debug off
                 M555 P2 													; Set output to look like Marlin
                 M575 P0 B57600 S2               							; communication parameters for USB serial
                 M575 P1 B57600 S1											; Set auxiliary serial port baud rate and require checksum (for PanelDue)
                 
                 ; Network_____________________________________________________________________
                 M550 P"Big 60X V3.4 15.02.2022"                        		; set printer name
                 ; History
                 ; removed U  15.02.2022
                 ;
                 ;
                 
                 M552 S1                                        				; enable network
                 M552 P192.168.10.169										; My IP Address
                 M586 P0 S1                                      			; enable HTTP
                 M586 P1 S0                                      			; disable FTP
                 M586 P2 S0                                      			; disable Telnet
                 
                 ; add probe file
                 
                 M98 P"probe_config.g"
                 
                 M556 S50 X0 Y0 Z0		                               		; set orthogonal axis compensation parameters woher kommt der test wie wurde der Winkel bestimmt Unklar!
                 
                 M376 H10													; stop z-leveling after 10 layers
                 
                 ; Drives_________________________________________________________________________
                 ;Main board______________________________________________________________________
                 M569 P0 S1                                                     		; Physical drive 0 . X1
                 M569 P1 S0                                                       	; Physical drive 1 . X2
                 M569 P2 R-1                                                        	; Physical drive 2 . Canceled
                 M569 P3 S1                                                       	; Physical drive 3 . Main Extruder
                 M569 P4 S0                                                       	; Physical drive 4 . Secondary Extruder
                 ;Duex5 board_____________________________________________________________________
                 M569 P5 S0                                                       	; Physical drive 5 . Y
                 M569 P6 S0                                                       	; Physical drive 6 . Z1 (0,1000) 
                 M569 P7 S0                                                       	; Physical drive 7 . Z2 (0,0) 
                 M569 P8 S0                                                       	; Physical drive 8 . Z3 (1000,0) 
                 M569 P9 S0                                          ; Physical drive 9 . Z4 (1000,1000) 
                 
                 ;Settings_________________________________________________________
                 M584 X0:1 Y5 Z6:7:8:9 E3:4 P3						; Driver mapping
                 M671 X-189:-189:645:645 Y645:-64:-64:645 S10  		; Anticlockwise   
                 
                 ;___________________________________________________________________
                 M350 X16 Y16 I1  		                           		; Configure microstepping with interpolation
                 M350 Z16 E16:16 I0              		               	; Configure microstepping without interpolation
                 
                 M92 X100.00 Y100.00 Z1969.60 E416.21:416.21 	      	; Set steps per mm changed to fit my values 100mm messen und eintragen
                 
                 M566 X240 Y360 Z30.00 E120.00:120.00 P1          		; Set maximum instantaneous speed changes (mm/min)
                 M203 X9000.00 Y9000.00 Z200.00 E1200.00:1200.00    		; Set maximum speeds (mm/min)
                 M201 X1000 Y1000 Z120.00 E250.00:250.00             	; Set accelerations (mm/s^2)
                 M204 P500                                      			; Set print and travel accelerations  (mm/s^2)
                 M906 X1800 Y1800.00 E1000.00:1000.00 I40 				; Set motor currents (mA) and motor idle factor in per cent
                 M906 Z1800.00 I50 										; Set motor currents (mA) and motor idle factor in per cent
                 M84 S100 X Y E0 E1                                		; Set idle timeout - one minute
                 
                 ; Axis Limits
                 M208 X0 Y0 Z-1 S1                               		; set axis minima
                 M208 X600 Y600 Z630 S0                          		; my print area, changed to hight 630 do changes
                 
                 ; Endstops
                 M574 X1 S1 P"xstop + e0stop"                            ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                 M574 Y2 S1 P"ystop"                            			; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
                 
                 		                					; Height (mm) over which to taper off the bed compensation 10, 30
                 
                 ; Heaters___________________________________________________________
                 M140 H-1                                       			; disable heated bed (overrides default heater mapping)
                 
                 ;E0_________________________________________________________________
                 M308 S0 P"spi.cs1" Y"rtd-max31865"
                 M950 H0 C"e0heat" T0                            		; create nozzle heater output on e0heat and map it to sensor 0
                 M307 H0 B0 R3.818 C129.1:116.6 D3.00 S1.00 V23.9		;New TAKOTO mit Wärmeleitpaste
                 M143 H0 S300                                 			; set temperature limit for heater 0 to 300°
                 
                 ;E1_________________________________________________________________
                 M308 S1 P"spi.cs2" Y"rtd-max31865"
                 M950 H1 C"e1heat" T1                            		; create nozzle heater output on e1heat and map it to sensor 1
                 M307 H1 B0 R3.746 C151.8:132.3 D3.63 S1.00 V23.9		; NEW TAKOTO
                 M143 H1 S300         	                        		; set temperature limit for heater 1 to 300°
                 
                 
                 ; 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 on
                 M950 F1 C"fan1" Q500                            		; create fan 1 on pin fan1 and set its frequency
                 M106 P1 S0 H-1                                  		; set fan 1 value. Thermostatic control is turned on
                 M950 F2 C"duex.fan7" Q500                            	; create LED on pin fan2 and set its frequency
                 M106 P2 S0 H-1                               			; Disable fan channel for LED
                 M950 F3 C"duex.fan5" Q500                       		; create fan 3 on pin fan1 and set its frequency
                 M106 P3 S255 H0 T45                             		; set fan 3 value. Thermostatic control is turned on
                 M950 F4 C"duex.fan6" Q500                       		; create fan 4 on pin fan1 and set its frequency
                 M106 P4 S255 H1 T45                             		; set fan 4 value. Thermostatic control is turned on
                 
                 
                 ; Tools______________________________________________________________
                 ;T0_________________________________________________________________
                 M563 P0 S"E0 Primary" D0 H0 F0                  		; define tool 0
                 G10 P0 X0 Y0 Z0                                 		; set tool 0 axis offsets
                 G10 P0 R0 S210                                  		; set initial tool 0 active and standby temperatures to 0C
                 
                 ;T1_________________________________________________________________
                 M563 P1 S"E1 Secondary" D1 H1 F1                		; define tool 1
                 G10 P1 X0 Y49 Z0                                		; set tool 1 axis offsets
                 G10 P1 R0 S210                                    		; set initial tool 1 active and standby temperatures to 0C
                 
                 ; Automatic power saving____________________________________________
                 M911 S22.5 R29.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"  ; Set voltage thresholds and actions to run on power loss. Power Failure Pause
                 	
                 
                 ; Custom settings__________________________________________________
                 M950 J0 C"exp.e2stop"  					  				; create Input Pin 0 on pin E2 to for M581 Command.
                 M581 T1 P0 S0 R1										; Regular filament sensor for E0 As External Trigger
                 
                 M950 J1 C"exp.e3stop"  					  				; create Input Pin 1 on pin E3 to for M581 Command.
                 M581 T1 P1 S0 R1										; Regular filament sensor for E1 As External Trigger
                 
                 M950 J2 C"exp.e4stop"  					  				; create Input Pin 2 on pin E4 to for M581 Command.
                

                DO IT OR DON'T

                fcwiltundefined 1 Reply Last reply Reply Quote 0
                • fcwiltundefined
                  fcwilt @ICY_SNAKE
                  last edited by

                  @icy_snake

                  Thanks.

                  So what was that partial config.g file you posted?

                  Frederick

                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                  ICY_SNAKEundefined 1 Reply Last reply Reply Quote 0
                  • ICY_SNAKEundefined
                    ICY_SNAKE @fcwilt
                    last edited by

                    @fcwilt said in Correction of heightmap is not really working:

                    al config.g file you posted?

                    I did not copy the hole file, now you have the full config.g file

                    DO IT OR DON'T

                    fcwiltundefined 1 Reply Last reply Reply Quote 0
                    • fcwiltundefined
                      fcwilt @ICY_SNAKE
                      last edited by

                      @icy_snake said in Correction of heightmap is not really working:

                      @fcwilt said in Correction of heightmap is not really working:

                      al config.g file you posted?

                      I did not copy the hole file, now you have the full config.g file

                      Understood.

                      So refresh my memory - what is working, what is not working?

                      Frederick

                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                      ICY_SNAKEundefined 1 Reply Last reply Reply Quote 0
                      • ICY_SNAKEundefined
                        ICY_SNAKE @fcwilt
                        last edited by

                        @fcwilt Hello frederick,

                        we need to do it tommorow, because need to leave now home.

                        But i got an message the the axis are not homed because of z

                        error in macro line 8

                        I think its not ready somehow the distance from z

                        DO IT OR DON'T

                        fcwiltundefined 1 Reply Last reply Reply Quote 0
                        • fcwiltundefined
                          fcwilt @ICY_SNAKE
                          last edited by

                          @icy_snake

                          I'm will be ready to work about 9:00 Eastern Standard Time.

                          Frederick

                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                          ICY_SNAKEundefined 1 Reply Last reply Reply Quote 1
                          • ICY_SNAKEundefined
                            ICY_SNAKE @fcwilt
                            last edited by ICY_SNAKE

                            @fcwilt Good morning frederick,

                            back to my calibration problem.

                            I run now the button on the display for leveling.

                            head moves to all 4 corners and than to the middle and stays there.

                            messages:

                            <G32
                            Leadscrew adjustments made: 0.040 0.051 0.023 0.047, points used 4, (mean, deviation) before (0.039, 0.007) after (0.000, 0.000)>
                            

                            if i do g28 than

                            i get the following error message:

                            <G28
                             Error: in file macro line 8: G30: Z probe 0 not found>
                            

                            If i hit the button HOME ALL

                            i get the following error message:

                            <Error: in file macro line 7: G30: Z probe 0 not found
                             Error: Homing failed
                             Error: in file macro line 8: G30: Z probe 0 not found>
                            

                            my homeall.g

                            <M280 P0 S60 I1
                             G91                    			; relative positioning
                             G1 H2 Z5 F200          			; lift Z relative to current position
                            G1 H1 X-605 Y605 F3000 			; move quickly to X and Y axis endstops and stop there (first pass)
                            G1 H2 X5 Y-5 F600      			; go back a few mm
                            G1 H1 X-605 Y605 F600  			; move slowly to X and Y axis endstops once more (second pass)
                            G90                    			; absolute positioning
                            G30                    			; home Z by probing the bed>
                            

                            Dieter

                            DO IT OR DON'T

                            fcwiltundefined 1 Reply Last reply Reply Quote 0
                            • fcwiltundefined
                              fcwilt @ICY_SNAKE
                              last edited by fcwilt

                              @icy_snake

                              Hi,

                              Please post you current files:

                              • config.g
                              • config_probe.g
                              • bed.g

                              In your homeall.g file you are not moving to the center of the bed before doing the G30 to home. That is not the cause of the error messages but it should be added.

                              Frederick

                              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                              ICY_SNAKEundefined 1 Reply Last reply Reply Quote 0
                              • ICY_SNAKEundefined
                                ICY_SNAKE @fcwilt
                                last edited by ICY_SNAKE

                                @fcwilt hello frederick,

                                here are my files:

                                config.g

                                <; General preferences_________________________________________________________
                                G90                                             			; send absolute coordinates...
                                M83                                             			; ...but relative extruder moves
                                M111 S0 													; Debug off
                                M555 P2 													; Set output to look like Marlin
                                M575 P0 B57600 S2               							; communication parameters for USB serial
                                M575 P1 B57600 S1											; Set auxiliary serial port baud rate and require checksum (for PanelDue)
                                
                                ; Network_____________________________________________________________________
                                M550 P"Big 60X V3.4 15.02.2022"                        		; set printer name
                                ; History
                                ; removed U  15.02.2022
                                ;
                                ;
                                
                                M552 S1                                        				; enable network
                                M552 P192.168.10.169										; My IP Address
                                M586 P0 S1                                      			; enable HTTP
                                M586 P1 S0                                      			; disable FTP
                                M586 P2 S0                                      			; disable Telnet
                                
                                ; add probe file
                                ; global.g_probe_z_trigger
                                ; global.g_probe_z_trigger = 2.915 ; default - set as appropriate for the Z probe 
                                
                                M98 P"config_probe.g"
                                M556 S50 X0 Y0 Z0		                               		; set orthogonal axis compensation parameters woher kommt der test wie wurde der Winkel bestimmt Unklar!
                                M376 H10													; stop z-leveling after 10 layers
                                
                                
                                
                                ; Drives_________________________________________________________________________
                                ;Main board______________________________________________________________________
                                M569 P0 S1                                                     		; Physical drive 0 . X1
                                M569 P1 S0                                                       	; Physical drive 1 . X2
                                M569 P2 R-1                                                        	; Physical drive 2 . Canceled
                                M569 P3 S1                                                       	; Physical drive 3 . Main Extruder
                                M569 P4 S0                                                       	; Physical drive 4 . Secondary Extruder
                                ;Duex5 board_____________________________________________________________________
                                M569 P5 S0                                                       	; Physical drive 5 . Y
                                M569 P6 S0                                                       	; Physical drive 6 . Z1 (0,1000) 
                                M569 P7 S0                                                       	; Physical drive 7 . Z2 (0,0) 
                                M569 P8 S0                                                       	; Physical drive 8 . Z3 (1000,0) 
                                M569 P9 S0                                          ; Physical drive 9 . Z4 (1000,1000) 
                                
                                ;Settings_________________________________________________________
                                M584 X0:1 Y5 Z6:7:8:9 E3:4 P3						; Driver mapping
                                ; M671 X-189:-189:645:645 Y645:-64:-64:645 S10  		; Anticlockwise old
                                ; M671 X-168:-168:655:655 Y655:-64:-64:655 S10  		; Anticlockwise 
                                M671 X-168:-168:645:645 Y645:-64:-64:645 S10 ; Anticlockwise
                                
                                ;___________________________________________________________________
                                M350 X16 Y16 I1  		                           		; Configure microstepping with interpolation
                                M350 Z16 E16:16 I0              		               	; Configure microstepping without interpolation
                                
                                M92 X100.00 Y100.00 Z1969.60 E416.21:416.21 	      	; Set steps per mm changed to fit my values 100mm messen und eintragen
                                
                                M566 X240 Y360 Z30.00 E120.00:120.00 P1          		; Set maximum instantaneous speed changes (mm/min)
                                M203 X9000.00 Y9000.00 Z200.00 E1200.00:1200.00    		; Set maximum speeds (mm/min)
                                M201 X1000 Y1000 Z120.00 E250.00:250.00             	; Set accelerations (mm/s^2)
                                M204 P500                                      			; Set print and travel accelerations  (mm/s^2)
                                M906 X1800 Y1800.00 E1000.00:1000.00 I40 				; Set motor currents (mA) and motor idle factor in per cent
                                M906 Z1800.00 I50 										; Set motor currents (mA) and motor idle factor in per cent
                                M84 S100 X Y E0 E1                                		; Set idle timeout - one minute
                                
                                ; Axis Limits
                                M208 X0 Y0 Z-1 S1                               		; set axis minima
                                M208 X600 Y600 Z630 S0                          		; my print area, changed to hight 630 do changes
                                
                                ; Endstops
                                M574 X1 S1 P"xstop + e0stop"                            ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                                M574 Y2 S1 P"ystop"                            			; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
                                
                                		                					; Height (mm) over which to taper off the bed compensation 10, 30
                                
                                ; Heaters___________________________________________________________
                                M140 H-1                                       			; disable heated bed (overrides default heater mapping)
                                
                                ;E0_________________________________________________________________
                                M308 S0 P"spi.cs1" Y"rtd-max31865"
                                M950 H0 C"e0heat" T0                            		; create nozzle heater output on e0heat and map it to sensor 0
                                M307 H0 B0 R3.818 C129.1:116.6 D3.00 S1.00 V23.9		;New TAKOTO mit Wärmeleitpaste
                                M143 H0 S300                                 			; set temperature limit for heater 0 to 300°
                                
                                ;E1_________________________________________________________________
                                M308 S1 P"spi.cs2" Y"rtd-max31865"
                                M950 H1 C"e1heat" T1                            		; create nozzle heater output on e1heat and map it to sensor 1
                                M307 H1 B0 R3.746 C151.8:132.3 D3.63 S1.00 V23.9		; NEW TAKOTO
                                M143 H1 S300         	                        		; set temperature limit for heater 1 to 300°
                                
                                
                                ; 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 on
                                M950 F1 C"fan1" Q500                            		; create fan 1 on pin fan1 and set its frequency
                                M106 P1 S0 H-1                                  		; set fan 1 value. Thermostatic control is turned on
                                M950 F2 C"duex.fan7" Q500                            	; create LED on pin fan2 and set its frequency
                                M106 P2 S0 H-1                               			; Disable fan channel for LED
                                M950 F3 C"duex.fan5" Q500                       		; create fan 3 on pin fan1 and set its frequency
                                M106 P3 S255 H0 T45                             		; set fan 3 value. Thermostatic control is turned on
                                M950 F4 C"duex.fan6" Q500                       		; create fan 4 on pin fan1 and set its frequency
                                M106 P4 S255 H1 T45                             		; set fan 4 value. Thermostatic control is turned on
                                
                                
                                ; Tools______________________________________________________________
                                ;T0_________________________________________________________________
                                M563 P0 S"E0 Primary" D0 H0 F0                  		; define tool 0
                                G10 P0 X0 Y0 Z0                                 		; set tool 0 axis offsets
                                G10 P0 R0 S210                                  		; set initial tool 0 active and standby temperatures to 0C
                                
                                ;T1_________________________________________________________________
                                M563 P1 S"E1 Secondary" D1 H1 F1                		; define tool 1
                                G10 P1 X0 Y49 Z0                                		; set tool 1 axis offsets
                                G10 P1 R0 S210                                    		; set initial tool 1 active and standby temperatures to 0C
                                
                                ; Automatic power saving____________________________________________
                                M911 S22.5 R29.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"  ; Set voltage thresholds and actions to run on power loss. Power Failure Pause
                                	
                                
                                ; Custom settings__________________________________________________
                                M950 J0 C"exp.e2stop"  					  				; create Input Pin 0 on pin E2 to for M581 Command.
                                M581 T1 P0 S0 R1										; Regular filament sensor for E0 As External Trigger
                                
                                M950 J1 C"exp.e3stop"  					  				; create Input Pin 1 on pin E3 to for M581 Command.
                                M581 T1 P1 S0 R1										; Regular filament sensor for E1 As External Trigger
                                
                                M950 J2 C"exp.e4stop"  					  				; create Input Pin 2 on pin E4 to for M581 Command.>
                                

                                Here is my config_Probe.g

                                <; probe_config.g
                                ; config the probe and call the other files.g
                                ;
                                
                                M950 S0 C"duex.pwm5"
                                M558 P9 C"zprobe.in" H5 F120 T6000 A5 R0.7
                                
                                ; G31 P500 X-18 Y24 Z{global.g_probe_z_trigger} ; set Z probe trigger value, offset and trigger height (larger value is closer) 
                                ; change to zvalue global.g_probe_z_trigger did not work 
                                G31 P500 X-25 Y37 Z2.915 ; set Z probe trigger value, offset and trigger height (larger value is closer) 
                                >
                                

                                Here is my bed.g

                                <; bed.g
                                ; called to perform automatic bed compensation via G32
                                ;
                                
                                M98 P"config_probe.g"        ; insure probe is using most recent configuration values
                                G29 S2                       ; cancel mesh bed compensation
                                M290 R0 S0                   ; cancel baby stepping
                                
                                G90                          ; absolute moves
                                G1 Z5 F99999                 ; insure Z starting position is high enough to avoid probing errors
                                
                                ; M671: Define positions pf manual bed levelling screws or Z leadscrews
                                ; Xnn:nn:nn... list of between 2 and 4 X coordinates of the leadscrews that drive the Z axis or the bed levelling screws
                                ; Ynn:nn:nn... list of between 2 and 4 Y coordinates of the leadscrews that drive the Z axis or the bed levelling screws
                                ; Snn          maximum correction allowed for each leadscrew in mm (optional, default 1.0)
                                ; Pnnn         pitch of the bed levelling screws (not used when bed levelling using independently-driven leadscrews). Defaults to 0.5mm which is correct for M3 bed levelling screws
                                ; Fnn          fudge factor, default 1.0
                                 
                                
                                M671 X-168:-168:645:645 Y645:-64:-64:645 S10 ; Anticlockwise
                                
                                ; --- level bed ---
                                
                                while true
                                
                                  ; run leveling pass
                                
                                  G30 P0 X10   Y40  Z-99999    ; Probe near a leadscrew
                                  G30 P1 X600 Y40  Z-99999    ; Probe near a leadscrew
                                  G30 P2 X600 Y620 Z-99999    ; Probe near a leadscrew
                                  G30 P3 X10   Y620 Z-99999 S4 ; Probe near a leadscrew
                                
                                  if move.calibration.initial.deviation < 0.015
                                
                                    break
                                
                                  ; check pass limit - abort if pass limit reached
                                
                                  if iterations = 5
                                
                                    M291 P"Bed Leveling Aborted" R"Pass Limit Reached"
                                    abort "Bed Leveling Aborted - Pass Limit Reached"
                                
                                ; --- finish up ---
                                
                                ; --- set Z=0 datum which can be affected by leveling ---
                                
                                G1 X300 Y300 ; move probe to center of bed - set values aaa and bbb as appropriate
                                G30          ; do single probe which sets Z to trigger height of Z probe
                                G31 >
                                

                                thx dieter

                                DO IT OR DON'T

                                fcwiltundefined 1 Reply Last reply Reply Quote 0
                                • fcwiltundefined
                                  fcwilt @ICY_SNAKE
                                  last edited by

                                  @icy_snake

                                  Let's add the M98 P"config_probe.g" to your home all file right before the G30 and see if that makes a difference.

                                  It shouldn't since you are calling config_probe.g in your config.g but let's make the change and test it.

                                  Frederick

                                  Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                  ICY_SNAKEundefined 1 Reply Last reply Reply Quote 0
                                  • ICY_SNAKEundefined
                                    ICY_SNAKE @fcwilt
                                    last edited by

                                    @fcwilt
                                    hello,

                                    works,

                                    1. we had a mismatch config_probe.g against probe_config.g

                                    2. with the variable Z{global.g_probe_z_trigger} it´s not working

                                    as soon as i add a value for z it works.

                                    DO IT OR DON'T

                                    fcwiltundefined 1 Reply Last reply Reply Quote 0
                                    • fcwiltundefined
                                      fcwilt @ICY_SNAKE
                                      last edited by

                                      @icy_snake said in Correction of heightmap is not really working:

                                      @fcwilt
                                      hello,

                                      works,

                                      1. we had a mismatch config_probe.g against probe_config.g

                                      2. with the variable Z{global.g_probe_z_trigger} it´s not working

                                      as soon as i add a value for z it works.

                                      As @Phaedrux pointed out the Z trigger height should be the same regardless of which buildplate is in use.

                                      But using a variable doesn't hurt if you want to be able to easily change the Z trigger height without stopping to edit a file.

                                      I verified that using a variable works but it is required that the variable be created in config.g before any attempt to use it.

                                      I think I recall you initially declared it after the call to config_probe.g (the file name doesn't matter - if you prefer another name just check that you use the same name everywhere.

                                      Frederick

                                      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                      Sculpt Fabricatorundefined 1 Reply Last reply Reply Quote 0
                                      • Sculpt Fabricatorundefined
                                        Sculpt Fabricator @fcwilt
                                        last edited by

                                        @fcwilt This has been great, I am having the exact same problems as @ICY_SNAKE with the same machine. V3.3, I have followed and made all the same changes.

                                        But I am having a Errror: in file macro line 6 column 43: G31 : unknown
                                        variable 'g_probe_z_trigger"

                                        I don't understand what that is ?

                                        fcwiltundefined 1 Reply Last reply Reply Quote 0
                                        • fcwiltundefined
                                          fcwilt @Sculpt Fabricator
                                          last edited by

                                          @sculpt-fabricator said in Correction of heightmap is not really working:

                                          @fcwilt This has been great, I am having the exact same problems as @ICY_SNAKE with the same machine. V3.3, I have followed and made all the same changes.

                                          But I am having a Errror: in file macro line 6 column 43: G31 : unknown
                                          variable 'g_probe_z_trigger"

                                          I don't understand what that is ?

                                          Did you create the variable in your config.g file as I specified in my example?

                                          Frederick

                                          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                                          Sculpt Fabricatorundefined 2 Replies Last reply Reply Quote 0
                                          • Sculpt Fabricatorundefined
                                            Sculpt Fabricator @fcwilt
                                            last edited by

                                            @fcwilt
                                            Here is my Config.g

                                            
                                            
                                            
                                            ; General preferences_________________________________________________________
                                            G21 														; dimentions in mm
                                            G90                                             			; for X,Y,Z     use absolute coordinate values
                                            M83                                             			; for E0,E1,etc use relative coordinate values
                                            M111 S0 													; Debug off
                                            M555 P2 													; Set output to look like Marlin
                                            M575 P0 B57600 S2              								; communication parameters for USB serial
                                            M575 P1 B57600 S1											; Set auxiliary serial port baud rate and require checksum (for PanelDue)
                                            
                                            ; Network_____________________________________________________________________
                                            M550 P"Big 60"                         						; set printer name
                                            M552 S1                                        				; enable (S1) networking (WiFi)
                                            M586 S1 P1 ;T0                 								; enable (S1) FTP    (P1) Disable TLS (T0)
                                            M586 S1 P2 ;T0                								; enable (S1) Telnet (P2) Disable TLS (T0)
                                            ;;M586 P0 S1                                      			; enable HTTP
                                            ;;M586 P1 S0                                      			; disable FTP
                                            ;;M586 P2 S0                                      			; disable Telnet
                                             
                                            
                                            ; mode control variables _____________________________________________________
                                            
                                            global g_z_home            = 5                  ; can be used to always move Z to known height
                                            global g_z_datum_set       = false              ; can be used to prevent unneeded setting of Z=0 datum
                                             
                                            global g_map_mode          = "300 point"        ; determines which kind of height map is created/loaded
                                            global g_probe_mode        = "two consecutive"  ; determines if z proving used consecutive or averaging
                                            global g_level_mode        = "4 point"          ; determines if 3 or 4 points are used for leveling
                                             
                                            global g_print_beg_prime   = 10                 ; default - set desired in filament config.g
                                            global g_print_beg_retract = 0                  ; default - set desired in filament config.g
                                             
                                            global g_print_end_retract = 0                  ; default - set desired in filament config.g
                                            global g_print_end_mode    = "heat off"         ; determines if heaters are turned off when print is done
                                             
                                            
                                            ; Drives_________________________________________________________________________
                                            ;Main board______________________________________________________________________
                                            M569 P0 S0                                                          ; Physical drive 0 . X1
                                            M569 P1 S1                                                          ; Physical drive 1 . X2
                                            M569 P3 S1                                                       	; Physical drive 3 . Main Extruder
                                            M569 P4 S0                                                       	; Physical drive 4 . Secondary Extruder									
                                            ;Duex5 board_____________________________________________________________________
                                            M569 P5 S0                                                       	; Physical drive 5 . Y
                                            M569 P6 S0                                                       	; Physical drive 6 . Z1 (0,0) 
                                            M569 P7 S0                                                       	; Physical drive 7 . Z2 (600,0) 
                                            M569 P8 S0                                                       	; Physical drive 8 . Z3 (600,600) 
                                            M569 P9 S0                                                       	; Physical drive 9 . Z4 (0,600) 
                                            
                                            ;Settings_________________________________________________________
                                            M584 X0:1 Y5 Z6:7:8:9  E3:4 P3								   	    ; Driver mapping                                                  U1
                                            M671 X-189:-189:645:645 Y645:-64:-64:645 S10                        ; Anticlockwise
                                            ;;M671 X-190:-190:641:641 Y-63:643:643:-63 S10    	                ; Anticlockwise 
                                            ;___________________________________________________________________
                                            M350 X16 Y16 I1  		                            				; Configure microstepping with interpolation                      U16
                                            M350 Z16 E16:16 I0              		                			; Configure microstepping without interpolation
                                            
                                            M92 X100.00 Y100.00 Z2000.00 E686:700       				        ; Set steps per mm                                                U100.00
                                            
                                            M566 X300 Y500 Z100.00 E120.00:120.00  P1               		    ; Set maximum instantaneous speed changes (mm/min)                U240
                                            M203 X18000.00 Y18000.00 Z300.00 E1200.00:1200.00           		; Set maximum speeds (mm/min)                                     U9000.00
                                            M201 X1000 Y1000 Z120.00 E250.00:250.00                  			; Set accelerations (mm/s^2)                                      U1000
                                            ;M566 X240 Y360 Z30.00 E120.00:120.00 U240 P1               	    ; Set maximum instantaneous speed changes (mm/min)
                                            ;M203 X9000.00 Y9000.00 Z200.00 E1200.00:1200.00 U9000.00    		; Set maximum speeds (mm/min)
                                            ;M201 X1000 Y1000 Z120.00 E250.00:250.00 U1000             			; Set accelerations (mm/s^2)
                                            M204 P500                                     			            ; Set print and travel accelerations  (mm/s^2)
                                            M906 X1800 Y1800.00 E1270:1270  I40 					        	; Set motor currents (mA) and motor idle factor in per cent (E1270 per dyze)   U1800
                                            M906 Z1800.00 I50 													; Set motor currents (mA) and motor idle factor in per cent
                                            M84 S100                                          					; Set idle timeout - 100 seconds
                                            
                                            ; Axis Limits
                                            
                                            M208 X0 Y0 Z-1 S1                               			 	    ; set axis minima
                                            M208 X590 Y580 Z630 S0                          					; set axis maxima
                                            
                                            ; Endstops
                                            
                                            ;;M574 X1 S1 P"xstop"                            			; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                                            ;;M574 U1 S1 P"e0stop"                            			; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                                            M574 X1 S1 P"xstop + e0stop"                            	; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
                                            M574 Y2 S1 P"ystop"                            				; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
                                            
                                            
                                            ; add probe file
                                            ; global.g_probe_z_trigger
                                            ; global.g_probe_z_trigger = 1.9                         ; default - set as appropriate for the Z probe 
                                            M558 P9 C"^zprobe.in" H5 F120 T6000 A1 R1  					; set Z probe type to bltouch and the dive height + speeds
                                            M950 S0 C"duex.pwm5"										; set probe pin
                                            M98 P"config_probe.g"
                                            M556 S50 X0 Y0 Z0		                               		; set orthogonal axis compensation parameters woher kommt der test wie wurde der Winkel bestimmt Unklar!
                                            M376 H10													; stop z-leveling after 10 layers
                                             ; Z-Probe
                                            ;M558 P9 C"^zprobe.in" H5 F120 T6000 A1 R1  					; set Z probe type to bltouch and the dive height + speeds
                                            ;M950 S0 C"duex.pwm5"										; set probe pin
                                            ;M98 P"config_probe.g"										; configure probe after a reboot or reset
                                            ;global g_probe_z_trigger   = 1.8                            ; default - set as appropriate for the Z probe
                                            
                                            ;;G31 P500 X-30 Y0 Z2.64                 			  		; set Z probe trigger value, offset and trigger height    **** Z height change + 0.29 ****
                                            ;;M556 S50 X0 Y0 Z0                               			; set orthogonal axis compensation parameters
                                            ;;M557 X0:560 Y0:580 S90:108.75              			   	; define mesh grid and probe points, fine S30:36.25
                                            ;;M376 H10			                						; Height (mm) over which to taper off the bed compensation
                                            
                                            
                                            ; Heaters___________________________________________________________
                                            M140 H-1                                       				; disable heated bed (overrides default heater mapping)
                                            ;M308 S0  P"bedtemp" Y"thermistor" A"Bed Heat"  T100000 B3950 ; define bed temperature sensor
                                            ;M950 H0  C"bedheat" T0 Q10                                      ;heater 0 uses the bed_heat pin, sensor 0, PWM 10hz
                                            
                                            ;E0_________________________________________________________________
                                            M308 S0 P"spi.cs1" Y"rtd-max31865" A"Main Extruder"         ; create sensor number 1 as a PT100 sensor in first position daughterboard 
                                            M950 H0 C"e0heat"   T0                       		        	; create nozzle heater output on e0heat and map it to sensor 0
                                            M307 H0 B0 R2.004 C403.6:385.3 D14.93 S1.00 V23.8          ; PID calibration
                                            M143 H0 S450                                    			; set temperature limit for heater 0 to 450C
                                            
                                            ;E1_________________________________________________________________
                                            M308 S1 P"spi.cs2" Y"rtd-max31865" A"Support Extruder"    	; create sensor number 2 as a PT100 sensor in sec position daughterboard 
                                            ;M950 H1 C"e1heat" T1                            			; create nozzle heater output on e1heat and map it to sensor 1				TEMP OFF
                                            ;M307 H1 B0 S1.00                               			; PID calibration															TEMP OFF
                                            ;M143 H1 S450                                   			; set temperature limit for heater 1 to 450C								TEMP OFF
                                            
                                            ;E4_________________________________________________________________
                                            M308 S1 P"duex.e4temp" Y"thermistor" T100000 B4267   			; configure sensor 1 as thermistor on pin e1temp
                                            M950 H5 C"duex.e4heat" T1                            			; create nozzle heater output on e4heat and map it to sensor 4
                                            ;M307 H5 B0 S1.00                               			     ; PID calibration															
                                            M143 H5 S120                                  			    ; set temperature limit for heater 1 to 120C
                                            
                                            ; Fans & LED___________________________________________________________
                                            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 on
                                            
                                            M950 F1 C"fan1" Q500                            			; create fan 1 on pin fan1 and set its frequency
                                            M106 P1 S0 H-1                                  			; set fan 1 value. Thermostatic control is turned on
                                            
                                            M950 F2 C"fan2" Q500                            			; create air filter fan on fan 2 on pin fan2 and set its frequency
                                            M106 P2 S0 H-1                                  			; set fan 2 value. Thermostatic control is turned on
                                            
                                            M950 F7 C"!duex.fan7" Q500                            		; create LED on pin fan7 and set its frequency
                                            M106 P7 S0 H-1                               				; Disable fan channel for LED
                                            M106 P7 S255							                    ; remove ";" to set the LED to full brightness by default
                                            
                                            M950 F3 C"duex.fan3" Q500                       			; create fan 3 on pin fan3 and set its frequency
                                            M106 P3 S1 H-1                           			; set fan 3 value. Thermostatic control is turned on Bed relay to on
                                            
                                            
                                            
                                            ; Tools______________________________________________________________
                                            ;T0_________________________________________________________________
                                            M563 P0 S"E0 Main" D0 H0 F0                  			; define tool 0
                                            G10 P0 X0 Y0 Z0                                 			; set tool 0 axis offsets
                                            G10 P0 R0 S265                                  			; set initial tool 0 active and standby temperatures to 0C
                                            
                                            ;T1_________________________________________________________________
                                            M563 P1 S"E1 Support" D1 H1 F1                			; define tool 1
                                            G10 P1 X0 Y65 Z0                                			; set tool 1 axis offsets  Y-2 moves filament 2mm to back of machine     X-1 moves filament 1mm to the right
                                            G10 P1 R0 S265                                    			; set initial tool 1 active and standby temperatures to 0C
                                            
                                            ;T2____________________________________________________________________
                                            ;M563 P2 S"BED TEMP" H-1																												;Temp off 
                                            ;G10 P2 																																;Temp off 
                                            
                                            ;T3___________________________________________________________________
                                            M563 P3 S"CHAMBER TEMP" H5
                                            G10 P3 R0 S40
                                            
                                            ; Custom settings__________________________________________________
                                            
                                            M591 D0 P1 C"duex.e2stop" S1							; Regular filament sensor for E0
                                            M591 D1 P1 C"duex.e3stop" S1							; Regular filament sensor for E1
                                            
                                            ;M950 P2 C"fan2" Q500
                                            M42 P2 S255 											; Start up air filter 
                                            
                                            ; Automatic power saving____________________________________________
                                            M911 S22.5 R29.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"              ; Set voltage thresholds and actions to run on power loss. Power Failure Pause
                                            
                                            
                                            fcwiltundefined 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA