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

    Problem with XY shift in Z

    Scheduled Pinned Locked Moved
    General Discussion
    4
    5
    200
    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.
    • Wehaywireundefined
      Wehaywire
      last edited by Wehaywire

      Hello there,

      I've built myself a tool changer with 3 lead screws on Z. So far pretty much anything is working perfectly but i have a problem with a shift in Z.

      The alignment of lead screws and linear rails on Z is almost perfect so they shouldn't be the problem. Ive narrowed down the problem to software bc i noticed that sometimes when i move z after homing x and y also move- even tho they're not supposed to.

      Im using a Duet 3 6HC in standalone mode alongside an expansion 3HC, both are updated to the newest non Beta version.

      Please excuse my crude config.g file, its still a prototype and its my first Printer.
      And please excuse my english, its not my first language & thank u in advance!!!

      ; Configuration file for Duet 3 (firmware version 3.3)
      ;
      ;
      ;  Grundstruktur vom Tue Feb 01 2022 17:37:07 GMT+0100 (CET)
      
      ; Allgemein
      G21 						                       ; Einheit [mm]
      G90                                                ; send absolute coordinates...
      M83                                                ; ...but relative extruder moves
      M550 P"PrinterX"                                   ; Drucker Name
      M669 K1                                            ; CoreXY Modus
      
      ; Netzwerkeinstellungen
      M552 P0.0.0.0 S1                                   ; enable network and acquire dynamic address via DHCP
      M586 P0 S1                                         ; enable HTTP
      M586 P1 S0                                         ; disable FTP
      M586 P2 S0                                         ; disable Telnet
      
      ; 	Antriebe
      M584 X0.3 
      M584 Y0.4
      M584 Z0.1:0.2:0.0
      M584 C1.0
      M584 E0.5             
      ;M574 Z2 S1 P"io5.in+io4.in+io7.in" ; Z axis with two motors, individual min endstops, active high
      
      ;Acceleometer
      ;M955 P0 I16 C"spi.cs3+spi.cs2" ; all wires connected to temp DB connector
      
      
      M569 P0.3 S1                                       ; X (0.3) Richtung 
      M569 P0.4 S1                                       ; Y (0.4) Richtung
      M569 P0.0 S0                                       ; Z1 (0.0) Richtung
      M569 P0.1 S0 					  				   ; Z2 (0.1) Richtung
      M569 P0.2 S0 					                   ; Z3 (0.2) Richtung
      M569 P0.5 S0                                       ; E1 (0.5) Richtung
      M569 P1.0 S0 									   ; C (1.0)  Richtung
      
      ; Achsensetup
      
      M208 X0:320 Y0:290 Z0:270 C-45:360	       ; Achsen Maxima & Minima
      
      M92 X160.00 Y160.00 Z800.00 C91.022 E657        ; Schritte in mm
      
      ;	Microstepping
      M350 X16 Y16 Z16 E16 I1                            ; Microstepping mit Interpolation für XYZ E
      M350 C16 I10					   				   ; Microstepping mit Interpolation Für C
      
      ;	Motorensetup
      M566 X900.00  Y900.00   Z600.00  E300.00  C2         ; set maximum instantaneous speed changes [mm/min]
      M203 X6000.00 Y6000.00  Z1800.00 E7200 C5000         ; maximale Geschwindigkeit [mm/min]
      M201 X500.00  Y500.00   Z200.00 E8000 C500           ; maximale Beschleunigung [mm/s^2]
      M906 X800 	  Y800      Z800  I30                	 ; Motorampere [mA] und Ruhezustand mA [%]
      M906 E1200 C400 I10
      M84 S30                                            ; Motoren Ruhezustand [s]
      
      
      ; Achsen Limits
      M208 X0 Y0 Z0 S1                                   ; set axis minima
      M208 X320 Y290 Z270 S0                             ; set axis maxima
      
      ; 	Endstops
      M574 X1 S1 P"io5.in"                              ; Endstop X Achse low End
      M574 Y1 S1 P"io7.in"                              ; Endstop Y Achse low End
      
      ; 	Z-Probe
      M558 P8 C"io0.in" H3 F360 I0 T20000 	         ; Set Z probe type to switch, the axes for which it is used and the dive 
      G31 P200 X0 Y0 Z0	 				             ; Set Z probe trigger value, offset and trigger height
      M557 X20:300 Y25:290 S40                           ; define mesh grid
      M671 X160:345:-40 Y-30:327:327     S5                ; leadscrews 
      M557 P1 X125 Y70 
      M557 P2 X10 Y270
      M557 P3 X290 Y270
      
      ; Thermistoren
      M308 S0 P"temp0" Y"thermistor" A"Bett" T100000 B4138       ; Sensor 0 als Thermistor an temp0
      M308 S1 P"temp1" Y"thermistor" T500000 B4723 C1.196220e-7 H5 ; Sensor 1 als Thermistor an temp1
      
      ; Heizbett
      M950 H0 C"out2" T0                                 ; an (out2) Thermistor (T0)
      M307 H0 B0 S1.00                                   ; Bang Bang Modus & PWM limit
      M140 H0                                            ; Heizbett als heater 0
      M143 H0 S120                                       ; Temperatur Limit für heater 0 zu 120C
      
      ; Hotend
      M950 H1 C"out1" T1                                 ; an (out1) Thermistor (T1)
      M307 H1 B0 S1.00                                   ; PID Modus for heater 1 & PWM limit
      M143 H1 S280                                       ; Temperatur Limit für heater 1 zu 280C
      
      ; tool 1 Lüfter
      M950 F0 C"out7" Q500                               ; create fan 0 on pin out7 and set its frequency
      M106 P0 C"Hotend cooling" S1 H1 T50                ; set fan 0 name and value. Thermostatic control is turned on
      
      Lüfter
      M950 F1 C"out8"                                	   ; create fan 1 on pin out8 and set its frequency
      M106 P1 C"Part cooling" S0 H-1                     ; set fan 1 name and value. Thermostatic control is turned off
      
      ; Test Expansion mit Lüfter
      M950 F2 C"1.out8" Q500
      M106 P2 C"TEST" S0 H-1
      
      
      ; Tools
      M563 P0 D0 S"Mosquito"  H1 F1                       ; define tool 0
      M98 P"/sys/Tool_offsets.g"                  					
      G10 P0 R100 S230                                    ; set initial tool 0 active and standby temperatures
      
      ; Custom settings are not defined
      
      ; Miscellaneous
      M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
      
      M501
      
      droftartsundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @Wehaywire
        last edited by

        @Wehaywire Please post your firmware version: send M115 and post response. Please also run M98 P"config.g" and post the response.

        I can see a few issues with your config.g. I'm not sure any of them would cause X and Y to move when Z only is commanded.

        1. You have two sets of M208 commands in your config. They are the same, so probably not a problem, just confusing if you change one and not the other.
        2. Remove the three M557 lines after your Z Probe configuration. They should be in bed.g.
        3. It is recommended to add the following to config.g, before any commands that reference any CAN bus connected expansion boards (ie before any M569 or M584 commands):
        G4 S2 ; wait for expansion boards to start
        
        1. You have M98 P"/sys/Tool_offsets.g in the Tools section. What commands are in that file?

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        1 Reply Last reply Reply Quote 0
        • Wehaywireundefined Wehaywire marked this topic as a question
        • Wehaywireundefined Wehaywire has marked this topic as solved
        • Wehaywireundefined Wehaywire has marked this topic as unsolved
        • Wehaywireundefined
          Wehaywire
          last edited by

          @droftarts Thanks for the quick response.

          the answer to M115 was:

          M115
          FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.4.5 ELECTRONICS: Duet 3 MB6HC v1.01 FIRMWARE_DATE: 2022-11-30 19:35:23
          

          the answer to M98 P"config.g"

          M98 P"config.g"
          HTTP is enabled on port 80
          FTP is disabled
          TELNET is disabled
          Error: Wrong number of values after '''X''', expected 2
          Error: Wrong number of values after '''X''', expected 2
          Error: Wrong number of values after '''X''', expected 2
          

          the Tool_Offsets.g just contains a single command:

          G10  P0 L2  Z-33.9 X5 Y-49 ;Tool 0
          

          I tried that bc i wanted to have the different tool offsets in one file so i can change it easily if i make changes to the tools. Right now i only have one tool hence just the single command..
          I also deleted the second M208 and put the M557 in the bed.g file, i also added the G4 S2 Command.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • Wehaywireundefined Wehaywire marked this topic as a regular topic
          • Phaedruxundefined
            Phaedrux Moderator @Wehaywire
            last edited by

            @Wehaywire said in Problem with XY shift in Z:

            sometimes when i move z after homing x and y also move- even tho they're not supposed to.

            Can you show a video of what you mean?

            Can you send M115 B1 so we can see the version of the 3hc.

            @Wehaywire said in Problem with XY shift in Z:

            Error: Wrong number of values after '''X''', expected 2Error: Wrong number of values after '''X''', expected 2Error: Wrong number of values after '''X''', expected 2

            I'm not sure where these errors are coming from. You can try and narrow down where that is by adding some M117 commands to your config.g every few lines. Like M117 1 M117 2 M117 3 etc. That will echo the number. When the error occurs between two numbers you know where to look.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @Wehaywire
              last edited by

              @Wehaywire please share your homex.g, homey.g and homeall.g files too. It's possible that you have set them up in a way that leaves X and/or Y outside the normal reachable range, in which case the first movement after homing will try to bring them into range.

              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
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA