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

    manual adjustment of the bed level by three screws

    Scheduled Pinned Locked Moved Unsolved
    Gcode meta commands
    4
    21
    902
    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.
    • fcwiltundefined
      fcwilt @Vladimir_U
      last edited by

      @vladimir_u said in manual adjustment of the bed level by three screws:

      @cosmowave Hello. This is a great macro. I really like it and maybe I'll take some functions from it. But it has a drawback. the same as my original macro. there is no return of the tool head to the home position after adjusting the level. That was my question. I don't know how to do it yet.

      Don't use that macro - use the Manual Bed Leveling Assistant (MBLA) that is built-in to the firmware.

      The needed code is entered into the file bed.g and aside from the commands needed by the MBLA you can add whatever other commands you desire, such as returning to home that you mentioned as wanting.

      Frederick

      Printers: a E3D MS/TC setup and a RatRig Hybrid. Using Duet 3 hardware running 3.4.6

      Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
      • Vladimir_Uundefined
        Vladimir_U @fcwilt
        last edited by Vladimir_U

        @fcwilt I don't fully understand how to enter the commands correctly. especially the G30.
        In config.g I entered the command
        M558 P0
        M671 X10:190:100 Y 10:10:190
        In bed.g entered
        G28
        G30 P0 X10 Y10 Z0
        G30 P1 X190 Y10 Z0
        G30 P2 X100 Y190 Z0 S3
        G28
        but it doesn't work. when you enter z-99999, the tool head moves to the desired points. But it offers to move the bed with the Z-axis lead screw. I have to change the G30 somehow, probably.
        Sorry, I'm not a programmer, unfortunately.

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

          @vladimir_u said in manual adjustment of the bed level by three screws:

          But it offers to move the bed with the Z-axis lead screw.

          That's what M558 P0 does, it asks you to adjust the Z position manually if you don't have a z probe.

          Z-Bot CoreXY Build | Thingiverse Profile

          Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
          • Vladimir_Uundefined
            Vladimir_U @Phaedrux
            last edited by

            @phaedrux I don't have bltouch. But I have an end stop at z=0

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

              I know you don't have a probe, that's why I suggested using M558 P0 which is manual probing. You can't use the Z endstop to get the lead screw or leveling screw adjustment info because it is fixed. The manual probing lets you tell the firmware where the bed surface is to set Z0 at the various points.

              Z-Bot CoreXY Build | Thingiverse Profile

              Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
              • Vladimir_Uundefined
                Vladimir_U @Phaedrux
                last edited by

                @phaedrux It turns out there is no way to simply adjust the plane of the bed by three points without manually rotating the lead screw? But this complicates calibration. Or I'm completely confused.

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

                  @vladimir_u said in manual adjustment of the bed level by three screws:

                  by three points without manually rotating the lead screw?

                  If your bed has it's own leveling screws you can adjust them manually as well.

                  The firmware can only adjust the lead screws automatically if each one has its own driver and motor.

                  Did you review this page? https://duet3d.dozuki.com/Wiki/Using_the_manual_bed_levelling_assistant

                  Z-Bot CoreXY Build | Thingiverse Profile

                  Vladimir_Uundefined 1 Reply Last reply Reply Quote 0
                  • Vladimir_Uundefined
                    Vladimir_U @Phaedrux
                    last edited by

                    @phaedrux Yes, the bed has three adjusting screws on springs. I looked at the information on your link. I was guided by it. I may have translated something incorrectly. 😞

                    1 Reply Last reply Reply Quote 0
                    • Vladimir_Uundefined
                      Vladimir_U
                      last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • Vladimir_Uundefined
                        Vladimir_U
                        last edited by

                        I think I found the best option for myself. how wrong is it?

                        ; bed.g
                        M98 P"/macros/Bedlevel.g"
                        G28
                        M18
                        
                        ; Bedlevel.g
                        
                        M291 P"ALL AXES HOME" S0 
                        G28
                        while true
                         M291 P"GO TO POINT 1" S0
                         ; Move to Rear Left leveling point P1
                         G1 Z5 ; move to z5 for travel
                         G1 X10 Y10 ; Move to rear left corner
                         G1 Z0 ; move to z0 to level the bed
                        
                         M400
                         M291 P"GO TO POINT 2?" S3
                         M291 P"GO TO POINT 2" S0
                        
                         ; Move to Rear Right leveling point P2
                         G1 Z5 ; move to z5 for travel
                         G1 X190 Y10 ; Move to rear right corner
                         G1 Z0 ; move to z0 to level the bed
                        
                         M400
                         M291 P"GO TO POINT 3?" S3
                         M291 P"GO TO POINT 3" S0
                         ; Move to Front Right leveling point P3
                         G1 Z5 ; move to z5 for travel
                         G1 X100 Y190 ; Move to front right corner
                         G1 Z0 ; move to z0 to level the bed
                        
                         M400
                         M291 P"GO TO POINT 1?" S3
                        
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          That is a valid way to do it as well.

                          I do something similar.

                          ; Helps guide leveling the bed mechanically, and calibrate the ZProbe trigger height before running a grid bed compensation routine..
                          ;
                          
                          ; Preamble to tell the user to prepare the printer before continuing
                          ;
                          ;M291 P"Before proceeding make sure the printer is mechanically sound and properly functioning." R"Prepare printer for leveling routine" S3 ; User must click OK
                          ;M291 P"ZProbe should be configured and working. Clear the print bed of any obstacles or debris." R"Prepare printer for leveling routine" S3 ; User must click OK
                          ;M291 P"This routine will take about 10-20 minutes and heat both the bed and nozzle." R"Prepare printer for leveling routine" S3 ; User must click OK
                          ;M291 P"You will need a screwdriver and piece of paper. Filament will be unloaded." R"Prepare printer for leveling routine" S3 ; User must click OK
                          ;M291 P"Make sure you have successful Gcodes logged to the console before proceeding." R"WARNING" S3 ; User must click OK or cancel
                          ;M291 P"Make a note of your M558 Z value and backup current heightmap before proceeding." R"WARNING" S3 ; User must click OK or cancel
                          
                          ; Clear compensation map and Zprobe trigger height
                          ;
                          M291 P"Grid bed compensation map will be disabled. Ok or Cancel?" R"WARNING" S3 ; User must click OK or cancel.
                          M291 P"Bed and nozzle will preheat and home all axis." R"Preheat and Home" S3 T0 ; User must click OK or cancel
                          
                          ; Heat up bed and nozzle to PLA temps in prep for filament removal and probing
                          ;
                          T0			; Activate first tool
                          M104 S85		; Set nozzle to 85 and release
                          M140 S65		; Set bed to 65 and release
                          
                          G28				; home all
                          M561			; Disable any current bed compensation
                          
                          ; Move nozzle forward for filament removal
                          ;
                          M291 P"Moving nozzle to the front for filament removal and cleaning." T0
                          M98 P"0:/macros/1_Nozzle Access.g"		; Moves print head to front left and drops the bed down for easy access
                          
                          M109 S85		; Set nozzle to 85 and wait
                          
                          M98 P"0:/macros/Musical Tunes/GetAttention.g" ; Tone to get user attention
                          
                          ; Unload filament and clean nozzle
                          ;
                          M291 P"Unload filament if loaded and clean nozzle, then press OK to continue" R"Unload Filament" S3 T0 ; User must click OK or cancel
                          
                          ; Preheat to probing temps
                          ;
                          M291 P"Preheating the bed to 60 and nozzle to 210 for accurate probing" T0
                          M104 S210		; Set nozzle to 210 and release
                          M190 S60		; Set bed to 60 and wait
                          M109 S210		; Set nozzle to 210 and wait
                          
                          M98 P"0:/macros/Musical Tunes/GetAttention.g" ; Tone to get user attention
                          
                          ; Move nozzle to center of bed at Z10 and drop to Z1
                          ;
                          M291 P"Nozzle will now move to center of bed and move close to the bed" T0
                          M98 P"0:/macros/0_Center Nozzle.g"
                          G90 G1 Z3 F400	; drop bed for nozzle clearance
                          G92 Z4 		; Reset z to 8 to allow jogging up to touch bed to nozzle
                          
                          ; Set lower speeds for Z homing and lower Z motor current
                          ;
                          M98 P"ZSpeedsSlow.g"
                          M400
                          M913 Z50			; Drop motor current to prevent damage in case of head crash
                          
                          ; Dialog to allow user to job z to touch nozzle to bed gently and then move Z down 10
                          ;
                          M291 P"Carefully Jog the Z Axis until the bed and nozzle are touching and click OK" R"Setting Z=0" Z1 S3
                          G92 Z0      		; set z = 0
                          
                          ; Move nozzle to leveling points and prompt user to level bed at each
                          ;
                          M291 P"Nozzle will now move to the 3 leveling points twice." S1 T2
                          
                          ; Move to leveling point 1
                          G1 Z2      		; move to z2 for travel
                          M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #1" ; Move to rear left corner
                          
                          M400
                          M291 P"Adjust point 1. Jog down by 2 and adjust screw." R"Adjustment Point 1" S2 Z1
                          
                          ; Move to leveling point 2
                          G1 Z2			; Move to Z2 for clearance
                          M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #2"	; Move to rear right corner
                          
                          M400
                          M291 P"Adjust point 2. Jog down by 2 and adjust screw." R"Adjustment Point 2" S2 Z1
                          
                          ; Move to leveling point 3
                          G1 Z2			; Move to Z2 for clearance
                          M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #3"	; Move to front middle
                          
                          M400
                          M291 P"Adjust point 3. Jog down by 2 and adjust screw." R"Adjustment Point 3" S2 Z1
                          
                          ; Repeat to verify
                          ;
                          M291 P"The adjustment sequence will now repeat for fine adjustment." S1 T2
                          
                          ; Move to leveling point 1
                          G1 Z2      		; move to z2 for travel
                          M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #1" ; Move to rear left corner
                          
                          M400
                          M291 P"Adjust point 1. Jog down by 2 and adjust screw." R"Adjustment Point 1" S2 Z1
                          
                          ; Move to leveling point 2
                          G1 Z2			; Move to Z2 for clearance
                          M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #2"	; Move to rear right corner
                          
                          M400
                          M291 P"Adjust point 2. Jog down by 2 and adjust screw." R"Adjustment Point 2" S2 Z1
                          
                          ; Move to leveling point 3
                          G1 Z2			; Move to Z2 for clearance
                          M98 P"0:/macros/Calibration/Bed Leveling/1_Leveling Position #3"	; Move to front middle
                          
                          M400
                          M291 P"Adjust point 3. Jog down by 2 and adjust screw." R"Adjustment Point 3" S2 Z1
                          G1 Z2			; Move to Z2 for clearance
                          
                          M98 P"0:/macros/Musical Tunes/GetAttention.g" ; Tone to get user attention
                          
                          ; Turn off heaters
                          ; 
                          M104 S0		; Set nozzle to 0 and release
                          M140 S0		; Set bed to 0 and release
                          M98 P"ZSpeedsNormal.g"
                          M98 P"CurrentsNormal.g"
                          
                          M291 P"Homing"
                          G28		; Home XYZ
                          M84 ; Turn off the motors
                          
                          M291 P"The bed has been mechanically leveled and Z0 set." S2
                          
                          ; Tell user to take values from gcode console log and average the Z height and use that as the new Z probe trigger height
                          ;
                          ;M291 P"Average the 10 Z height values in the console and round to 2 decimal places" S2
                          ;M291 P"The resulting value is the ZProbe trigger height value (M558 Zn)" S2
                          ;M291 P"Either set the value in config.g and reboot, or send M558 Zn in the console before running G29." S2
                          ;M291 P"The bed is now mechanically leveled and probe height calibrated." R"Congratulations!" S2
                          ;M291 P"You may now run a Grid Bed Compensation Detailed Probe. (G92)." S2
                          ;
                          ; Run bed grid compensation routine
                          

                          Z-Bot CoreXY Build | Thingiverse Profile

                          Vladimir_Uundefined 1 Reply Last reply Reply Quote 1
                          • Vladimir_Uundefined
                            Vladimir_U @Phaedrux
                            last edited by

                            @phaedrux Thanks.
                            I removed from the config.g lines
                            M558 P0
                            M671 X10:190:100 Y 10:10:190
                            It is ok? Do I need to add something else to the config.g when using my option?

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

                              That's fine. You do not need those commands if doing manual adjustments like that.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              Vladimir_Uundefined 1 Reply Last reply Reply Quote 1
                              • Vladimir_Uundefined
                                Vladimir_U @Phaedrux
                                last edited by

                                @phaedrux Thank you very much.

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