Welcome! Log In Create A New Profile

Advanced

Different step per z axis

Posted by alfadex 
Different step per z axis
May 12, 2024 03:36PM
Hi, i have a difficult question that i have not found any solution yet. I use marln 2.1.2.2 with skr 1.4 turbo.I have 2 different z drivers, with 2 different motors. But i need to change step for Z2(E1) because it move 2 axis with reduction from 20 to 60 teeth, as you can see it is the front motor. Is there any way in firmware or even in eeprom


VDX
Re: Different step per z axis
May 12, 2024 04:14PM
... could be better, when using a bigger/stronger single motor to drive three identical spindles? - then all hassles will vanisch instantly winking smiley

Edited 1 time(s). Last edit at 05/12/2024 04:14PM by VDX.


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: Different step per z axis
May 12, 2024 07:04PM
Marlin cannot do this

All Dual (or more) stepper modes in marlin simply apply the step pulse to multiple stepper drivers instead of one.

Ie Dual steppers requires the same steps/mm

what you want would require a lot more math....


The only way I can see to do this in Marlin is a horrible kluge.

Ie Setup the Z2 as I axis, has all its own parameters.
Then pass your gcode through a script that moves I when ever Z is moved, wont work on displays that say move Z
or two hack marlin to auto move I when Z is moved.. may or may not work with lcd, depends on how the hack implemented. If for eg you added this to the gcode passer, some displays bypass gcode so that wouldn't work on them

Far easier to make all Z the same mechanically

Edited 4 time(s). Last edit at 05/12/2024 08:43PM by Dust.
Re: Different step per z axis
May 19, 2024 05:03AM
thanks gyus for your support. I finally did not manage with marlin and i go to klipper. Klipper is tooo easy to implement this and as far as i can see klipper has more option in general. So just fyi

z motor is the front and has 20 teeth that is moving two pulleys with 60 teeth.So in rotation_distance i did 8/3 = 2.666666666666667 . I don't know if that is corrent but is working perfect without loosing any step !


[stepper_z]
step_pin: P0.22
dir_pin: !P2.11
enable_pin: !P0.21
microsteps: 16
rotation_distance: 2.666666666666667
endstop_pin: P1.27
position_endstop: 0.0
position_max: 300



[stepper_z1]
step_pin: P1.15
dir_pin: !P1.14
enable_pin: !P1.16
microsteps: 16
rotation_distance: 8
endstop_pin: P1.27
# position_endstop: 0.0
# position_max: 300
Sorry, only registered users may post in this forum.

Click here to login