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

Resolved: Homing - Quick question...

Scheduled Pinned Locked Moved
Tuning and tweaking
3
19
860
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
    Nightowl
    last edited by Nightowl 5 Nov 2022, 17:02 28 Apr 2022, 13:22

    For whatever reason, my CNC homes to the back, left, up position, which I understand isn't quite orthodox, but I want to change it to back, right, up because it's more convenient for me.

    The current settings in config.g are:

    ; Configure Drives
    M569 P0.0 S0 ; physical drive 0.0 goes backwards - X axis
    M569 P0.1 S1 ; physical drive 0.1 goes forwards - Y1 axis
    M569 P0.2 S1 ; physical drive 0.2 goes forwards - Y2 axis
    M569 P0.3 S0 ; physical drive 0.3 goes backwards - Z axis
    M584 X0.0 Y0.1:0.2 Z0.3 ; set drive mapping

    ; Axis Limits
    M208 X0 Y0 Z0 S1 ; set axis minima
    M208 X535 Y787 Z100 S0 ; set axis maxima

    ...and in homeall.g are:
    G91 ; relative positioning
    G1 H1 X-535 Y787 Z100 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
    G1 H2 X3 Y-3 Z-3 F6000 ; go back a few mm
    G90 ; absolute positioning

    What lines do I need to alter to make this change, please?

    Thank you

    Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
    I'm still on my learning curve, so take everything I say with caution!

    RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

    undefined 1 Reply Last reply 28 Apr 2022, 13:30 Reply Quote 0
    • undefined
      fcwilt @Nightowl
      last edited by 28 Apr 2022, 13:30

      @nightowl999

      What does "homing" mean to you?

      What is the purpose of "homing" to back, right?

      I ask because many folks believe homing means moving to 0, 0 when it really doesn't.

      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

      undefined 1 Reply Last reply 28 Apr 2022, 16:33 Reply Quote 0
      • undefined
        Nightowl @fcwilt
        last edited by 28 Apr 2022, 16:33

        @fcwilt My previous experience with a CNC (a Shapeoko 3) is that 'homing' moved the X, Y and Z to the right rear and up, respectively. The machine co-ordinates at that point are X = -3, Y = -3 and Z = -3 (all mm) as a 'stand off' from the proximity sensors. I'm assuming this 'homing' is designed for the machine to 'know' where it is. This was done (on the Shapeoko), on initialisation, i.e. when it was turned on the machine would move to the rear, right, top location. I was trying to replicate that - on the assumption it's necessary - or at least desirable.

        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
        I'm still on my learning curve, so take everything I say with caution!

        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

        undefined 1 Reply Last reply 28 Apr 2022, 16:42 Reply Quote 0
        • undefined
          fcwilt @Nightowl
          last edited by 28 Apr 2022, 16:42

          @nightowl999

          You are correct in that homing is used to let the machine controller know where the active bit (nozzle, spindle, etc) is.

          Where you want the machine to "park" is another issue.

          On my printers the homing sensors are at axis min or axis max but 0, 0 is at the center of the bed, which is my preference.

          The other common location for 0, 0 is at the left front.

          So on your machine where is 0, 0 and where are the homing sensors located?

          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

          undefined 1 Reply Last reply 28 Apr 2022, 17:11 Reply Quote 0
          • undefined
            Nightowl @fcwilt
            last edited by Nightowl 28 Apr 2022, 17:11

            @fcwilt When I run homeall.g on my machine, it goes to the back, left, up with Y home at 787-3mm and Z home at 100-3mm (the -3 being the back-off from the proximity switches)

            The X home location is currently -535-3mm but the limit switch was on the left. I've since installed a proximity switch to the right to facilitate a right, rear, up home location, hence my question.

            These settings are different to the S3, because the machine location after homing was at -3, -3, -3, so I'm assuming(!) X moving left and Y moving forward would be +ve moves, and X moving down a -ve move.

            So, in answer to your question, 0, 0, 0 would be front, left, down.

            Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
            I'm still on my learning curve, so take everything I say with caution!

            RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

            undefined 1 Reply Last reply 28 Apr 2022, 17:30 Reply Quote 0
            • undefined
              fcwilt @Nightowl
              last edited by 28 Apr 2022, 17:30

              @nightowl999 said in Homing - Quick question...:

              The X home location is currently -535-3mm but the limit switch was on the left. I've since installed a proximity switch to the right to facilitate a right, rear, up home location, hence my question.

              You current homing code is fine. If you still want to use the X axis limit switch on the left all you need to do is add a final G1 X532 F6000 to move to the desired location on X, assuming 532 is the desired location.

              While your homing code doesn't do this it is fairly common to do two G1 H1 moves, first a fast one, then a slow one. Something like:

              G1 H1 X-550 F6000
              G1 X5 F6000
              G1 H1 X-10 F1800

              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

              undefined 1 Reply Last reply 28 Apr 2022, 17:43 Reply Quote 0
              • undefined
                Nightowl @fcwilt
                last edited by 28 Apr 2022, 17:43

                Thanks, @fcwilt, but just so I'm clear, all I need do is change the X value to a positive number if I want to use the proximity sensor on the right, rather than the left?

                I also see your comment about the two homing speeds. The RepRap Config Tool does include these, but the maximum speed of my stepper motors is 2500, so 6000 seemed a lot!

                Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                I'm still on my learning curve, so take everything I say with caution!

                RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                undefined 1 Reply Last reply 28 Apr 2022, 17:58 Reply Quote 0
                • undefined
                  fcwilt @Nightowl
                  last edited by fcwilt 28 Apr 2022, 17:58

                  @nightowl999 said in Homing - Quick question...:

                  Thanks, @fcwilt, but just so I'm clear, all I need do is change the X value to a positive number if I want to use the proximity sensor on the right, rather than the left?

                  The sign of each X move would change, the G1 H1 move would become a positive number but the G1 back-off move would become a negative number.

                  Of course you have to wire in the new sensor and configure it correctly as the X endstop.

                  I also see your comment about the two homing speeds. The RepRap Config Tool does include these, but the maximum speed of my stepper motors is 2500, so 6000 seemed a lot!

                  The speeds are up to you. For example you could use F2500 and F250 as your fast and slow speeds. It's not really essential. The assumption is that the second, slower move will result in greater accuracy of the homed position. Does it really do that? I don't know. I do both fast and slow just to be safe.

                  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

                  undefined 1 Reply Last reply 28 Apr 2022, 18:26 Reply Quote 2
                  • undefined
                    Nightowl @fcwilt
                    last edited by 28 Apr 2022, 18:26

                    Thank you @fcwilt.

                    Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                    I'm still on my learning curve, so take everything I say with caution!

                    RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                    undefined 1 Reply Last reply 28 Apr 2022, 18:55 Reply Quote 0
                    • undefined
                      fcwilt @Nightowl
                      last edited by 28 Apr 2022, 18:55

                      @nightowl999 said in Homing - Quick question...:

                      Thank you @fcwilt.

                      Always glad to be of help when I can.

                      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
                      • undefined
                        Nightowl
                        last edited by 8 May 2022, 16:18

                        When I home my Duet-controlled KillerBee CNC machine to the rear, right, up, the machine position is shown in DWC as X=-3, Y=784 and Z=97, all of which are 3mm off the proximity sensors. This isn't logical to me (except for X).
                        What I would like to see is X=-3, Y=-3 and Z=-3, i.e. 3mm off their respective 0's.
                        Is this something I can adjust in my config.g file or their respective homing files, please?
                        Thanks

                        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                        I'm still on my learning curve, so take everything I say with caution!

                        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                        undefined 1 Reply Last reply 8 May 2022, 17:45 Reply Quote 0
                        • undefined
                          fcwilt @Nightowl
                          last edited by 8 May 2022, 17:45

                          @nightowl999 said in Homing - Quick question...:

                          When I home my Duet-controlled KillerBee CNC machine to the rear, right, up, the machine position is shown in DWC as X=-3, Y=784 and Z=97, all of which are 3mm off the proximity sensors. This isn't logical to me (except for X).
                          What I would like to see is X=-3, Y=-3 and Z=-3, i.e. 3mm off their respective 0's.
                          Is this something I can adjust in my config.g file or their respective homing files, please?
                          Thanks

                          Is it normal for CNC machines to have the XY origin (0, 0) at the right rear as opposed to FDM printers where it is usually left front?

                          So on a CNC machine is the left front position XY two negative values?

                          Thanks.

                          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

                          undefined 1 Reply Last reply 8 May 2022, 18:33 Reply Quote 0
                          • undefined
                            Nightowl @fcwilt
                            last edited by 8 May 2022, 18:33

                            As I understand it, @fcwilt, machine 'home' can be either rear, right, up or front. left, up - as they're essentially the same (as it was explained to me).

                            The reason CNC machines use right, rear, up is to ensure the working area is clear of sharp, jaggy things when fixing stock, etc. I don't know anything about 3D printers, though.

                            My old Shapeoko had it's machine home at right, rear, up and that made sense to me. Project 'home' is slightly different, in that it's the starting point for cutting the stock (wood, metal, plastic, etc) which is mounted on a spoil board. Normally (but not exclusively) the front left hand corner coordinates of the stock is X=0, Y=0 and Z being measured from the top of the stock, so all Z cuts are down. some people prefer to set Z0 on the waste board, though.

                            Does that help?

                            Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                            I'm still on my learning curve, so take everything I say with caution!

                            RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                            undefined 1 Reply Last reply 8 May 2022, 21:27 Reply Quote 0
                            • undefined
                              fcwilt @Nightowl
                              last edited by 8 May 2022, 21:27

                              @nightowl999 said in Homing - Quick question...:

                              As I understand it, @fcwilt, machine 'home' can be either rear, right, up or front. left, up - as they're essentially the same (as it was explained to me).

                              The reason CNC machines use right, rear, up is to ensure the working area is clear of sharp, jaggy things when fixing stock, etc. I don't know anything about 3D printers, though.

                              My old Shapeoko had it's machine home at right, rear, up and that made sense to me. Project 'home' is slightly different, in that it's the starting point for cutting the stock (wood, metal, plastic, etc) which is mounted on a spoil board. Normally (but not exclusively) the front left hand corner coordinates of the stock is X=0, Y=0 and Z being measured from the top of the stock, so all Z cuts are down. some people prefer to set Z0 on the waste board, though.

                              Does that help?

                              Thanks.

                              I think the confusion is from the terms "home" and "homing".

                              To me in the FDM printer world "homing" is the process of "synchronizing" the logical position of each axis (where the controller "thinks" things are) to the physical position of each axis (where things actually are).

                              Homing can be done to either the min or max end of an axis. And there is no requirement that all axes home to the same end, min or max.

                              The "origin" (0, 0) has no fixed relationship to the position used for homing. The origin is often the left, front but I use the center of the bed.

                              I generally mount the endstop sensors to the rear of the printer. This means that Y would home to the max end. X would home to either the min or max end depending on where it was easiest to mount the endstop sensor.

                              When a print is finished I position the extruder out of the way. Typically to X=0, Y=max which on my printers is the rear center of the bed. I call this the "parked" position to distinguish it from the "origin" or the "home" position.

                              So where do wish 0,0 to be? The left front or the right rear?

                              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

                              undefined 1 Reply Last reply 9 May 2022, 16:44 Reply Quote 0
                              • undefined
                                Nightowl @fcwilt
                                last edited by 9 May 2022, 16:44

                                @fcwilt OK, but to me, homing is the process by which the machine understands where everything is. This is particularly relevant where the settings aren't stored in an EEPROM and retained, but configured during startup.

                                And there does seem a significant difference between CNC and 3D printing in that respect, too!

                                Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                                I'm still on my learning curve, so take everything I say with caution!

                                RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                                undefined 1 Reply Last reply 9 May 2022, 16:48 Reply Quote 0
                                • undefined
                                  fcwilt @Nightowl
                                  last edited by 9 May 2022, 16:48

                                  @nightowl999 said in Homing - Quick question...:

                                  @fcwilt OK, but to me, homing is the process by which the machine understands where everything is. This is particularly relevant where the settings aren't stored in an EEPROM and retained, but configured during startup.

                                  Isn't that what I said?

                                  To me in the FDM printer world "homing" is the process of "synchronizing" the logical position of each axis (where the controller "thinks" things are) to the physical position of each axis (where things actually are).

                                  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

                                  undefined 1 Reply Last reply 9 May 2022, 16:52 Reply Quote 0
                                  • undefined
                                    Nightowl @fcwilt
                                    last edited by Nightowl 5 Sept 2022, 16:54 9 May 2022, 16:52

                                    You did, sorry @fcwilt. I'm switching between two threads and trying to cook my dinner!!

                                    I would like the 0,0 to be right rear, in answer to your question (which I also missed 😊 )

                                    Printers do have a Z height too, don't they? My knowledge of 3D printing is non-existent, in case you were wondering!

                                    Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                                    I'm still on my learning curve, so take everything I say with caution!

                                    RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

                                    1 Reply Last reply Reply Quote 1
                                    • Phaedruxundefined
                                      Phaedrux Moderator
                                      last edited by 10 May 2022, 00:33

                                      Right rear 0,0 position is fine. It's the typical right hand coordinate system just rotated 180 degrees. The problem occurs when you only rotate it 90 degrees in which case you'll get a mirrored axis.

                                      The physical endstop position is defined in the M574 command. If you want the homed position to be 0,0 set it to 1 for the low end of travel.

                                      The homing moves in your macros will need to be negative to move towards the endstop.

                                      Now it's up to you to define the motor rotation direction such that a negative move goes in the rear/right direction.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      undefined 1 Reply Last reply 10 May 2022, 10:34 Reply Quote 1
                                      • undefined
                                        Nightowl @Phaedrux
                                        last edited by 10 May 2022, 10:34

                                        Thank you, @phaedrux

                                        Few things are more dangerous than taking the advice of someone who thinks he knows what he's doing.
                                        I'm still on my learning curve, so take everything I say with caution!

                                        RatRig 1075, Duet3 MB6HC, Sorotec SFM 1000 PV-ER milling motor, Hobbyist

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