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

    having issues with z mapping

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    4
    22
    498
    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.
    • kevinlallshouseundefined
      kevinlallshouse
      last edited by

      homex.g homeall.g config.json homez.g homey.g

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

        @kevinlallshouse said in having issues with z mapping:

        I'm having issues with my printer wanting to run at the top of my z axis and not an z home

        Can you describe the problem in a bit more detail? I'm not sure what you mean by this.

        Also please upload your config.g file. The config.json file is meant for the online config tool and is not human readable. It also doesn't reflect what your config.g is right now if you've manually changed it.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • kevinlallshouseundefined
          kevinlallshouse
          last edited by

          config.g here ya go and thanks for the help. I'm running a Cartesian with all axes are homing correctly but when i try to print it moves to the very top of my machine and stalls out like its trying to fun at 400mm instead of at 0 if that makes sense to you my machine is 300x300x400

          fcwiltundefined 3 Replies Last reply Reply Quote 0
          • fcwiltundefined
            fcwilt @kevinlallshouse
            last edited by fcwilt

            @kevinlallshouse

            Hi,

            In the future if you could copy-and-paste your files using the </> tag it makes it easier for all to read without having to download.

            When you click the </> in the toolbar you will get an opening line of three accent characters, a line saying undefined and then a closing line of three accent characters.

            You replace undefined with your pasted code.

            I have done so below with your config.g file so you can see how it works.

            ; Configuration file for Duet WiFi (firmware version 3)
            ; executed by the firmware on start-up
            ;
            ; generated by RepRapFirmware Configuration Tool v3.3.0 on Sun Aug 15 2021 06:48:11 GMT-0700 (Pacific Daylight Time)
            
            ; General preferences
            G90                                            ; send absolute coordinates...
            M83                                            ; ...but relative extruder moves
            M550 P"My Printer"                             ; set printer name
            
            ; Network
            M552 S1                                        ; enable network
            M586 P0 S1                                     ; enable HTTP
            M586 P1 S0                                     ; disable FTP
            M586 P2 S0                                     ; disable Telnet
            
            ; Drives
            M569 P0 S1                                     ; physical drive 0 goes forwards
            M569 P1 S1                                     ; physical drive 1 goes forwards
            M569 P2 S1                                     ; physical drive 2 goes forwards
            M569 P3 S0                                     ; physical drive 3 goes backwards
            M584 X0 Y1 Z2 E3                               ; set drive mapping
            M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
            M92 X80.00 Y80.00 Z960.00 E67.91               ; set steps per mm
            M566 X4500.00 Y4500.00 Z60.00 E600.00          ; set maximum instantaneous speed changes (mm/min)
            M203 X15000.00 Y15000.00 Z600.00 E3000.00      ; set maximum speeds (mm/min)
            M201 X600.00 Y600.00 Z20.00 E2500.00           ; set accelerations (mm/s^2)
            M906 X1300 Y1300 Z1300 E1000 I30               ; set motor currents (mA) and motor idle factor in per cent
            M84 S10                                        ; Set idle timeout
            
            ; Axis Limits
            M208 X0 Y0 Z0 S1                             ; set axis minima
            M208 X300 Y300 Z400 S0                         ; set axis maxima
            
            ; Endstops
            M574 X1 S1 P"!xstop"                           ; configure active-high endstop for low end on X via pin !xstop
            M574 Y1 S1 P"!ystop"                           ; configure active-high endstop for low end on Y via pin !ystop
            M574 Z2 S1 P"!zstop"                           ; configure active-high endstop for high end on Z via pin !zstop
            
            ; Z-Probe
            M558 P0 H10 F120 T6000                         ; disable Z probe but set dive height, probe speed and travel speed
            M557 X15:215 Y15:195 S20                       ; define mesh grid
            
            ; Heaters
            M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 ; configure sensor 0 as thermistor on pin bedtemp
            M950 H0 C"bedheat" T0                          ; create bed heater output on bedheat and map it to sensor 0
            M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
            M140 H0                                        ; map heated bed to heater 0
            M143 H0 S150                                   ; set temperature limit for heater 0 to 150C
            M308 S1 P"e0temp" Y"thermistor" T100000 B3950  ; configure sensor 1 as thermistor on pin e0temp
            M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
            M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
            M143 H1 S300                                   ; set temperature limit for heater 1 to 300C
            
            ; 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
            
            ; Tools
            M563 P0 D0 H1 F0                               ; define tool 0
            G10 P0 X0 Y0 Z0                                ; set tool 0 axis offsets
            G10 P0 R0 S0                                   ; set initial tool 0 active and standby temperatures to 0C
            
            ; Custom settings are not defined
            
            ; Miscellaneous
            M501                                           ; load saved parameters from non-volatile memory
            
            

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

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

              @kevinlallshouse

              Here are the rest of your files:

              ; homeall.g
              ; called to home all axes
              ;
              ; generated by RepRapFirmware Configuration Tool v3.3.0 on Sun Aug 15 2021 06:48:11 GMT-0700 (Pacific Daylight Time)
              G91                     ; relative positioning
              G1 H2 Z10 F6000         ; lift Z relative to current position
              G1 H1 X-305 Y-305 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
              G1 H2 X5 Y5 F6000       ; go back a few mm
              G1 H1 X-305 Y-305 F360  ; move slowly to X and Y axis endstops once more (second pass)
              G1 H1 Z405 F360         ; move Z up stopping at the endstop
              G90                     ; absolute positioning
              G92 Z800                ; set Z position to axis maximum (you may want to adjust this)
              
              ; Uncomment the following lines to lift Z after probing
              ;G91                    ; relative positioning
              ;G1 Z10 F100            ; lift Z relative to current position
              ;G90                    ; absolute positioning
              
              ; homex.g
              ; called to home the X axis
              ;
              ; generated by RepRapFirmware Configuration Tool v3.3.0 on Sun Aug 15 2021 06:48:11 GMT-0700 (Pacific Daylight Time)
              G91               ; relative positioning
              G1 H2 Z10 F6000   ; lift Z relative to current position
              G1 H1 X-305 F1800 ; move quickly to X axis endstop and stop there (first pass)
              G1 H2 X5 F6000    ; go back a few mm
              G1 H1 X-305 F360  ; move slowly to X axis endstop once more (second pass)
              G1 H2 Z-10 F6000  ; lower Z again
              G90               ; absolute positioning
              
              ; homey.g
              ; called to home the Y axis
              ;
              ; generated by RepRapFirmware Configuration Tool v3.3.0 on Sun Aug 15 2021 06:48:11 GMT-0700 (Pacific Daylight Time)
              G91               ; relative positioning
              G1 H2 Z10 F6000   ; lift Z relative to current position
              G1 H1 Y-305 F1800 ; move quickly to Y axis endstop and stop there (first pass)
              G1 H2 Y5 F6000    ; go back a few mm
              G1 H1 Y-305 F360  ; move slowly to Y axis endstop once more (second pass)
              G1 H2 Z-10 F6000  ; lower Z again
              G90               ; absolute positioning
              
              ; homez.g
              ; called to home the Z axis
              ;
              ; generated by RepRapFirmware Configuration Tool v3.3.0 on Sun Aug 15 2021 06:48:11 GMT-0700 (Pacific Daylight Time)
              G91               ; relative positioning
              G1 H2 Z10 F6000   ; lift Z relative to current position
              G1 H1 Z1205 F1800 ; move Z up until the endstop is triggered
              G92 Z800          ; set Z position to axis maximum (you may want to adjust this)
              
              ; Uncomment the following lines to lift Z after probing
              ;G91              ; relative positioning
              ;G1 Z10 F100      ; lift Z relative to current position
              ;G90              ; absolute positioning
              

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

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

                @kevinlallshouse

                In your M208 commands your Z min is set to 400 and your Z max is set to 800.

                I think you want that to be Z min of 0 and Z max of 400.

                Frederick

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

                1 Reply Last reply Reply Quote 0
                • kevinlallshouseundefined
                  kevinlallshouse
                  last edited by

                  sorry sent the wrong cofig file that was me trying to figure out the issue but its the same but 0min and 400 max but it still is doing the same. do you want to see the other config file? thanks for the help I'm new to RepRap

                  1 Reply Last reply Reply Quote 0
                  • kevinlallshouseundefined
                    kevinlallshouse
                    last edited by

                    would it be my g92?
                    how do i change it

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

                      @kevinlallshouse said in having issues with z mapping:

                      would it be my g92?
                      how do i change it

                      Well that G92 is saying Z is at 800 when it is likely nearer 400.

                      The point of the G92 is to adjust for where the endstop actually triggers.

                      A G1 H1 Z499 command would move until the endstop triggers. At the point the Z logical position would be set to Z max as set in your M208.

                      But suppose your Z endstop actually triggers at 395. In that case you would use G92 Z395 so the logical position (where the firmware thinks Z is) would match the physical position (where the endstop actually triggered).

                      However you may want to move your Z endstop (if possible) to trigger at the Z min end of the axis, which will save time when homing Z.

                      Frederick

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

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

                        +Z should move the nozzle and bed farther apart.
                        -Z should move them closer together.

                        Is this how it is on your printer?

                        You currently have it configured for a Z max endstop, meaning the endstop is at the farthest point away from the bed. Is that actually the case?

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 1
                        • kevinlallshouseundefined
                          kevinlallshouse
                          last edited by kevinlallshouse

                          ok my Endstop is at min. z axis not my max z axis and yes its 400mm not 800mm can I change this in RepRap configurator?

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

                            You could reload your config.json file into the online tool and make your changes and then save the new set of files, that may be easiest since it would require changes to the endstop definition, and your homing files to get everything going in the correct direction. It may or may not also require a change to the motor direction.

                            All of this can be done manually by editing your existing files as well. The config tool gives a good starting point, but eventually most people will begin editing the files directly.

                            The endstop change for instance, This:
                            M574 Z2 S1 P"!zstop"
                            would become this:
                            M574 Z1 S1 P"!zstop"
                            Z1 means low end of travel. Z2 means high end of travel.

                            For the homing file changes, this:

                            G1 H1 Z405 F360         ; move Z up stopping at the endstop
                            G90                     ; absolute positioning
                            G92 Z800                ; set Z position to axis maximum (you may want to adjust this)
                            

                            would become this:

                            G1 H1 Z-405 F360         ; move Z up stopping at the endstop
                            

                            Z405 is positive upward movement, Z-405 is negative downward movement.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • kevinlallshouseundefined
                              kevinlallshouse
                              last edited by

                              ok ill give it a shot and thanks for all your help and taking the time to explain everything.

                              1 Reply Last reply Reply Quote 0
                              • kevinlallshouseundefined
                                kevinlallshouse
                                last edited by

                                here is my homez i dont see anything wrong my z is a -400 like you had said do you see anything with it ?ill post others next

                                ; homez.g
                                ; called to home the Z axis
                                ;
                                ; generated by RepRapFirmware Configuration Tool v3.3.0 on Mon Aug 16 2021 19:10:52 GMT-0700 (Pacific Daylight Time)
                                G91               ; relative positioning
                                G1 H2 Z10 F6000   ; lift Z relative to current position
                                G1 H1 Z-405 F1800 ; move Z down until the endstop is triggered
                                G92 Z0            ; set Z position to axis minimum (you may want to adjust this)
                                
                                ; Uncomment the following lines to lift Z after probing
                                ;G91              ; relative positioning
                                ;G1 Z10 F100      ; lift Z relative to current position
                                ;G90              ; absolute positioning
                                undefined
                                
                                1 Reply Last reply Reply Quote 0
                                • kevinlallshouseundefined
                                  kevinlallshouse
                                  last edited by

                                  un; homeall.g
                                  ; called to home all axes
                                  ;
                                  ; generated by RepRapFirmware Configuration Tool v3.3.0 on Mon Aug 16 2021 19:10:52 GMT-0700 (Pacific Daylight Time)
                                  G91                     ; relative positioning
                                  G1 H2 Z10 F6000         ; lift Z relative to current position
                                  G1 H1 X-305 Y-305 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
                                  G1 H2 X5 Y5 F6000       ; go back a few mm
                                  G1 H1 X-305 Y-305 F360  ; move slowly to X and Y axis endstops once more (second pass)
                                  G1 H1 Z-405 F360        ; move Z down stopping at the endstop
                                  G90                     ; absolute positioning
                                  G92 Z0                  ; set Z position to axis minimum (you may want to adjust this)
                                  
                                  ; Uncomment the following lines to lift Z after probing
                                  ;G91                    ; relative positioning
                                  ;G1 Z10 F100            ; lift Z relative to current position
                                  ;G90                    ; absolute positioning
                                  
                                  
                                  defined
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • kevinlallshouseundefined
                                    kevinlallshouse
                                    last edited by

                                    unde; Configuration file for Duet WiFi (firmware version 3)
                                    ; executed by the firmware on start-up
                                    ;
                                    ; generated by RepRapFirmware Configuration Tool v3.3.0 on Mon Aug 16 2021 19:10:51 GMT-0700 (Pacific Daylight Time)
                                    
                                    ; General preferences
                                    G90                                            ; send absolute coordinates...
                                    M83                                            ; ...but relative extruder moves
                                    M550 P"My Printer"                             ; set printer name
                                    
                                    ; Network
                                    M552 S1                                        ; enable network
                                    M586 P0 S1                                     ; enable HTTP
                                    M586 P1 S0                                     ; disable FTP
                                    M586 P2 S0                                     ; disable Telnet
                                    
                                    ; Drives
                                    M569 P0 S1                                     ; physical drive 0 goes forwards
                                    M569 P1 S1                                     ; physical drive 1 goes forwards
                                    M569 P2 S1                                     ; physical drive 2 goes forwards
                                    M569 P3 S0                                     ; physical drive 3 goes backwards
                                    M584 X0 Y1 Z2 E3                               ; set drive mapping
                                    M350 X16 Y16 Z16 E16 I1                        ; configure microstepping with interpolation
                                    M92 X80.00 Y80.00 Z960.00 E67.91               ; set steps per mm
                                    M566 X4500.00 Y4500.00 Z60.00 E600.00          ; set maximum instantaneous speed changes (mm/min)
                                    M203 X15000.00 Y15000.00 Z600.00 E3000.00      ; set maximum speeds (mm/min)
                                    M201 X600.00 Y600.00 Z20.00 E2500.00           ; set accelerations (mm/s^2)
                                    M906 X1300 Y1300 Z1300 E1000 I30               ; set motor currents (mA) and motor idle factor in per cent
                                    M84 S10                                        ; Set idle timeout
                                    
                                    ; Axis Limits
                                    M208 X0 Y0 Z0 S1                               ; set axis minima
                                    M208 X300 Y300 Z400 S0                         ; set axis maxima
                                    
                                    ; Endstops
                                    M574 X1 S1 P"!xstop"                           ; configure active-high endstop for low end on X via pin !xstop
                                    M574 Y1 S1 P"!ystop"                           ; configure active-high endstop for low end on Y via pin !ystop
                                    M574 Z1 S1 P"!zstop"                           ; configure active-high endstop for low end on Z via pin !zstop
                                    
                                    ; Z-Probe
                                    M558 P0 H10 F120 T6000                         ; disable Z probe but set dive height, probe speed and travel speed
                                    M557 X15:215 Y15:195 S20                       ; define mesh grid
                                    
                                    ; Heaters
                                    M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 ; configure sensor 0 as thermistor on pin bedtemp
                                    M950 H0 C"bedheat" T0                          ; create bed heater output on bedheat and map it to sensor 0
                                    M307 H0 B0 S1.00                               ; disable bang-bang mode for the bed heater and set PWM limit
                                    M140 H0                                        ; map heated bed to heater 0
                                    M143 H0 S150                                   ; set temperature limit for heater 0 to 150C
                                    M308 S1 P"e0temp" Y"thermistor" T100000 B3950  ; configure sensor 1 as thermistor on pin e0temp
                                    M950 H1 C"e0heat" T1                           ; create nozzle heater output on e0heat and map it to sensor 1
                                    M307 H1 B0 S1.00                               ; disable bang-bang mode for heater  and set PWM limit
                                    M143 H1 S300                                   ; set temperature limit for heater 1 to 300C
                                    
                                    ; 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
                                    
                                    ; Tools
                                    M563 P0 D0 H1 F0                               ; define tool 0
                                    G10 P0 X0 Y0 Z0                                ; set tool 0 axis offsets
                                    G10 P0 R0 S0                                   ; set initial tool 0 active and standby temperatures to 0C
                                    
                                    ; Custom settings are not defined
                                    
                                    ; Miscellaneous
                                    M501                                           ; load saved parameters from non-volatile memory
                                    
                                    fined
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • Phaedruxundefined
                                      Phaedrux Moderator
                                      last edited by

                                      That looks better. Does it home in the right direction towards the endstop now?

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      kevinlallshouseundefined 2 Replies Last reply Reply Quote 0
                                      • kevinlallshouseundefined
                                        kevinlallshouse @Phaedrux
                                        last edited by

                                        @phaedrux yes everything seems to be working now after your help so thank you all for taking so much time to walk me thru it.

                                        1 Reply Last reply Reply Quote 0
                                        • kevinlallshouseundefined
                                          kevinlallshouse @Phaedrux
                                          last edited by

                                          @phaedrux one last thing if you don't mind. my heat bed is faulting out because it is not heating fast enough i think it said with in 1.3 c a sec. my question is would it be ok to disable that or make it for a longer window to allow to heat? any guidance?

                                          engikeneerundefined 1 Reply Last reply Reply Quote 0
                                          • engikeneerundefined
                                            engikeneer @kevinlallshouse
                                            last edited by

                                            @kevinlallshouse you need to tune your bed heater:

                                            https://duet3d.dozuki.com/Wiki/Tuning_the_heater_temperature_control

                                            E3D TC with D3Mini and Toolboards.
                                            Home-built CoreXY, Duet Wifi, Chimera direct drive, 2x BMG, 300x300x300 build volume
                                            i3 clone with a bunch of mods

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