Welcome! Log In Create A New Profile

Advanced

axes move only one direction in hbot config

Posted by Pekkie85 
axes move only one direction in hbot config
January 11, 2015 09:51AM
hi,

ive developped a neat mechanical design
now i'm configuring marlin to hbot firmware
i simply activated the core xy line, changed lengths axes and printsize, endstops..
however. @ the first try, all axes move in one direction, but not the other.
logically it seems the stepper s fine.. if it moves in one, it should move in both directions as well.
that leaves the firmware.
someone here who wants to exchange emails, make a dropbox or github to figure it out toghether?
its supposed to become a complete 3D printable , foldable 3d printer for students, so pretty low cost...
with the firmware for everyone on github, wich would help the whole h-bot,core xy community a lot.
if anyone cares to help, me and a buttload of other people would be greatful.

Edited 1 time(s). Last edit at 01/11/2015 09:53AM by Pekkie85.
Re: axes move only one direction in hbot config
January 11, 2015 10:34AM
* Verify that the DIR line to the stepper controllers is actually toggling when you change direction (config issue, usually)
* Verify that you have not cross-wired the stepper: ABCD. not ABDC or BACD, otherwise you can get odd results.
* Did you do a clean build of Marlin after the config changes? (no .o files anywhere before the build!)
Re: axes move only one direction in hbot config
January 11, 2015 10:47AM
M119 to check your endstops. I bet that the firmware thinks that they are triggered, hence only moving in one direction.....
Re: axes move only one direction in hbot config
January 11, 2015 11:53AM
*cursing myself* thank you, u rock
>>>m119
SENDING:M119
Reporting endstop status
x_min: TRIGGERED
y_min: TRIGGERED

woeps smiling smiley

Edited 1 time(s). Last edit at 01/11/2015 11:54AM by Pekkie85.
Re: axes move only one direction in hbot config
January 11, 2015 01:15PM
I will send my invoice/bill..... smiling smiley

Edited 1 time(s). Last edit at 01/11/2015 01:15PM by vreihen.
Re: axes move only one direction in hbot config
January 11, 2015 03:20PM
dude, i'll print u a prototype . so, i fixed that , the hbot moves beautifully on x & y,
only, x=y and y=x....
logically, u'd change the x/ymotors from place, or the x/y connectors
but that only reversed the y axle....
ideas?

Edited 2 time(s). Last edit at 01/11/2015 10:25PM by Pekkie85.
Re: axes move only one direction in hbot config
January 11, 2015 06:13PM
For H-BOT, you need to reference the H-BOT equations:

[corexy.com]

dX = ( dA + dB )/2
dY = ( dA - dB )/2

So if you want to 'swap X and Y axes', you need to reverse the DIR of only *one* stepper.

Reversing both steppers will, as you found out, just reverse the direction of the existing axes.

Edit: Remove emoticons.

Edited 1 time(s). Last edit at 01/11/2015 06:13PM by Ezrec.
Re: axes move only one direction in hbot config
January 12, 2015 09:56AM
for the ones looking for the solution
it is as Ezrec says;
one DIR reversal in the firmware or changing the steppers from place, swaps axles 90°
both DIR reversals changes the direction of the existing axles
but..
i kept getting one reversed axle
in the end i changed Both the steppers Poles, and switched them from connector, what i did to the firmware i cannot recall anymore, tried sooo much, there's a big chance it is now as it was as i started ... the point : keep on trying

Edited 1 time(s). Last edit at 01/12/2015 10:09AM by Pekkie85.
Re: axes move only one direction in hbot config
January 12, 2015 08:00PM
if logic takes a vacation i come here
guys,dyk why my z endstop wont let itself be homed 2 max position?
i defined the max endstoppullup and home him to the max pos, away from the hotend,
but when i do that, he doesnt show up in pronterface
do i define him 2 home to Min pos, he re-appears....
Re: axes move only one direction in hbot config
January 14, 2015 05:07PM
can i actually have max endstops in a coryXY config?

"// Disable max endstops for compatibility with endstop checking routine
//#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
// #define DISABLE_MAX_ENDSTOPS
//#endif"
Re: axes move only one direction in hbot config
January 14, 2015 06:32PM
answer for the readers;
appearantly , u can.
"Disable max endstops for compatibility with endstop checking routine"
suggested that max endstops had to be disabled in order to be compatible with the end stop checking routine.
i deduced from " && !" in the"#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)" line that
both values had to be true in order to disable them.
since i did not defined them previously, i did not expect that code to run.
but it did. Disable max endstops was active, and disabled my defined max stops.
i've now uncommented the 4 lines as in the post above, and now my endstops let themselves be programmed the way i intended.
Sorry, only registered users may post in this forum.

Click here to login