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

CoreXY neither X nor Y moving

Scheduled Pinned Locked Moved Solved
Duet Hardware and wiring
5
28
1.3k
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
    Nemesis1782 @deckingman
    last edited by Nemesis1782 4 Aug 2020, 17:54 8 Apr 2020, 17:40

    @deckingman Indeed the issue seems to be the endstops. Didn't notice that the axes actually got homed...

    So I did what anyone would do and inverted the end stops. Now get a error stating no endstop was detected.

    I even tried removing the endstop and setting it S3 (stall detection)

    The error I get is:
    33517e9f-ab9d-4a17-ac5f-caab25cbaa68-image.png

    O sorry wait. I'm a buffoon! I was changing the S on the M574. Which changes the type of endswitch!

    Ok so the S0 is no longer supported and the endstop config has changed in RRF3. This issue seems to be resolved. Now it says no motor connected to driver0.

    1 Reply Last reply Reply Quote 0
    • undefined
      Nemesis1782
      last edited by 8 Apr 2020, 18:06

      Ok. So the endstop issue is resol
      ved. I now have the issue that the duet is telling me the motor is not connected. I tested it with a different config and it works as a standard cartesian setup (meaning both X and Y motors can be driven and do work.

      I've stripped the config of anything superfluos to make it simple:

      ----------------Start CoreXY config--------------------------
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"3DAVII" ; set printer name
      M667 K1 ; select CoreXY mode

      ; Drives
      M569 P0 S1 ; Drive 0 X goes forwards
      M569 P1 S1 ; Drive 1 Y goes forwards
      M584 X0 Y1 ;

      M350 X16 Y16 I1 ; configure microstepping with interpolation
      M92 X80.00 Y80.00 ; set steps per mm
      M566 X900.00 Y900.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00; set maximum speeds (mm/min)
      M201 X500.00 Y500.00; set accelerations (mm/s^2)
      M906 X1600 Y1600 I30 ; set motor currents (mA) and motor idle factor in per cent
      ;M667 and M669 have to be in front of this line
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y0 Z0 S1 ; set axis minima
      M208 X500 Y500 Z600 S0 ; set axis maxima

      ; Endstops
      M574 X1 S1 P"!xstop" ; configure active-high endstop for low end on X via pin !xstop (!signifies inversion)
      M574 Y1 S1 P"!ystop" ; configure active-high endstop for low end on Y via pin !ystop (!signifies inversion)
      M574 Z1 S1 P"!zstop" ; configure active-high endstop for low end on Z via pin !zstop (!signifies inversion)

      -------------Motor/Driver test config---------------
      ; Drives
      M569 P0 S1 ; Drive 0 goes forwards
      M569 P1 S1 ; Drive 1 goes forwards
      M569 P2 S0 ; Drive 2 goes backwards
      M569 P3 S1 ; Drive 3 goes forwards
      M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
      M92 X99.95 Y100.95 Z400 E94.34 ; Set steps per mm
      M566 X900 Y450 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
      M203 X12000 Y9000 Z1500 E1200 ; Set maximum speeds (mm/min)
      M201 X500 Y250 Z10 E250 ; Set accelerations (mm/s^2)
      M906 X700 Y700 Z900 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y8 Z0 S1 ; Set axis minima
      M208 X210 Y220 Z220 S0 ; Set axis maxima

      ; Endstops
      M574 X1 Y1 Z1 S0 ; Set active low endstops

      1 Reply Last reply Reply Quote 0
      • undefined
        Nemesis1782
        last edited by Nemesis1782 4 Aug 2020, 18:33 8 Apr 2020, 18:31

        Alright. I have both the X and Y running with home X and home Y.

        HOWEVER, it should NOT work, right? (X motor connected to drive 0, Y to drive 1). Can anyone shed light on this I would assume that it should be: M584 X0 Y1 Z2;

        ------------Working? config-------------

        ; General preferences
        G90 ; send absolute coordinates...
        M83 ; ...but relative extruder moves
        M550 P"3DAVII" ; set printer name

        M667 K1 ; select CoreXY mode

        ; Drives
        M569 P0 S1 ; Drive 0 X goes forwards
        M569 P1 S1 ; Drive 1 Y goes forwards
        M569 P2 S1 ; Drive 1 Y goes forwards
        M584 Z0 Y1 X2;

        M350 X16 Y16 z16 I1 ; configure microstepping with interpolation
        M92 X80.00 Y80.00 Z80.00; set steps per mm
        M566 X900.00 Y900.00 Z900.00 ; set maximum instantaneous speed changes (mm/min)
        M203 X6000.00 Y6000.00 Z6000.00; set maximum speeds (mm/min)
        M201 X500.00 Y500.00 Z500.00; set accelerations (mm/s^2)
        M906 X1600 Y1600 Z1600 I30 ; set motor currents (mA) and motor idle factor in per cent
        ;M667 and M669 have to be in front of this line
        M84 S30 ; Set idle timeout

        ; Axis Limits
        M208 X0 Y0 Z0 S1 ; set axis minima
        M208 X500 Y500 Z600 S0 ; set axis maxima

        ; Endstops
        M574 X1 S1 P"!xstop" ; configure active-high endstop for low end on X via pin !xstop (!signifies inversion)
        M574 Y1 S1 P"!ystop" ; configure active-high endstop for low end on Y via pin !ystop (!signifies inversion)
        M574 Z1 S1 P"!zstop" ; configure active-high endstop for low end on Z via pin !zstop (!signifies inversion)

        undefined 1 Reply Last reply 8 Apr 2020, 19:02 Reply Quote 0
        • undefined
          Phaedrux Moderator
          last edited by 8 Apr 2020, 18:57

          I would suggest that you go through the web configurator and generate a new config set using all the information you've learned thus far then test what works and doesn't work and report back. Don't strip out anything from the config, it'll just complicate things in the long run.

          Z-Bot CoreXY Build | Thingiverse Profile

          undefined 2 Replies Last reply 8 Apr 2020, 21:01 Reply Quote 0
          • undefined
            droftarts administrators @Nemesis1782
            last edited by 8 Apr 2020, 19:02

            @Nemesis1782 note that the order of the stepper drivers on the board is:
            E1, E0, X, Y, Z
            So X is in the middle, not at the end. You have M584 Z0 Y1 X2, so X is on the double header meant for dual Z motors.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            undefined 1 Reply Last reply 8 Apr 2020, 21:09 Reply Quote 0
            • undefined
              Nemesis1782 @Phaedrux
              last edited by 8 Apr 2020, 21:01

              @Phaedrux thnx for the reply. I like the configurator to create a initial config. However there are a number of reasons I want to understand the underlying GCode configuration and tweak in GCode. The most important reason being I'm not able to configure my printer setup with it.

              I will do what you suggested tomorrow and see if that resolves it. That does not change that I'd like to know why the above config behaves in such a unexpected manner.

              1 Reply Last reply Reply Quote 0
              • undefined
                Nemesis1782 @droftarts
                last edited by 8 Apr 2020, 21:09

                @droftarts Yes that is by design. The reason for that is that I'm going to be using three independently driven Z motors. The Default mapping is just that a default mapping.

                If you check the GCode guide you'll see that this is a example:
                M584 X0 Y1 Z2:3 E4:5:6 ; Driver 0 controls the X motor, 1 controls Y, 2 and 3 control Z motors, 4 5 and 6 control E motors

                I do now realize that I defined 2,3,4 for Z initialy, however in this config have not reinitialized it. As per this note that might be a issue, so 'll be testing that tomorrow:
                VERY IMPORTANT! Assigning a drive using M584 does not remove its old assignment. Therefore, if you assign a drive that defaults to being an extruder drive, you should also assign the extruder drives explicitly as in the above example. Failure to do so may result in unexpected behaviour.

                1 Reply Last reply Reply Quote 0
                • undefined
                  Nemesis1782 @Phaedrux
                  last edited by Nemesis1782 4 Sept 2020, 10:40 9 Apr 2020, 10:38

                  @Phaedrux I'm sorry I tried using the configurator and it does not work correctly!

                  When choosing RRF3+ I get the following config for the endstops: M574 X1 S0 P"!zstop" ; configure active-low endstop for low end on X via pin !zstop

                  This does not work because S0 is no longer supported for RRF3+. It should' vv e been: M574 X1 S1 P"!zstop" ; configure active-low endstop for low end on X via pin !zstop

                  Also it sets: M667 S1 ; select CoreXY mode
                  Which according to documentation should be (for RRF3): M667 K1 ; select CoreXY mode

                  I understand you'd like people to use the tool provided. However atm it provides more issues then it solves atm.

                  1 Reply Last reply Reply Quote 1
                  • undefined
                    Nemesis1782
                    last edited by 9 Apr 2020, 12:01

                    I got the motors working correct now.

                    I still do have one confusing thing in the config and that has to do with assigning the drivers.
                    My physical connections: X is on 0 (Normally used for Z), Y is on 1, Z is on 2 (Normally used for X) [I did this because I will be using 3 and 4 for Z as well and it makes more sense having the Zs in order]

                    The working config is: M584 X2 Y1 Z0 E3:4; set drive mapping (With this config I would assume X is on the third driver however it isn't! It is on the first...)

                    According to the documentation: M584: Set drive mapping
                    Parameters

                    Xnnn Driver number(s) for X motor(s)
                    Ynnn Driver number(s) for Y motor(s)
                    Znnn Driver number(s) for Z motor(s)

                    So why doesn't it work when I say: M584 X0 Y1 Z2 E3:4; If I do this it treats the Z motor on driver 2 as the X, can anyone confirm if this is a bug?

                    @Phaedrux The Configuration tool generates old type config when selectin RRF3+. Specific issues I had:

                    • (generic issue) you select inversion when selecting the endstop for the axis and you select if it is NC or NO in the next menu. This is redundant and confusing.
                    • M574 Command sets S0 when selecting a NO endswitch type. This is incompatible/depricated on RRF3
                    • M667(669) Command when on RRF3 it should set M669 K1 instead of M667 S1
                    undefined 1 Reply Last reply 9 Apr 2020, 13:16 Reply Quote 1
                    • undefined
                      droftarts administrators @Nemesis1782
                      last edited by droftarts 4 Sept 2020, 13:28 9 Apr 2020, 13:16

                      @Nemesis1782 i explained this before, but without the driver numbers. The board has the drivers physically labelled on the PCB as:
                      ZA/ZB, Y, X, E0, E1
                      Driver numbers associated with these are:
                      2, 1, 0, 3, 4
                      In older firmware, these were automatically assigned. With RRF3, there are no default assignments, but the physical order of the drivers, and their assigned number, persists.

                      See https://duet3d.dozuki.com/Wiki/Choosing_and_connecting_stepper_motors#Section_Stepper_Driver_Numbering

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      undefined 1 Reply Last reply 9 Apr 2020, 14:00 Reply Quote 0
                      • undefined
                        droftarts administrators
                        last edited by 9 Apr 2020, 13:19

                        @chrishamm See above. Please check endstop S parameter assignments when NO selected with RRF3 in the config tool.

                        And use of M667/M669.

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Nemesis1782 @droftarts
                          last edited by Nemesis1782 4 Sept 2020, 14:02 9 Apr 2020, 14:00

                          @droftarts Ah, then I misunderstood what you said. My apologies. Yes I see the documentation and even though I already this it took you pointing it out for me to comprehend 😛 So thnx for the patience and pointing it out so clearly 🙂

                          I just made the assumption that the drives were numberred 0 to 4 in a (for me) logical manner.

                          So out of curiosity, why are the steppers numberred this way. There must be a logical reason behind it I'm not seeing.

                          I would like to mark the issue resolved since my config is correct (how do I do that?) and it works as expected. My initial test show that 100mm move in either X or Y gets a good result (measured with a precision of 0.1 mm for now)

                          @droftarts @Phaedrux thnx for your input and patience 🙂

                          undefined 1 Reply Last reply 9 Apr 2020, 14:42 Reply Quote 0
                          • undefined
                            droftarts administrators @Nemesis1782
                            last edited by 9 Apr 2020, 14:42

                            @Nemesis1782 said in CoreXY neither X nor Y moving:

                            So out of curiosity, why are the steppers numberred this way. There must be a logical reason behind it I'm not seeing.

                            I’m really not sure! The earliest Duets v0.6 used the same order but with only one extruder, but earlier electronics like the Melzi and Sanguinololu didn’t. So I’m not sure where it came from. Maybe @T3P3Tony or @dc42 knows?

                            Ian

                            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              droftarts administrators
                              last edited by 9 Apr 2020, 15:22

                              Thinking about it, it may be due to heat dissipation. The assumption is that the the X and Y driver would work hardest, so having the most copper around them makes sense, so put them in the middle.

                              Ian

                              Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                              undefined 1 Reply Last reply 10 Apr 2020, 06:29 Reply Quote 0
                              • undefined
                                Nemesis1782 @droftarts
                                last edited by 10 Apr 2020, 06:29

                                @droftarts Ah yeah that would actually make sense. In that case I might actually move the assignments back since my X and Y motors are NEMA23's which will run at 1500mA. Can anyone confirm this is the case?

                                undefined 1 Reply Last reply 10 Apr 2020, 08:41 Reply Quote 0
                                • undefined
                                  dc42 administrators @Nemesis1782
                                  last edited by 10 Apr 2020, 08:41

                                  @Nemesis1782 said in CoreXY neither X nor Y moving:

                                  @droftarts Ah yeah that would actually make sense. In that case I might actually move the assignments back since my X and Y motors are NEMA23's which will run at 1500mA. Can anyone confirm this is the case?

                                  At 1500mA you don't need to worry about stepper motor cooling on a Duet WiFi or Ethernet. So use whichever driver assignment is convenient.

                                  I don't know the reason why the drivers were laid out in that order on the original Duet, but @T3P3Tony might.

                                  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

                                  undefined 1 Reply Last reply 12 Apr 2020, 09:45 Reply Quote 0
                                  • undefined
                                    Nemesis1782 @dc42
                                    last edited by 12 Apr 2020, 09:45

                                    @dc42 Thnx for the reply. The Duet is mounted vertically and will be fitted with a low RPM fan. (Is it possible to have the FAN be controlled by Duet and Driver temperatures?)

                                    undefined 1 Reply Last reply 12 Apr 2020, 18:18 Reply Quote 0
                                    • undefined
                                      Phaedrux Moderator @Nemesis1782
                                      last edited by 12 Apr 2020, 18:18

                                      @Nemesis1782 said in CoreXY neither X nor Y moving:

                                      (Is it possible to have the FAN be controlled by Duet and Driver temperatures?)

                                      Yes.

                                      https://duet3d.dozuki.com/Wiki/Mounting_and_cooling_the_board#Section_Cooling

                                      You can tie the fan speed to the MCU temperature as a proxy for the drivers, you can add a seperate thermistor to a driver chip and use that, you simply set a fixed fan speed in your slicer start gcode and then turn it off again in the end gcode, or you can tie it to the hotend/bed temp to turn on when printing.

                                      Z-Bot CoreXY Build | Thingiverse Profile

                                      undefined 1 Reply Last reply 13 Apr 2020, 09:36 Reply Quote 0
                                      • undefined
                                        Nemesis1782 @Phaedrux
                                        last edited by 13 Apr 2020, 09:36

                                        @Phaedrux Thnx mate, The Start/Stop GCode is actually a good idea. However, the RRF3 example is exactly what I want!

                                        It would be nice if you could set variable frequencies though, preferably a frequency curve. That way instead of the fans turning on at a high speed intermittently they would ramp up and down as needed and thus much less annoying.

                                        undefined 1 Reply Last reply 13 Apr 2020, 10:46 Reply Quote 0
                                        • undefined
                                          deckingman @Nemesis1782
                                          last edited by deckingman 13 Apr 2020, 10:46

                                          @Nemesis1782 said in CoreXY neither X nor Y moving:

                                          It would be nice if you could set variable frequencies though, preferably a frequency curve. That way instead of the fans turning on at a high speed intermittently they would ramp up and down as needed and thus much less annoying.

                                          That can be already be done. Instead of setting a fixed temperature you specify a range. For example, you could use something like M106 Pn Snnn T50:80 Hn. This would start the fan turning when the temperature reached 50 deg C, ramping up proportionally to full speed at 80 deg C. You may find that at temperatures close to 50, the fan might make an annoying "buzzing" sound when PWM is at a low value. If this is the case then you can use at "L" parameter to set a minimum speed. i.e you could have say M106 Pn Snnn L125 T50:80 Hn. In this example The fan would be completely off at below 50 deg C. At 50 deg it would start to run at half speed and would stay at half speed until the temperature reached mid way between 50 and 80 (so 65) and from 65 to 80 it would ramp up from half speed to full speed.

                                          You can also use the "X" parameter to set the maximum speed, the "B" parameter to "blip" the fan. There isn't much that you can't do. https://duet3d.dozuki.com/Wiki/Gcode#Section_M106_Fan_On

                                          Edit. But you can only do that when there is an actual temperature which can be read. The MCU and driver temperatures are simply digital "flags" set when a certain value is exceeded.

                                          Ian
                                          https://somei3deas.wordpress.com/
                                          https://www.youtube.com/@deckingman

                                          undefined 1 Reply Last reply 13 Apr 2020, 11:08 Reply Quote 1
                                          15 out of 28
                                          • First post
                                            15/28
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA