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

    Solved: Jogging past axis limits..?

    Scheduled Pinned Locked Moved Solved
    CNC
    4
    26
    1.6k
    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.
    • Nightowlundefined
      Nightowl
      last edited by Nightowl

      I've finally got the axes on my CNC machine doing what they're supposed to do, in the direction they're supposed to go in, and I've configured the axis minima and maxima according to the guide, but how is it that I can jog past these limits?

      This is disconcerting because I can jog the machine to the point where they impact the proximity sensors and, push further than they're supposed to go at the other end!

      OK, so I appreciate I shouldn't do this anyway, but I was rather hoping the settings would prevent me from accidentally doing it, too. I've disabled jogging on startup until the machine's been 'homed' (using M564 S1 H1).

      This may be specific to CNC machines, but does anyone have any ideas, 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

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Nightowl
        last edited by

        @nightowl999 post your homing files and your config.g

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        Nightowlundefined 1 Reply Last reply Reply Quote 0
        • Nightowlundefined
          Nightowl @jay_s_uk
          last edited by

          I think I've sussed it, @jay_s_uk.

          I've got the M564 S1 H1 line in my config.g file, but whilst 'playing' with getting my axes working I've been using M564 S0 H0 to allow me to jog - not realising I should have used M564 H0 S1.

          Thanks anyway 👍

          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 2
          • Nightowlundefined
            Nightowl
            last edited by

            Actually, I haven't sussed this out...

            I've used the M564 S1 H1 to forbid movement of axes that have not been homed and limit movement within axis boundaries, and after starting up and before homing any of the axes, I get the "G0/G1: Insufficient axes homed" error, which I would expect.

            When I send M564 S1 H0 code (to allow movement but within axis limits), I can move the axes in any direction, but exceed the axis limits.

            However, after I home all the axes (to rear, right, up) and then try to move any of the axes, I get a "G0/G1: target position outside machine limits" error every time and can't move any axis in any direction.

            I wonder if this is related to the fact I'm operating in 'negative' space, i.e. machine "Home" is rear, right, up and all movements from that starting point are numerically negative?

            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

            jay_s_ukundefined 1 Reply Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @Nightowl
              last edited by

              @nightowl999 sounds like you've not set it up quite right. Can you post your config and homing files?

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

              Nightowlundefined 1 Reply Last reply Reply Quote 0
              • Nightowlundefined
                Nightowl @jay_s_uk
                last edited by Nightowl

                Here you go, @jay_s_uk...
                (I'd like to know how to do this with the colourful screens others use...)

                ; General preferences
                M453 ; set machine to CNC mode
                G90 ; send absolute coordinates...
                M83 ; ...but relative extruder moves
                M550 P"Heretic" ; set printer name

                ; Network
                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

                ; 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

                ; Configure Motors
                M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation
                M92 X400 Y400 Z400 ; set steps per mm
                M566 X500 Y500 Z500 ; set maximum instantaneous speed changes (mm/min)
                M203 X2500 Y2500 Z2500 ; set maximum speeds (mm/min)
                M201 X150 Y150 Z150 ; set accelerations (mm/s^2)
                M906 X2400 Y2400 Z 2400 ; set motor currents (mA) 80% of maximum (3000mA)
                M84 S0 ; Disable motor idle current reduction

                ; Axis Limits
                M208 X0 Y0 Z0 S1 ; set axis minima
                M208 X549 Y787 Z100 S0 ; set axis maxima
                ; M208 X0:535 Y0:787 Z0:100 S0 ; set axis minima and maxima

                ; Endstops
                M574 X1 S1 P"io8.in" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin io8.in
                M574 Y1 S1 P"io6.in+io3.in" ; configure switch-type (e.g. microswitch) and dual self-squaring high ends on Y1 via pin io6.in and on Y2 via pin io3.in
                M574 Z1 S1 P"io2.in" ; configure switch-type (e.g. microswitch) endstop for low end on Z via pin io2.in

                ; Fans
                M950 F0 C"out8" Q500 ; create fan 0 on pin out 8 and set its frequency
                M106 P0 S0.5 H-1 ; set fan 0 value. Thermostatic control is turned off

                ; Makita and relay configuration
                M950 R0 C"out1+out7" ; enable router relay on out8
                M563 P0 S"Makita" R0 ; assign spindle 0 to tool 0 and name it Makita
                T0 ; select tool 0

                ; Custom settings are not defined

                ; Miscellaneous
                M564 S1 H1 ; Disable jog commands when not homed

                ...and the Homeall file, too...

                G91 ; relative positioning
                G1 H1 Z100 F2400 ; move quickly to the Z axis endstop (first pass)
                G1 H2 Z-5 F2400 ; go back 5mm
                G1 H1 Z100 F240 ; move slowly to the Z axis endstop (second pass)
                G1 H2 Z-3 F240 ; go back 3mm
                G1 H1 X549 Y787 F2400 ; move quickly to X and Y axis endstops (first pass)
                G1 H2 X-5 Y-5 F2400 ; go back 5mm
                G1 H1 X549 Y787 F240 ; move slowly to X and Y axis endstops (second pass)
                G1 H2 X-3 Y-3 F240 ; go back 3mm
                G90 ; absolute positioning

                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

                sinned6915undefined 1 Reply Last reply Reply Quote 0
                • sinned6915undefined
                  sinned6915 @Nightowl
                  last edited by sinned6915

                  @nightowl999
                  do you have and H564 statements in your homing macros ?

                  formating: use three back ticks , the one under the ~, top left of your keyboard.

                  test
                  

                  ddacaecd-3d4d-4f4e-b4d8-4bd10b65e7cb-image.png

                  Nightowlundefined 1 Reply Last reply Reply Quote 1
                  • Nightowlundefined
                    Nightowl @sinned6915
                    last edited by Nightowl

                    Forgive me, @sinned6915, but I'm not really sure what you mean, but I don't have H564 statements in the homing files. I do have them in the config.g file, though (M564 S1 H1)

                    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

                    jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                    • jay_s_ukundefined
                      jay_s_uk @Nightowl
                      last edited by

                      @nightowl999 both your X and y endstop locations are set to the minima (X1 and Y1). When you home, the minima limit from M208 is applied even though you're moving to the Maxima.
                      Change the 1 to a 2 (so X2 Y2) in your M574

                      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                      Nightowlundefined 1 Reply Last reply Reply Quote 0
                      • Nightowlundefined
                        Nightowl
                        last edited by

                        There is definitely something wrong with the configuration files of my machine.

                        As I understand it, M564 is used to limit (or not) axis movements, with the S limiting (or not) movement outside the axis boundaries and H to allow (or not) moving the axes without homing.

                        In my config.g file (above) there is the line "M564 S1 H1" and, when I first start up the machine, I can't move an axis without homing it first, as I would expect (and I get the G0/G1: insufficient axes homed error).

                        If I then send M564 H0 S1, I can move any axes in any direction, but also past it's limits, which I thought the S1 would prevent.

                        Am I going mad?

                        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
                        • Nightowlundefined
                          Nightowl @jay_s_uk
                          last edited by Nightowl

                          I did that, @jay_s_uk, but then the endstops didn't activate, but I'll try (anything) again!

                          UPDATE: Now I get the G0/G1: target position outside machine limits when I try to move any axis. The proximity sensors do work, though!

                          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

                          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                          • jay_s_ukundefined
                            jay_s_uk @Nightowl
                            last edited by

                            @nightowl999 you'll need to do the same with your Z endstop too.
                            There's also no need to include M564 as S1 H1 are the default setup

                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                            Nightowlundefined 1 Reply Last reply Reply Quote 1
                            • Nightowlundefined
                              Nightowl @jay_s_uk
                              last edited by

                              I'm in the process of doing that now, @jay_s_uk, but won't I still have the same problem?

                              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

                              jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                              • jay_s_ukundefined
                                jay_s_uk @Nightowl
                                last edited by

                                @nightowl999 not if you're jogging to the -ve once homed

                                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                Nightowlundefined 1 Reply Last reply Reply Quote 1
                                • Nightowlundefined
                                  Nightowl @jay_s_uk
                                  last edited by Nightowl

                                  Blinkin' 'eck, @jay_s_uk, you've only gone and sorted it!

                                  The only thing, and I might just have to get used to this, is that the machine home coordinates are back to the maxima values, rather than 0, 0, 0 I was hoping to achieve.

                                  I don't care any more 😊 😊 . It's not as if the machine co-ordinates really matter with a CNC, as the starting point of the work being cut is more important!

                                  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

                                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                                  • jay_s_ukundefined
                                    jay_s_uk @Nightowl
                                    last edited by

                                    @nightowl999 exactly. Typically front left is 0,0. Ideally you want it there as otherwise whatever you're cutting is the opposite way it appears on screen.
                                    Homing to max is perfectly fine.
                                    If you did want to flip it the other way you'd have to change your M574s back, flip the move direction in M569 and rewrite your homing files to move towards the minima rather than the maxima

                                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                    Nightowlundefined 1 Reply Last reply Reply Quote 0
                                    • Nightowlundefined
                                      Nightowl @jay_s_uk
                                      last edited by

                                      Thanks, @jay_s_uk. I think it's time I started doing stuff, rather than messing about!

                                      Talking of homing... Because I can't really reach the back of the machine when it's homed, I temporarily REM'd out the lines relating to the Y axes in the homeall.g file. But, it still homed the Y axes.

                                      Does the Home All button on the dashboard run the homeall.g file, or the individual home files?

                                      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

                                      jay_s_ukundefined sinned6915undefined 2 Replies Last reply Reply Quote 0
                                      • jay_s_ukundefined
                                        jay_s_uk @Nightowl
                                        last edited by jay_s_uk

                                        @nightowl999 homeall but if a certain axis isn't there, it then calls the homing file for that axis, unless they're hidden

                                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                        Nightowlundefined 1 Reply Last reply Reply Quote 0
                                        • Nightowlundefined
                                          Nightowl @jay_s_uk
                                          last edited by Nightowl

                                          Well, I don't know who had that foresight, @jay_s_uk, but that would explain the magical event 😄 😄

                                          I really appreciate the help, 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

                                          1 Reply Last reply Reply Quote 1
                                          • sinned6915undefined
                                            sinned6915 @Nightowl
                                            last edited by

                                            @nightowl999 said in Solved: Jogging past axis limits..?:

                                            I think it's time I started doing stuff, rather than messing about!

                                            That will leave a bruise if your don't sort this out!

                                            Did you follow the basic comissioning procedure that it outlined in the docs?
                                            https://docs.duet3d.com/en/How_to_guides/Commissioning#h-7-check-endstops
                                            Its really straight forward to to take it step by step

                                            If you do it 'half-way' then it WILL come back to haunt you someday. DAMHIKT!

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