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

    Homeing does not work - fadeing x Endstop

    Scheduled Pinned Locked Moved
    Firmware installation
    5
    30
    1.2k
    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.
    • humbleJoeundefined
      humbleJoe @Phaedrux
      last edited by humbleJoe

      @Phaedrux said in Homeing does not work - fadeing x Endstop:

      @humbleJoe said in Homeing does not work - fadeing x Endstop:

      M307 H4 A-1 C-1 D-1

      Where do you have the BLtouch wired up to? H4 is certainly incorrect. It should either be heater pin 3 or 7. Without that being correct you can't deploy or retract the pin.

      You are correct, it is H3/ Pin 8. I connected the BL Touch the recommended way from the wiki:

      e0451f49-7c63-4f68-a93c-26e824a90de4-grafik.png

      Thx for this hint - this was an user error ^^.

      I will fix this after work and also review the rest of my code configurations before I waste your time 🙂

      1 Reply Last reply Reply Quote 0
      • humbleJoeundefined
        humbleJoe
        last edited by humbleJoe

        so here is an Update:
        after getting the BL Touch right and fixing the following files:

        config.g

        ; Configuration file for Duet WiFi (firmware version 2.03)
        ; executed by the firmware on start-up
        ;
        ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sat Jul 18 2020 12:48:35 GMT+0200 (Mitteleuropäische Sommerzeit)
        
        ; General preferences
        G90                                                ; send absolute coordinates...
        M83                                                ; ...but relative extruder moves
        M550 P""                             ; set printer name
        M918 P1 E4 F2000000                                ; configure direct-connect display
        
        ; Network
        M551 P""                               ; set password
        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
        
        ; Drives
        M569 P0 S0                                         ; physical drive 0 goes backwards
        M569 P1 S0                                         ; physical drive 1 goes backwards
        M569 P2 S0                                         ; physical drive 2 goes forwards
        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 Z400.00 E93.00                   ; set steps per mm
        M566 X1200.00 Y1200.00 Z24.00 E300.00              ; set maximum instantaneous speed changes (mm/min)
        M203 X9000.00 Y9000.00 Z180.00 E6000.00            ; set maximum speeds (mm/min)
        M201 X500.00 Y500.00 Z100.00 E5000.00              ; set accelerations (mm/s^2)
        M906 X800 Y800 Z800 E1000 I50                      ; 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 X235 Y235 Z260 S0                             ; set axis maxima
        
        ; Endstops
        M574 X1 Y1 Z1 S1                                   ; set active high endstops
        
        ; Z-Probe
        M307 H3 A-1 C-1 D-1
        M558 P9 H5 F100 T2000
        G31 X0 Y0 Z0 P25
        M557 X15:215 Y15:195 S20                           ; define mesh grid
        
        ; Heaters
        M305 P0 T100000 B4092 R4700                        ; set thermistor + ADC parameters for heater 0
        M143 H0 S150                                       ; set temperature limit for heater 0 to 150C
        M305 P1 T100000 B4092 R4700                        ; set thermistor + ADC parameters for heater 1
        M143 H1 S275                                       ; set temperature limit for heater 1 to 275C
        
        ; 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:0 T45                        ; set fan 2 value, PWM signal inversion and frequency. 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 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
        
        
        

        deployprobe.g

        M280 P3 S10 I1
        

        retractprobe.g

        M280 P3 S90 I1
        

        Here is what happens:
        When I home X and Y axis, the printhead moves z positive, some mm (less then 5) into x/y positive direction (my endstops are low end/ so other direction and will never get triggered) and then z negative and stops there.-> he thinks the home was a success!
        The Z homeing works now (or at least it tests it once, the second / faster test doesnt work).

        After homeing all axis (doesnt matter if allhome/ or to home 1 by 1) the printer thinks that the point he is at the moment is his home (even if it is in the middle of the build plate because he never drives to the endstops). So i can move the X and Y axis only in more positive direction but not nevative (as long as I dont move positive first. then I am able to drive as much negative as I did positive before.)

        Edit:
        One other thing about the endstops. at the moment I used normaly open switches because i was not able to use normaly closed once - changeing the 1 to 0 and 0 to 1 in the config.g made no diffrence

        Endstops
        M574 X1 Y1 Z1 S1 
        

        same behavior as

        Endstops
        M574 X0 Y1 Z1 S1 
        

        How can this be?
        Any tipps what I can do next 🙂

        1 Reply Last reply Reply Quote 0
        • fcwiltundefined
          fcwilt
          last edited by

          Hi,

          So when you home X or Y the result is some small movement on X or Y in the positive direction.

          Correct?

          If so that is because your end stops are already triggered when the home begins.

          • The 1st move in the negative direction never happens because the end stop is triggered
          • The 2nd move in the positive direction happens as expected giving the 5 mm of movement in the positive direction
          • The 3rd move in the negative direction never happens because the end stop is triggered

          Try changing the M574 command to specify active low if it is now active high (or vice versa).

          Frederick

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

          1 Reply Last reply Reply Quote 0
          • humbleJoeundefined
            humbleJoe
            last edited by humbleJoe

            Hi,

            well thx for this hint. I directly homed again while holding the x endstop and it works as it should until I let it again.
            So now my question is why is it that my machine thinks he is always triggered even when the Endstop LEDs are not shineing. -> why doesnt it work when i change the M574 command from X0 to X1 or other direction or die S1 to S0?

            Greetings
            Joe

            Edit:

            I use NO Switches with 2 wires. So I wired only the 2 outer pins as said in this wiki: https://duet3d.dozuki.com/Guide/2.)+Wiring+your+Duet+2+WiFi-Ethernet/9?lang=en
            And I have the config.g as posted above. what would be the correct commands for my ender 3 with this setup? can anybody tell me I will test it then 🙂

            1 Reply Last reply Reply Quote 0
            • fcwiltundefined
              fcwilt
              last edited by

              Hi,

              In the M574 the number after the X,Y,Z specifies if the end stop is at the low or high end of the axis range.

              S1 specifies an active high input, S0 specifies active low.

              You need to use S0 since your switches, when closed, connect the input to ground.

              Frederick

              Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

              1 Reply Last reply Reply Quote 0
              • humbleJoeundefined
                humbleJoe
                last edited by humbleJoe

                Ok, then I have understood that correctly. So here is my endstop config from config.g

                Endstops
                M574 X1 Y1 Z1 S0
                

                and this is how i wired the x and y endstops on the duet:
                IMG_1700.jpg

                this is how both endstops (normaly closed) are connected:
                IMG_1701.jpg

                but they behave weird. When I interrupt the connection (pushing the trigger or just disconnect the switch) the red LED goes off and i am able to home correct. -> so the FW works as NO Switches.
                Here I have the x-endstop just connected and the board thinks it is triggered when it is not, but the disconnected y is not "triggered".

                IMG_1702.jpg

                In my understanding it shouldnt behave like this - might there be an overwrite file where I also have to change something because inverting the config.g to S0 or S1 makes both no diffrence in behaviour.

                But when I change thw wires on the switch side to NO it works fine. How ever I want to use them in NC mode.

                BTW can i scale the images down in this view ? that i dont spam pages ?

                Joe

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

                  Where are your endstops actually located? Left/right front/back?

                  Low end of travel is to the left, high end to the right.
                  Low end to the front, high end to the back.
                  -x to the left, +x to the right.
                  -y to the front, +y to the back.

                  Your homeall file is setup for the switches to be at the low ends of travel. Is that still the case?

                  What does your M574 line look like now?

                  For the Ender 3 pro in RRF2 it should be M574 X1 Y1 Z1 S1

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • humbleJoeundefined
                    humbleJoe
                    last edited by humbleJoe

                    Hi,

                    I havent changed anything on the positioning of the ender 3 pro switches. So when I look at my printer the x is on left side and the y on the back.

                    In the config.g file the M574 command is

                    ; Endstops
                    M574 X1 Y1 Z1 S1
                    

                    Ok for reasons that I dont understand the homeing process now works as intended. exept for one little detail. it trys to home the z axis with the BL Touch on spot near the x endstop so out of the heated bed. How do I fix this :)?

                    The x & y endstop LED is always on when not triggered. I asume that is fine?!
                    When Y triggered the LED goes off how ever when X is triggered the LED goes from bright shine to low dimmed but not off. -> is that a problem / do you guys have that behavior as well?

                    Joe

                    DIY-O-Sphereundefined fcwiltundefined 2 Replies Last reply Reply Quote 0
                    • DIY-O-Sphereundefined
                      DIY-O-Sphere @humbleJoe
                      last edited by

                      @humbleJoe said in Homeing does not work - fadeing x Endstop:

                      of the heated bed. How do I fix this :)?

                      Edit x and y position in homeall.g and homez.g
                      G1 X15 Y15 F6000 ; go to first bed probe point and home Z

                      (UTC+1)

                      1 Reply Last reply Reply Quote 0
                      • fcwiltundefined
                        fcwilt @humbleJoe
                        last edited by fcwilt

                        @humbleJoe said in Homeing does not work - fadeing x Endstop:

                        Ok for reasons that I dont understand the homeing process now works as intended. exept for one little detail. it trys to home the z axis with the BL Touch on spot near the x endstop so out of the heated bed. How do I fix this :)?

                        For this purpose I would do it at the center of the bed.

                        Now I prefer setting up axis min/max values so 0,0 IS the center of the bed.

                        So for my FT-5 with a 300x300 bed the X and Y axis min/max values are -150/150.

                        IF I kept 0,0 at the left-front corner the X and Y axis min/max values would be 0/300.

                        In that case to probe at the center I would have to use 150,150.

                        Someone else has suggested using the first probe point at 15,15 - not sure why you would want to do that.

                        Frederick

                        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

                        1 Reply Last reply Reply Quote 0
                        • humbleJoeundefined
                          humbleJoe
                          last edited by

                          Looks good now, changed x & y to 118 (235/2).
                          So thank you all for helping me 🙂

                          However one last point. It looks like my Extruder is not set up correctly.
                          I cant extrude or retract something an when clicking on it I get the following error.
                          055a4449-c443-4445-9c4e-f0881108b174-grafik.png

                          Joe

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

                            Select a tool first by either clicking on the tool, or sending T0. Most people add a T0 to the end of config.g so that it's selected at start up. It also must be at temp to extrude unless you've specifically allowed cold extrusion.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • humbleJoeundefined
                              humbleJoe
                              last edited by

                              Thank you all so much. Works everything fine now.... I will read some more wiki and learn all this machine code 🙂 but thank you all for the support 🙂

                              Greetings and have good prints!
                              Joe

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