Welcome! Log In Create A New Profile

Advanced

Commands to control motor connected to E1

Posted by luddepower 
Commands to control motor connected to E1
May 24, 2021 08:38AM
Hello guys,

I am in dire need of some help. For my automation engineer studys final work I choosed to build a 3d printed MOVEO robotic arm. Everything is working great besides the motor connected to "E1" on my ramps 1.4. I have tested connecting the motor to X axis, works great - so I am thinking it has to been firmware related. I have been searching through the code like a maniac trying to find something but without success..

The command I been trying to use to control the E1 is "G0 T", not working. I have a presentation for my class in a week and wish to get a simple pick and place function going untill that so I really appreciate any help I can get.

The code that I use can be found here:
[github.com]

Thanks!!

Edited 1 time(s). Last edit at 05/24/2021 08:40AM by luddepower.
Re: Commands to control motor connected to E1
May 24, 2021 08:54AM
E0, E1 etc are not axis, they are tools, as such they work a little differently
T0 then G1 E{distance} etc moves E0 (T0 is the default)
T1 then G1 E{distance} etc moves E1

Edited 2 time(s). Last edit at 05/24/2021 09:05AM by Dust.
Re: Commands to control motor connected to E1
May 24, 2021 09:00AM
Marlin only support 3 axis, + 8 tools, and a bunch of tricks like multiple steppers moving per axis.
6 axis marlin is coming, but is not here yet [github.com]

Edited 1 time(s). Last edit at 05/24/2021 09:08AM by Dust.
Re: Commands to control motor connected to E1
May 24, 2021 09:06AM
Thanks a ton Dust! I think you're on the right track.

What are the commands to switch between tools? I am trying with:
G0 T0 E(X)
G0 T1 E(X)
G1 T0 E(X)
G1 T1 E(X)

Nothing is working, or it is working but only moving motor connected to E0.

I am using pronterface to test this right now and when I try to write only "T1" I get "Invalid extruder".
Re: Commands to control motor connected to E1
May 24, 2021 09:08AM
Just "T0 or "T1" etc

It is its own gcode
no proceeding G code

ie T0 switch to tool 0
G1 E(X) move Tool 0

T1 switch to tool 1
G1 E(X) move Tool 1

Edited 4 time(s). Last edit at 05/24/2021 09:13AM by Dust.
Re: Commands to control motor connected to E1
May 24, 2021 09:18AM
I see, I appreuciate this alot. Do you have any idea on why I get "Invalid extruder" when entering "T1"?



Edited 1 time(s). Last edit at 05/24/2021 09:22AM by luddepower.
Re: Commands to control motor connected to E1
May 24, 2021 09:29AM
In Configuration.h

#define EXTRUDERS 1

In this case 1 extruder you probably want 2

Edited 3 time(s). Last edit at 05/24/2021 09:38AM by Dust.
Re: Commands to control motor connected to E1
May 24, 2021 09:47AM
Thank you Dust, I tried but getting error on:


Any thoughts? I am lost here..
Re: Commands to control motor connected to E1
May 24, 2021 10:05AM
in boards.h is

#define BOARD_RAMPS_13_EFB      33   // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)
#define BOARD_RAMPS_13_EEB      34   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
#define BOARD_RAMPS_13_EFF      35   // RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)
#define BOARD_RAMPS_13_EEF      36   // RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Fan)

The Configuration.h should use these in the #define MOTHERBOARD line, not a number.

Ie currently it says
#define MOTHERBOARD 33
when it should be
#define MOTHERBOARD BOARD_RAMPS_13_EFB


But for you, you need
#define MOTHERBOARD  BOARD_RAMPS_13_EEB

This reconfigures the ramps to have two extruders.

You can also use BOARD_RAMPS_13_EEF if you prefer

Edited 2 time(s). Last edit at 05/24/2021 10:08AM by Dust.
Re: Commands to control motor connected to E1
May 24, 2021 10:18AM
Bingo! You are the REAL MVP Dust!!

Thank you so much, working smiling smiley))
Re: Commands to control motor connected to E1
May 29, 2021 09:10AM
Gonna borrow this thread for another issue I am having. I am trying to control my servos. Manually entering M280 P0 S0, M280 P0 S150 will move the servo. But when I try to enter this in a gcode text file, its not doing anything to the servos. The control of the other motors work in the g-code file. Any ideas why this is happening?
Sorry, only registered users may post in this forum.

Click here to login