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

height map off set to negative ?

Scheduled Pinned Locked Moved
Tuning and tweaking
3
15
651
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.
  • undefined
    ap742
    last edited by ap742 27 Jan 2023, 23:38

    hi guys I'm stuck. - running 3.4.4 duet 2 wifi - " printer Ender 5 plus "

    was fine till I did exoslide upgrade and exoslide hotend.

    pretty much moved my bltouch offset and stuff .

    so I started from scratch
    G31 P25 X-41 Y9.44 Z2.121
    M557 X-41:280 Y20:340 S38

    also added homeall because it wasn't compensating
    M558 F500 A1 ; probe once quickly
    G30
    M558 F120 A10 ; detailed probe
    G30

    031f07b0-1596-4230-890f-84278127c4f5-image.png

    so this is latest G29

    anyway no matter what the height map looks like - it'll print way to close to bed at the front of the bed

    if I understand correct compensation happens when numbers bit negative ? if so how do I adjust for the map to be bit below the grid ?
    😞

    1 Reply Last reply Reply Quote 0
    • undefined
      Phaedrux Moderator
      last edited by 28 Jan 2023, 04:17

      Please post your config.g and homing files.

      Also please tell us where your endstops are located. It sounds like you may have your coordinate system misconfigured.

      Can you also confirm that -x moves to the left, +x to the right, -y to the front, +y to the back?

      Z-Bot CoreXY Build | Thingiverse Profile

      undefined 1 Reply Last reply 28 Jan 2023, 12:45 Reply Quote 0
      • undefined
        ap742 @Phaedrux
        last edited by 28 Jan 2023, 12:45

        @Phaedrux

        +x moves to the left from the end stop which is 0
        +y moves to the front from the end stop which is 0

        e7fb9a3b-4df9-4cb4-abef-f319f50b5f23-image.png

        here's my config

        ; Configuration file for Duet WiFi (firmware version 3)
        ; executed by the firmware on start-up
        ;
        ; generated by RepRapFirmware Configuration Tool v3.2.3 on Fri Apr 16 2021 19:18:05 GMT-0400 (Eastern Daylight Time)

        ; General preferences
        G90 ; send absolute coordinates...
        M83 ; ...but relative extruder moves
        M550 P"E5" ; set printer name

        ;MCU temp
        M912 P0 S21 - 26

        ; 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 S0 ; physical drive 2 goes backwards
        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 Z800.00 E486.584 ; set steps per mm
        M566 X900.00 Y900.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
        M203 X6000.00 Y6000.00 Z300.00 E1200.00 ; set maximum speeds (mm/min)
        M201 X500.00 Y500.00 Z20.00 E500.00 ; set accelerations (mm/s^2)
        M906 X800 Y800 Z800 E1000 I30 ;Y800 Z800 E900 I30 ; set motor currents (mA) and motor idle factor in per cent
        M84 S30 ; Set idle timeout

        ; Axis Limits
        M208 X0 Y0 Z0 S1 ; set axis minima
        M208 X355 Y343 Z400 S0 ; set axis maxima x350 M208 X350 Y350 Z400 S0 <- hemera

        ; 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 Z0 ; configure Z-probe endstop on Z
        M591 P1 C"e0stop" S1 D0

        ; Z-Probe
        M950 S0 C"exp.heater3" ; create servo pin 0 for BLTouch
        M558 P9 C"^zprobe.in" H2.5 F180 T6000 ; set Z probe type to bltouch and the dive height + speeds H2.5
        G31 P25 X-41 Y9.44 Z2.121 ; set Z probe trigger value, offset and trigger height
        M557 X-41:280 Y20:340 S38 ; define mesh grid

        ; Heaters
        ;M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; 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 S120 ; set temperature limit for heater 0 to 120C
        ;M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; 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 S280 ; set temperature limit for heater 1 to 280C

        ; Heaters
        M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; 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 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
        M140 H0 ; map heated bed to heater 0
        M143 H0 S120 ; set temperature limit for heater 0 to 120C
        M308 S1 P"e0temp" Y"thermistor" A"Hotend" T100000 B4725 C7.06e-8 ;M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; 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 S1 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
        ;591 D0 P2 C3 S1 ; Filament Run out sensor

        ; Miscellaneous
        M575 P1 S1 B57600 ; enable support for PanelDue
        M501 ; load saved parameters from non-volatile memory
        M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
        M307 H1 R2.896 C205.2:122.7 D7.66 S1.00 V24.2

        here's my homeall

        ; homeall.g
        ; called to home all axes
        ;
        ; generated by RepRapFirmware Configuration Tool v3.2.3 on Fri Apr 16 2021 19:18:06 GMT-0400 (Eastern Daylight Time)
        G91 ; relative positioning
        G1 H2 Z2.5 F6000 ; lift Z relative to current position
        G1 H1 X-360.5 Y-355 F3000 ; 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-360.5 Y-355 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)
        ;G1 X220 Y175 F4000 ; Move probe to middle of bed
        G1 X140 Y160 F6000 ; go to first probe point
        M558 F500 A1 ; probe once quickly
        G30
        M558 F120 A10 ; detailed probe
        G30

        Thank You

        undefined 1 Reply Last reply 28 Jan 2023, 18:28 Reply Quote 0
        • undefined
          Phaedrux Moderator @ap742
          last edited by 28 Jan 2023, 18:28

          @ap742 said in height map off set to negative ?:

          +x moves to the left from the end stop which is 0
          +y moves to the front from the end stop which is 0

          Ok that's fine. That just means your coordinates are rotated 180 degrees from standard, which isn't going to cause problems, though you may notice your prints coming out rotated from how the slicer preview shows.

          From your photo it looks like your probe offsets are reversed though.

          G31 P25 X-41 Y9.44 Z2.121

          X-41 would mean the probe is closer to the low end of the axis to the right of the nozzle. Your photo shows the probe to the left, which in your case would be X+41. This would cause the heightmap to be incorrect.

          I can't quite tell if the probe is in front or behind the nozzle though. But the same rule applies, if it's closer to the low end, the value would be negative.

          Z-Bot CoreXY Build | Thingiverse Profile

          undefined 1 Reply Last reply 28 Jan 2023, 20:27 Reply Quote 0
          • undefined
            ap742 @Phaedrux
            last edited by 28 Jan 2023, 20:27

            @Phaedrux

            Thank You for that

            so I got that changed

            G31 P25 X41 Y-9.44 Z2.121

            how about define the mesh

            M557 X41:280 Y20:340 S38 if I do this it doesn't probe high end all the way

            0f8cd797-0b46-48ea-9877-2fc8ff585865-image.png

            undefined 1 Reply Last reply 28 Jan 2023, 20:40 Reply Quote 0
            • undefined
              Phaedrux Moderator @ap742
              last edited by 28 Jan 2023, 20:40

              @ap742 said in height map off set to negative ?:

              M557 X41:280 Y20:340 S38

              That's because you're telling it to only probe between x41 and x280.

              The easiest way to define the heightmap size is just to make it equal to your actual bed size. Then it will use the probe offsets in G31 to only probe the areas it can actually reach. Just make sure your G31 offsets are correct first.

              Z-Bot CoreXY Build | Thingiverse Profile

              undefined 1 Reply Last reply 28 Jan 2023, 21:43 Reply Quote 0
              • undefined
                ap742 @Phaedrux
                last edited by 28 Jan 2023, 21:43

                @Phaedrux
                Thank you 🙂
                so I'm going to lean towards mechanical stuff . because its doing exactly the same thing as it did before

                my starting gcode loads G29 S1 - assuming it should compensate

                M106 S0 ; turn off cooling fan
                G28
                G29 S1
                G92 E0 ; Reset Extruder
                G1 Z10.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
                G1 X344.5 Y300 Z0.28 F5000.0 ;Move to start position
                G1 X344.5 Y90.0 Z0.28 F1500.0 E15 ;Draw the first line
                G1 X344.7 Y90.0 Z0.28 F5000.0 ;Move to side a little
                G1 X344.7 Y300 Z0.28 F1500.0 E30 ;Draw the second line

                G92 E0 ; reset extrusion distance
                G1 Z15.0 F6000 ;Move the nozzle up 15mm
                G92 E0 ; Reset the extruder's origin

                1 Reply Last reply Reply Quote 0
                • undefined
                  Phaedrux Moderator
                  last edited by 29 Jan 2023, 00:05

                  What does your heightmap look like now?

                  What does the resulting print look like?

                  If the heightmap isn't correcting as expected, that usually means there is some tilt or the print head that changes at different XY positions, or there is some skew in the XY motion plane.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  undefined 1 Reply Last reply 29 Jan 2023, 02:29 Reply Quote 0
                  • undefined
                    ap742 @Phaedrux
                    last edited by 29 Jan 2023, 02:29

                    @Phaedrux

                    so before I tear down and re check all the bearings and stuff " all new but we all know there's always chance "

                    here's what map looks like not perfect but.....
                    a658913f-b4a7-4e80-9100-523c6c1466e5-image.png

                    this is the front of the bed between 275 & 300

                    bd3ba0a9-0da8-48ad-bc7b-faa60c264a59-image.png

                    this one is the back between 50 and 75

                    5ccbcd4c-3c8c-4d40-b640-1fda3feaded3-image.png

                    Thank You

                    1 Reply Last reply Reply Quote 0
                    • undefined
                      Phaedrux Moderator
                      last edited by 29 Jan 2023, 04:46

                      Can you describe your Z axis?

                      Do you do automatic or manual bed leveling?

                      Do you use bed.g?

                      Z-Bot CoreXY Build | Thingiverse Profile

                      undefined 1 Reply Last reply 29 Jan 2023, 12:53 Reply Quote 0
                      • undefined
                        ap742 @Phaedrux
                        last edited by 29 Jan 2023, 12:53

                        @Phaedrux

                        Z is typical ender 5 plus config nothing really changed there.
                        its 2mm pitch 4mm lead
                        10mm linear rods all lubed with synthetic lube
                        z is pretty smooth

                        driven by two steppers 0.8A 1.8 degree

                        d0235c0f-7363-4c99-a95b-77f7c83f06a3-image.png

                        here's my bed config

                        ; bed.g
                        ; called to perform automatic bed compensation via G32
                        ;
                        ; generated by RepRapFirmware Configuration Tool v3.2.3 on Fri Apr 16 2021 19:18:05 GMT-0400 (Eastern Daylight Time)
                        M561 ; clear any bed transform
                        G29 ; probe the bed and enable compensation

                        so the way do it is

                        home all use 0.1 mm spacer to to get nozzle down to bed.
                        and repeat all this few times around all corners and center

                        than I run G31 S-1 few times to get average number for G31

                        after that I run G29

                        undefined 1 Reply Last reply 30 Jan 2023, 14:15 Reply Quote 0
                        • undefined
                          Adamfilip @ap742
                          last edited by 30 Jan 2023, 14:15

                          I have run into this before myself with portions being in the negative. what I did was basically try and home (if probing) to the low spot on the bed. making that area = 0 and the rest is just higher.

                          not a fix really but it worked for me lol

                          undefined 1 Reply Last reply 31 Jan 2023, 00:15 Reply Quote 0
                          • undefined
                            ap742 @Adamfilip
                            last edited by ap742 31 Jan 2023, 00:15

                            @Adamfilip
                            what do you mean make that area 0? how?

                            did you just edit heghtmap.csv and correct the numbers?

                            undefined 1 Reply Last reply 31 Jan 2023, 04:52 Reply Quote 0
                            • undefined
                              Adamfilip @ap742
                              last edited by Adamfilip 31 Jan 2023, 04:52

                              @ap742 no. for example

                              if i do a mesh, and an area at X50 and Y50 is reading the lowest point at Z-1
                              I will set my Z probe to home at X50 and Y50, that way it will set the lowest part of the bed to be the zero point and everything else should be higher, when I remeasure the mesh

                              undefined 1 Reply Last reply 31 Jan 2023, 18:49 Reply Quote 0
                              • undefined
                                Phaedrux Moderator @Adamfilip
                                last edited by 31 Jan 2023, 18:49

                                @Adamfilip It shouldn't really matter since the compensation can go up or down, but it can help to match the Z homing G30 point to one of the probe points of the mesh.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 1
                                10 out of 15
                                • First post
                                  10/15
                                  Last post
                                Unless otherwise noted, all forum content is licensed under CC-BY-SA