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

Z-offset Issue(Probably Me)

Scheduled Pinned Locked Moved
Third-party add-ons
4
8
2.0k
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
    Saadiqj
    last edited by 26 Apr 2018, 18:42

    HI, hope someone can help me.

    Ive built a hypercube and having a strange issue with my z-offset.
    ive gone through the setup procedures with everything including the z-offset(using a bltouch btw). bltouch is working as it supposed to. Anyways, regardless of what i mak my z-offset t always goes to the same offset. is there any commands i have in my config file that may be over riding the z-offset.

    Thanks in advanced

    ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Mon Mar 26 2018 07:38:31 GMT+0200 (South Africa Standard Time)

    ; General preferences
    G90 ; Send absolute coordinates...
    ;M83 ; ...but relative extruder moves
    M555 P1 ; Set firmware compatibility to look like RepRapFirmare

    M667 S1 ; Select CoreXY mode

    ; Network
    M550 PMy printer ; Set machine name
    M552 S1 ; Enable network
    ;*** Access point is configured manually via M587
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes forwards
    M569 P3 S0 ; Drive 3 goes forwards
    M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
    M92 X80 Y80 Z800 E418.5 ; Set steps per mm
    M566 X500 Y500 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X9000 Y9000 Z600 E3600 ; Set maximum speeds (mm/min)
    M201 X700 Y700 Z250 E750 ; Set accelerations (mm/s^2)
    M906 X1200 Y1200 Z1000 E1000 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 X295 Y295 Z365 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 S1 ; Set active high endstops
    M574 Z1 S2 ; Use zprobe and home to min

    ; Z-Probe
    M307 H3 A-1 C-1 D-1 ; use pin 3 on header for bltouch
    M558 P9 X0 Y0 Z1 H5 F100 T2000 ; P9 for BLTouch, dive height 5mm, probe speed 100, travel speed 2000, 4 taps, pause 0.5 sec
    G31 X25 Y0 Z2.70 P25 ; probe offset from nozzle, p is trigger value, set low for bltouch, set Z=0 for testing
    M557 X45:280 Y45:280 S40 ; Define mesh grid

    ; Heaters
    M305 P0 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S120 ; Set temperature limit for heater 0 to 120C
    M305 P1 T100000 B4725 C7.060000e-8 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C

    ; Fans
    M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    M106 P2 S1 I0 F500 H1 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

    ; Tools
    M563 P0 D0 H1 ; 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

    ; Automatic saving after power loss is not enabled

    ; Custom settings are not configured

    ; Miscellaneous
    M501 ; Load saved parameters from non-volatile memory

    1 Reply Last reply Reply Quote 0
    • undefined
      jmjcoke
      last edited by jmjcoke 26 Apr 2018, 19:12

      G31 Zxxxx changes the height of Z in relationship to probe trigger. I change this to get a good first layer.

      Joshua Coke

      Trick Laser Metal Max with Smart Effector
      Duet Wifi
      Zesty Nimble
      Mosaic Pallette+
      At work
      Renishaw AM250/400/ RenAM500M/500Q Powder Bed Fusion (Metal 3D Printers)

      1 Reply Last reply Reply Quote 0
      • undefined
        Saadiqj
        last edited by 26 Apr 2018, 19:35

        I know. Thats the "Z-offset"im talking about. changing that makes no difference to my setup for some reason. trying to figure it out.

        Thanks though

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators
          last edited by 26 Apr 2018, 20:47

          1. Do you have another G31 command in your config-override.g file?

          2. How are you homing Z?

          Duet WiFi hardware designer and firmware engineer
          Please do not ask me for Duet support via PM or email, use the forum
          http://www.escher3d.com, https://miscsolutions.wordpress.com

          1 Reply Last reply Reply Quote 0
          • undefined
            Saadiqj
            last edited by 26 Apr 2018, 21:13

            Hey DC42
            Thanks fot taking time to look at my issue, hopefully you can see something

            This is in my config-override.g file

            ; This is a system-generated file - do not edit
            ; Heater model parameters
            M307 H0 A90.0 C700.0 D10.0 S1.00 V0.0 B1
            M307 H1 A326.3 C141.1 D6.3 S1.00 V24.1 B0
            M307 H2 A340.0 C140.0 D5.5 S1.00 V0.0 B0
            M307 H4 A340.0 C140.0 D5.5 S1.00 V0.0 B0
            M307 H5 A340.0 C140.0 D5.5 S1.00 V0.0 B0
            M307 H6 A340.0 C140.0 D5.5 S1.00 V0.0 B0
            M307 H7 A340.0 C140.0 D5.5 S1.00 V0.0 B0

            And this is my homeall file

            ; homeall.g
            ; called to home all axes
            ;
            ; generated by RepRapFirmware Configuration Tool on Mon Mar 26 2018 07:38:31 GMT+0200 (South Africa Standard Time)
            G91 ; relative positioning
            G1 Z5 F600 S2 ; lift Z relative to current position
            M98 P/macros/Deployprobe.g ; deploy mechanical Z probe
            G1 S1 X-300 Y-300 F1800 ; move quickly to X or Y endstop and stop there (first pass)
            G1 S1 X-300 ; home X axis
            G1 S1 Y-300 ; home Y axis
            G1 X5 Y5 F6000 ; go back a few mm
            G1 S1 X-300 F360 ; move slowly to X axis endstop once more (second pass)
            G1 S1 Y-300 ; then move slowly to Y axis endstop
            G1 Y15 X15 F500 ; MOVE OUT A FEW MM
            G1 S1 Z-300 F1800 S1 ; move Z down stopping at the endstop
            G90 ; absolute positioning
            G92 Z2.5 ; set new Z position
            ;G1 Z5 F100 S2 ; uncomment this line to lift the nozzle after homing

            M98 P/macros/retractprobe.g ; retract mechanical Z probe

            and Home Z

            ; homez.g
            ; called to home the Z axis
            ;
            ; generated by RepRapFirmware Configuration Tool on Mon Mar 26 2018 07:38:31 GMT+0200 (South Africa Standard Time)
            G91 ; relative positioning
            G1 X25 Y25 F1000 S2
            M98 P/macros/Deployprobe.g
            G1 Z5 F6000 S2 ; lift Z relative to current position
            G1 S1 Z-370 F1800 ; move Z down until the switch triggers
            G92 Z2.5 ; set Z position to trigger height
            M98 P/macros/Retractprobe.g
            G1 ZX-25 Y-25 F600 S2

            ; Uncomment the following lines to lift Z after probing
            ;G91 ; relative positioning
            ;G1 Z5 F100 S2 ; lift Z relative to current position
            ;G90 ; absolute positioning

            1 Reply Last reply Reply Quote 0
            • undefined
              Phaedrux Moderator
              last edited by 26 Apr 2018, 23:47

              I don't see a G30 probe command in there. That would explain why your trigger height isn't being set, you aren't measuring it. You are currently using the zprobe as an endstop.

              Replace the z movement section with a G30.

              Z-Bot CoreXY Build | Thingiverse Profile

              1 Reply Last reply Reply Quote 0
              • undefined
                Saadiqj
                last edited by 27 Apr 2018, 13:05

                Thanks. What do you mean, "replace the z movement section with G30". Replace G31 with G30?

                undefined 1 Reply Last reply 27 Apr 2018, 14:55 Reply Quote 0
                • undefined
                  Phaedrux Moderator @Saadiqj
                  last edited by Phaedrux 27 Apr 2018, 14:55

                  @saadiqj I mean that where you use G1 S1 Z-370 to move the bed use G30 to call for a probe instead.

                  https://duet3d.dozuki.com/Wiki/Gcode#Section_G30_Single_Z_Probe

                  Here is my HomeAll.g for comparison.

                  ; homeall.g
                  ; called to home all axes
                  ;
                  ; BLTouch prep so we don't catch the probe pin on the edge of the bed
                  ;
                  M280 P3 S160 I1 ; Alarm Release and Push-Pin UP just in case it's in alarm and deployed
                  M402 ; Retract probe just in case it's down
                  ; Home XY for Z homing
                  ;
                  G91 ; relative positioning
                  G1 Z5 F200 S2 ; Lower bed 5mm to ensure it is below the switch trigger height
                  M913 X50 Y50 ; set X Y motors to 50% of their normal current for homing
                  G1 S1 X-375 Y305 F4000 ; course home X or Y
                  G1 S1 X-375 F4000 ; course home X
                  G1 S1 Y305 F4000 ; course home Y
                  G1 X2 Y-2 F1000 ; move away from the endstops
                  G1 S1 X-10 F200 ; fine home X
                  G1 S1 Y10 F200 ; fine home Y
                  M913 X100 Y100 ; set X Y motors to 100% of their normal current
                  ; Z homing section follows
                  ;
                  G90 ; absolute positioning
                  G1 X190 Y90 F4000 ; Move x and Y axis over to bed center so probe is on top of bed
                  ; Set lower speeds for homing
                  M566 Z5 ; Set maximum instantaneous speed changes (mm/min) (Jerk)
                  M203 Z350 ; Set maximum speeds (mm/min)
                  M201 Z100 ; Set maximum accelerations (mm/s^2)
                  ; Probe the bed
                  ;
                  M558 A1 F350 ; Set single probing at faster feed rate
                  G30 ; Do a single probe to home our Z axis
                  M558 A10 F100 ; Set tripple probing at slower feed rate
                  G30 ; Probe again to get a more accurate position
                  ; Set normal speeds again
                  M566 Z60 ; Set maximum instantaneous speed changes (mm/min) (Jerk)
                  M203 Z600 ; Set maximum speeds (mm/min)
                  M201 Z600 ; Set maximum accelerations (mm/s^2)
                  ; Move X and Y back Home
                  ;
                  G1 X0 Y270

                  Z-Bot CoreXY Build | Thingiverse Profile

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