Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    M574 ignores X configuration on my huxley duo?

    Duet Hardware and wiring
    3
    8
    426
    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.
    • Mdev
      Mdev last edited by

      I've had good prints out of my RepRap Pro Huxley Duo many times - It was acting a bit weird when sending some commands via Pronterface so I decided Updating the firmware and corresponding SD Image was a good course of action. It would appear I should have lived with the minor gremlins as now I cannot get the X-axis to home using the IR Z-probe that came with it.

      when I would try to home x after the new firmware flash it would move the hotend ~5mm left then stop - then I changed S1 for S2 in the homex.g and now it moves in the other (correct) direction towards the little tab that sets off the IR Z-probe...but it doesn't stop above it - just rams into the side and keeps pushing the stepper into the side.

      I've not changed the physical setup or knocked the machine or probe about after having it print really lovely jobs.

      M574 ignores the change to change X0 to X2 - seems to be ignoring the config.g file?

      If I posted my Config.g and homex and homeall would it help?

      any help appreciated

      Mdev 1 Reply Last reply Reply Quote 0
      • Duckle
        Duckle last edited by Duckle

        To help with this problem a bit (I've been helping out in #reprap on freenode)

        This is the printer
        This is the latest complete SD image for the older firmware

        EDIT:

        Here's the config.g and homex.g

        CONFIG:

        ; Configuration file for RepRap Huxley Duo
        ; RepRapPro Ltd
        ;
        ; Copy this file to config.g if you have an Huxley Duo
        ; If you are updating a config.g that you already have you
        ; may wish to go through it and this file checking what you
        ; want to keep from your old file.
        ; 
        ; For G-code definitions, see http://reprap.org/wiki/G-code
        ; 
        M564 H0
        M574 X2
        M111 S0                             ; Debug off
        M550 PRepRapPro Huxley Duo          ; Machine name (can be anything you like). With DHCP enabled connect to (example) http://reprapprohuxleyduo (machine name with no spaces).
        M551 Preprap                        ; Machine password (currently not used)
        M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0x14 ; MAC Address
        ;M552 P0.0.0.0                       ; Un-comment for DHCPM552 S1 P0.0.0.0                  ; IP address, comment for DHCP
        M553 P255.255.255.0                 ; Netmask
        M554 P192.168.1.1                   ; Gateway, comment for DHCP
        M555 P2                             ; Set output to look like Marlin
        G21                                 ; Work in millimetres
        G90                                 ; Send absolute corrdinates...
        M83                                 ; ...but relative extruder moves
        M906 X700 Y700 Z600 E800            ; Set motor currents (mA)
        M305 P0 R4700 T100000               ; Set the heated bed thermistor resistance at 25C, series resistor to 4K7
        M305 P1 R4700                       ; Set the hot end thermistor series resistor to 4K7
        M569 P0 S1                          ; Reverse the X motor
        M569 P3 S0                          ; Reverse the extruder motor (T0)
        M569 P4 S0                          ; Reverse the extruder motor (T1)
        M92 E660                            ; Set extruder steps per mm
        M558 P2                             ; Use a modulated Z probe
        G31 Z0.8 P600                       ; Set the probe height and threshold (deliberately too high to avoid bed crashes on initial setup)
        M556 S45 X0 Y0 Z0                   ; Put your axis compensation here
        M201 X750 Y750 Z15 E750             ; Accelerations (mm/s^2)  
        M203 X15000 Y15000 Z300 E3600       ; Maximum speeds (mm/min)
        M566 X200 Y200 Z30 E20              ; Minimum speeds mm/minute    
        M563 P0 D0 H1                       ; Define tool 0
        G10 P0 S-273 R-273                  ; Set tool 0 operating and standby temperatures
        ;M563 P1 D1 H2                       ; Define tool 1, uncomment if you have a dual colour upgrade
        ;G10 P1 X19 S-273 R-273              ; Set tool 1 operating and standby temperatures, uncomment if you have a dual colour upgrade
        

        HOMEX

        M574 X2
        
        G91               ; set movement to relative mode
        G1 Z5 F200        ; move z up 5mm
        G90               ; set movement to absolute mode
        M558 P1           ; set probe to unmodulated mode
        G1 X-140 F2000 H2 ; home X
        G92 X0            ; set position to X=0
        G1 X3 F200        ; move axis away from X=0
        G1 X-5 F200 H2    ; home again, slower
        G92 X0            ; set position to X=0
        G1 X0 F2000       ; ADJUST the X value to put the nozzle on the edge of the bed
        G92 X0            ; set position to X=0
        M558 P2           ; set probe to modulated mode
        G91               ; set movement to relative mode
        G1 Z-5 F200       ; move Z down 5mm
        G90               ; set movement to absolute mode
        
        1 Reply Last reply Reply Quote 0
        • Mdev
          Mdev @Mdev last edited by Mdev

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Duckle
            Duckle last edited by

            Oh right.
            @Mdev if you can verify the following:

            Running:

            M574 X2
            M574
            

            returns:

            Endstop configuration: X: high end active high switch, Y: low end active high switch, Z: low end active high switch
            
            Mdev 1 Reply Last reply Reply Quote 0
            • Mdev
              Mdev @Duckle last edited by

              @duckle said in M574 ignores X configuration on my huxley duo?:

              M574 X2
              M574

              Exactly that yes.

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

                AFAIR the Huxley Duo uses the IR sensor for X homing. Therefore the command you need is either M574 X1 S2 or M574 X2 S2 depending on whether the homing tab is at the low-X or high-X end of the axis.

                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

                Mdev 1 Reply Last reply Reply Quote 0
                • Mdev
                  Mdev @dc42 last edited by

                  @dc42
                  I added that command via the DWC Gcode Console and it worked - worked a treat.

                  So I then added it to the config.g and re-ran the x homing command and it didn't work - rammed into the side.

                  Checked what the reply to M574 was and it now says

                  M574
                  Endstop configuration: X: low end Z probe, Y: low end active high switch, Z: low end active high switch,

                  This is good...but it isn't working. with this as the reply to M574 and I run the x homing command it just rams the side - doesn't even hesitate over the homing tab.

                  I then popped it back into the Gcode console and ran the x axis homing command and now it doesn't work at all - checked the wiring...all good.

                  What am I doing wrong?

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

                    Check that with the sensor over the homing tab, the sensor consistently reads as triggered. You may need to stick a piece of white card or tape over the homing tab.

                    Also check what mode the sensor it in and what the trigger value (G31 P parameter) is. AFAIR, RepRapPro sometimes changed the probe mode (M558 P parameter) from 2 to 1 during X homing. I don't know why they did that.

                    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