Welcome! Log In Create A New Profile

Advanced

Two Z axis stepper motors

Posted by Ondrej 
Two Z axis stepper motors
September 14, 2023 03:56PM
Hello,

I have marlin 2.1.2.1 and Iam building my own 3d printer. I want to controll dual Z axis stepper motors with two drivers. Iam using arduino with ramps 1.6. The second Z2 driver is pluged into E1 on the board. According to what I found I should change in the configuration_adv.h NUM_Z_STEPPER_DRIVERS, but I havent found anything like this in configuration_adv.h. Also I was trying to find something that could possibly be the right configuration change, but I havent found anything. Thank you in advance
Re: Two Z axis stepper motors
September 14, 2023 08:51PM
Your looking at old out of date information.

Dual axis is now enabled by enabling the appropriate stepper drivers, you don't manfully set NUM_Z_STEPPER_DRIVERS

Eg #define Z2_DRIVER_TYPE A4988

And that is it

Now if you want dual z endstops also you need to configure #define Z_MULTI_ENDSTOPS In Configuration_adv.h

Note you will get this warning "Note: Auto-assigned Z2 STEP/DIR/ENABLE_PINs to unused En_STEP/DIR/ENABLE_PINs. (Define NO_AUTO_ASSIGN_WARNING to suppress this warning.)"
You can either ignore it, or add #define NO_AUTO_ASSIGN_WARNING to suppress the warning

Edited 1 time(s). Last edit at 09/14/2023 08:53PM by Dust.
Sorry, only registered users may post in this forum.

Click here to login