How to connect the extruder stepping motor as the E axis?

Moderators: TomKerekes, dynomotion

Post Reply
yethsts
Posts: 28
Joined: Sat Jul 25, 2020 11:17 pm

How to connect the extruder stepping motor as the E axis?

Post by yethsts » Tue Aug 18, 2020 12:32 am

I know in the system definition the A axis rotaes about the X Axis, the B axis rotates about the Y axis, and the C axis rotates about the Z axis. And U, V, W axises are the second axis parallel to X,Y,Z. And I also know in g code such as "G1 X90.6 Y13.8 E22.4" the "E22.4" means the extruder step motor will move to 22.4 mm to extrude some filaments. But where can I define the E-axis motor? How do I connect a step motor to the kstep board to make it as the extruder step motor/E-axis motor, that can make the gcode interpreter know this motor is just the extruder step motor in code like "G1 X90.6 Y13.8 E22.4" ? Thank you very much.

Yours,
Huang
08-17-2020

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: How to connect the extruder stepping motor as the E axis?

Post by TomKerekes » Tue Aug 18, 2020 12:51 am

Hi Huang,

There isn't an option for configuring an E axis. You will need to change the E word to a U word either by changing your post processor or by writing a program to modify the GCode. We used Craftware’s Slicer and there wasn't an option to change the post processor so we wrote a program to change E to U and also change some MCodes. The code and source is here in the wiki.

The Trajectory Planner will ignore U distance with regard to calculating feedrate unless its velocity and acceleration limits are exceeded, or if there is only UV motion without any XYZABC motion, in that case the feedrate will be based only on the UV motion.

HTH
Regards,

Tom Kerekes
Dynomotion, Inc.

yethsts
Posts: 28
Joined: Sat Jul 25, 2020 11:17 pm

Re: How to connect the extruder stepping motor as the E axis?

Post by yethsts » Tue Aug 18, 2020 4:23 pm

In the past I thought U and V are the slave channel motor of x and y axis direction, which will follow the motion of master channel motor automatically. But now maybe I was wrong.But how can I connect and define a motor as the U,or V, W axis? For the example, the function "DefineCoordSystem(0,1,3,-1)" can only define the channel numbers x,y,z, and A axis. How can I define the channel numbers of other B, C, U, V, W axises motors in program?

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: How to connect the extruder stepping motor as the E axis?

Post by TomKerekes » Tue Aug 18, 2020 4:45 pm

Hi Huang,

Use:

Code: Select all

void DefineCoordSystem8(int axisx, int axisy, int axisz, int axisa, int axisb, int axisc, int axisu, int axisv); // define axis chan numbers to use as x,y,z,a,b,c,u,v (set -1 to disable)
Regards,

Tom Kerekes
Dynomotion, Inc.

yethsts
Posts: 28
Joined: Sat Jul 25, 2020 11:17 pm

Re: How to connect the extruder stepping motor as the E axis?

Post by yethsts » Tue Aug 18, 2020 5:52 pm

I see. Thank you very much.

Yours,
Huang Lei

Post Reply