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

    Strange X and Y homing (axis that shouldn't move, move)

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    5
    349
    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.
    • MJCTundefined
      MJCT
      last edited by

      Hi, having a problem with the X and Y homing.
      First the code:
      ; Configuration file for Duet WiFi (firmware version 2.03)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.3 on Thu Nov 28 2019 16:04:13 GMT+0000 (Hora padrão da Europa Ocidental)

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

      M667 S1 ; select CoreXY mode

      ; Network
      M551 P"AA" ; set password
      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 S1 ; physical drive 3 goes forwards
      M584 X0 Y1 Z2 E3 ; set drive mapping
      M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
      M92 X80.00 Y80.00 Z4000.00 E92.60 ; 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 Z180.00 E1200.00 ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2)
      M906 X1750 Y1750 Z1750 E1750 I30 ; set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y15 Z0 S1 ; set axis minima
      M208 X290 Y295 Z585 S0 ; set axis maxima

      ; Endstops
      M574 X1 Y1 S0 ; set active low and disabled endstops
      M574 Z1 S2 ; set endstops controlled by probe

      ; Z-Probe
      M307 H4 A-1 C-1 D-1 ; disable heater on PWM channel for BLTouch
      M558 P9 H0.5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds
      G31 P500 X25 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
      M557 X20:270 Y20:275 S20 ; define mesh grid

      ; Heaters
      M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
      M143 H0 S110 ; set temperature limit for heater 0 to 110C
      M305 P1 T100000 B4138 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

      ; Tools
      M563 P0 S"Extr 1" 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
      T0 ; select first tool

      Problem, when X axis is going back a few mm, the Y axis also moves slightly in the positive direction and it shouldn’t, there is nothing in the code telling y axis to move!
      Homing the Y axis is even weirder. It homes the first time but it doesn’t move back for a second passage, besides that, when it hits the Y endstop the X axis moves a little bit to the positive direction.
      But when I use the dashboard to move the axis they move as expected, only in the reight direction and only the specified axis.

      ; homex.g
      ; called to home the X axis
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.3 on Thu Nov 28 2019 16:04:13 GMT+0000 (Hora padrão da Europa Ocidental)
      G91 ; relative positioning
      G1 H2 Z0.5 F6000 ; lift Z relative to current position
      G1 H1 X-295 F1800 ; move quickly to X axis endstop and stop there (first pass)
      G1 H2 X5 F6000 ; go back a few mm
      G1 H1 X-295 F360 ; move slowly to X axis endstop once more (second pass)
      G1 H2 Z-0.5 F6000 ; lower Z again
      G90 ; absolute positioning

      ; homey.g
      ; called to home the Y axis
      ;
      ; generated by RepRapFirmware Configuration Tool v2.1.3 on Thu Nov 28 2019 16:04:13 GMT+0000 (Hora padrão da Europa Ocidental)
      G91 ; relative positioning
      G1 H2 Z0.5 F6000 ; lift Z relative to current position
      G1 H1 Y-315 F1800 ; move quickly to Y axis endstop and stop there (first pass)
      G1 H2 Y5 F6000 ; go back a few mm
      G1 H1 Y-315 F360 ; move slowly to Y axis endstop once more (second pass)
      G1 H2 Z-0.5 F6000 ; lower Z again
      G90 ; absolute positioning

      Thanks

      1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti
        last edited by

        @MJCT said in Strange X and Y homing (axis that shouldn't move, move):

        G1 H2 X5 F6000 ; go back a few mm

        the H2 option is not compatible with corexy. delete the h2 part

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

          H2 is fine for the Z axis, but for the X and Y axis it's telling it to turn a single motor, which results in diagonal movement on coreXY.

          You don't need H2 on those X and Y moves anyway since it's been homed once already. The movement to backoff the endstop can be done as normal.

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti
            last edited by

            the configurator generates this at the moment. so this should be changed. @chrishamm

            1 Reply Last reply Reply Quote 1
            • MJCTundefined
              MJCT
              last edited by

              Thanks for the help.
              The strange movements in the X and Y stopped and the Y axis goes for a second pass like it should be.

              ; homex.g
              ; called to home the X axis
              ;
              ; generated by RepRapFirmware Configuration Tool v2.1.3 on Thu Nov 28 2019 16:04:13 GMT+0000 (Hora padrão da Europa Ocidental)
              G91 ; relative positioning
              G1 H2 Z0.5 F6000 ; lift Z relative to current position
              G1 H1 X-295 F1800 ; move quickly to X axis endstop and stop there (first pass)
              G1 X5 F6000 ; go back a few mm
              G1 H1 X-295 F360 ; move slowly to X axis endstop once more (second pass)
              G1 H2 Z-0.5 F6000 ; lower Z again
              G90 ; absolute positioning

              ; homey.g
              ; called to home the Y axis
              ;
              ; generated by RepRapFirmware Configuration Tool v2.1.3 on Thu Nov 28 2019 16:04:13 GMT+0000 (Hora padrão da Europa Ocidental)
              G91 ; relative positioning
              G1 H2 Z0.5 F6000 ; lift Z relative to current position
              G1 H1 Y-315 F1800 ; move quickly to Y axis endstop and stop there (first pass)
              G1 Y5 F6000 ; go back a few mm
              G1 H1 Y-315 F360 ; move slowly to Y axis endstop once more (second pass)
              G1 H2 Z-0.5 F6000 ; lower Z again
              G90 ; absolute positioning

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