Need help with Ender-6 core xy motor movement
-
-
; homeall.g ; called to home all axes ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Fri Jul 23 2021 13:25:10 GMT-0700 (Pacific Daylight Time) G91 ; relative positioning G1 H2 Z5 F12000 ; lift Z relative to current position G1 H1 X255 Y255 F900 ; move quickly to X or Y endstop and stop there (first pass) G1 H1 X255 ; home X axis G1 H1 Y255 ; home Y axis G1 X-5 Y-5 F12000 ; go back a few mm G1 H1 X255 F450 ; move slowly to X axis endstop once more (second pass) G1 H1 Y255 ; then move slowly to Y axis endstop G90 ; absolute positioning G1 X47 Y15 F12000 ; go to first bed probe point and home Z G30 ; home Z by probing the bed ; Uncomment the following lines to lift Z after probing ;G91 ; relative positioning ;G1 Z5 F200 ; lift Z relative to current position ;G90 ; absolute positioning
Confused , why are you lift the tool head , homing twice , lower the tool head and homing again .
M913 X50 Y50 Z50 ; set X Y Z motors to 50% of their normal current G91 ; relative positioning G1 H2 Z5 F6000 ; lift Z relative to current position G1 H1 X 330 F3000 ; move quickly to X axis endstop and stop there (first pass) G1 H1 Y 330 F3000 ; move quickly to Y axis endstop and stop there (first pass) ;G1 H2 Z-5 F6000 ; lower Z again G90 ; absolute positioning M913 X100 Y100 Z100 ;
This is my X Y part of homeall.g
-
Peter,
This is all from the RRF Config Tool. https://configtool.reprapfirmware.orgI have not written any of the code.
I'm guessing that is for the EZAble Z-probe. Similar to the Prusa z-probe.
-
@davidewen Homeall.g is crazy but it still should home in the right direction .
Have you tried swapping the x , y stepper motors wires and tried the 4 motor possibilities ?
-
I have not swapped wires.
Correct me if I'm wrong, but isn't changing motor direction the same as changing the wires? So that would be redundant. -
@davidewen True , but you are also changing X , Y to Y , X
I don't mean change the wires of each motor , but swap left to right motor. -
Again, that would give me the same results, but with added effort of changing code.
I've done a little more testing. This time by phyiscal force.
I manually moved the X / Y axis and watched the motor directions.X - both motors move in the same direction
Y - motors move opposite of each otherSo, somehow I need to figure out how to make Duet do the same.
-
@davidewen Yes , mine is in the same direction on both motors .
But you still may need to swap motors . -
Check out these two posts they might help you get things straightened out.
https://forum.duet3d.com/topic/14971/vcore-pro-core-xy-the-x-and-y-axis-home-issue/4
https://forum.duet3d.com/topic/12676/mirrored-x-axis/9
The gist of it is to choose where the front of your printer is when looking at it straight on. 0,0 is the front left corner. X+ moves to the right, X- moved to the left, Y+ moves to the back, Y- moves to the front. That is the way it should be. If it's not like that yet, don't worry, we will make it that way. this is to match the slicer and CAD coordinate systems.
Then your endstop location is fixed either at the low end or high end of travel. That determines your M574 commands.
Then your homing directions will be positive or negative o move the head towards the endstops.
Now with all that fixed you can do the motor direction test in the corexy setup guide to determine what to do next.
-
@phaedrux
Thank you for your help.
Sorry for my delayed response. I was on vacation last week.Ender 6 physical setup
X & Y motors @ rear
X & Y stops @ maxNOTE: I had to swap X & Y at the Duet board to get the correct movement.
I have the X & Y axis moving correctly per your referenced link
https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCoreXYPrinterX homes correctly.
Y homes correctly.Thanks again!
David
-
Just to double check, try printing some text to see if anything is mirrored.
-
@phaedrux
I'm not to the point of printing yet. I don't even know how to load a file yet.I'm still trying to figure out the rest of the config.
I'm currently working on the Extruder.
I installed a Bondtech extruder. So far it's working, but not loading filament all the way, so I must have some parameters incorrectly set.So far I have the X, Y & Z axis moving in the correct directions and the endstops working.
The EZAble seems to be around 15mm off to the + side even though I have it set to +2mm.
-
First print completed.
I printed text to confirm no mirroring was happening.I had 2 problems.
1: 1st layer was crushed against the build plate. I had to babystep by 2.8 mm to get filament to come out. Homing Z works everytime. I used Cura to slice.2: print was horribly slow. It took 38m 27s to print "Duet 3 mini 5+" @ 0.6mm thickness.
I'm using mesh compensation, and it maps out the surface.
Printer is capable of moving 200mm/s.
Any suggestions for solving these 2 problems?
-
@davidewen said in Need help with Ender-6 core xy motor movement:
1: 1st layer was crushed against the build plate. I had to babystep by 2.8 mm to get filament to come out. Homing Z works everytime.
Calibrate your probe offsets.
@davidewen said in Need help with Ender-6 core xy motor movement:
2: print was horribly slow.
Check your cura start gcode section for any speed commands that may be there overriding your config.g settings. Also make sure you're set to use RepRap Gcode flavour.
Post a sliced gcode file here if you're unsure.
-
Thanks. I'll calibrate the probe offsets.
I'm not sure about the RepRap flavor.
Here's the gcode that I ran.
Duet 3 mini 5.gcode -
;FLAVOR:RepRap ;TIME:388 ;Filament used: 0.145903m ;Layer height: 0.2 ;MINX:67.247 ;MINY:108.91 ;MINZ:0.2 ;MAXX:182.753 ;MAXY:141.085 ;MAXZ:0.8 ;Generated with Cura_SteamEngine 4.10.0 T0 M190 S50 M104 S200 M109 S200 M82 ;absolute extrusion mode M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk M220 S100 ;Reset Feedrate M221 S100 ;Reset Flowrate
You're ok for reprap flavor.
And as expected, these lines are causing the speeds to be slow.
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk
Delete them from your start gcode.
-
I removed the starting gcode info and the print was much faster.
Thanks for that!Regarding the probe calibration.
I had run that previously.
But, I ran it again anyway.
Even after running it again, I had to babystep +0.6mm to get filament to flow.Is there someway to make the baby steps permanent?
I have to adjust for every print. -
@davidewen said in Need help with Ender-6 core xy motor movement:
Is there someway to make the baby steps permanent?
If you constantly need to baby step up 0.6mm then you can simply modify your G31 Z value to take that into account. That's how you make it permanent.
It could also be that you are homing Z at a different location than where you are measuring the offset. Ideally they should be the same location at the center of the bed.
-
I have the config.g file G31 Z value set, but I still have to adjust each print.
I'm still printing the test "DUET" text. Same gcode, just rerunning it.
-
@davidewen said in Need help with Ender-6 core xy motor movement:
I have the config.g file G31 Z value set, but I still have to adjust each print.
I understand, but if you're consistently needing to babystep, then you can modify your measured G31 Z with that baby stepping amount to make it permanent. Consider it a fine tuning of your G31 Z offset.
If you have G31 Z2 and you have to add +0.6mm to get a good first layer because your nozzle is too close after homing with the probe you can take 2mm - 0.6mm = 1.4mm and change to G31 Z1.4