Welcome! Log In Create A New Profile

Advanced

MAX endtop setting of H-bot

Posted by dwonh 
MAX endtop setting of H-bot
July 29, 2015 06:14AM
Hello,
I got a issue in implementing Y-MAX endstop on my H-bot printer. (pls see attached picture)

Current physical configuration has Y-endstop on top left corner, where should be Y-MAX position.
I tried to set up as Y-MAX, but to fail with all efforts.

With M119 command, I confirmed Y-MAX endstop triggered correctly.
If I set Y_HOME_DIR value to 1 for setting it as Y_MAX, printer moves head to opposite direction of Y endstop.
Changing INVERT_Y_DIR for this will cause unexpected movement, because X & Y are correlated in H-bot mechanism.

What am I missing here?

********************************************************************************************************

// Disable max endstops for compatibility with endstop checking routine
#if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
// #define DISABLE_MAX_ENDSTOPS
#endif

// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders

// Disables axis when it's not being used.
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false // For all extruders
#define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled

#define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
#define INVERT_Y_DIR true // for Mendel set to true, for Orca set to false
#define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
#define INVERT_E0_DIR true // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
#define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false

// ENDSTOP SETTINGS:
// Sets direction of endstops when homing; 1=MAX, -1=MIN
#define X_HOME_DIR -1
#define Y_HOME_DIR 1
#define Z_HOME_DIR -1

#define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS.
#define max_software_endstops true // If true, axis won't move to coordinates greater than the defined lengths below.

// Travel limits after homing
#define X_MAX_POS 150
#define X_MIN_POS 0
#define Y_MAX_POS 150
#define Y_MIN_POS 0
#define Z_MAX_POS 140
#define Z_MIN_POS 0
Attachments:
open | download - xy-cartesian-plane-v2.JPG (64.7 KB)
Re: MAX endtop setting of H-bot
July 29, 2015 07:35PM
I had the same problems trying to set up my max endstops on hbot, these are the settings I changed to fix it (quoting RepRot's helpful post in this thread (http://forums.reprap.org/read.php?397,395289,395289):

Quote
RepRot
I have all the endstops enabled with my Openbeam coreXY.

From what I can remember....

Apart from the settings in Configuration.h e.g.
Line 337 - have the following inactive e.g //#define DISABLE_MAX_ENDSTOPS
Line 338 - have the following inactive e.g //#define DISABLE_MAX_ENDSTOPS

Line 375 - have the following set e.g #define X MAX_POS 200
Line 376 - have the following set e.g #define X MIN_POS 200
Line 377 - have the following set e.g #define Y MAX_POS 200
Line 378 - have the following set e.g #define Y MIN_POS 200
Line 379 - have the following set e.g #define Z MAX_POS 200
Line 380 - have the following set e.g #define Y MIN_POS 200

You need to check in Configuration_adv.h
Line 90 - have the following inactive e.g.. //#define ENDSTOP_ONLY_FOR_HOMING
Line 312 - you may wish to have this active if printing from SD cards e.g. #define ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLE (Need to enable from LCD to stop printing if wanted for every time you go to print something).
Re: MAX endtop setting of H-bot
July 29, 2015 08:44PM
Actually, I saw it while I'm googling.

I don't understand why MAX_POSs and MIN_POSs have same value.
I did same configuration except that and SD stuff.
Re: MAX endtop setting of H-bot
July 29, 2015 08:47PM
I have no clue why setting the Max and Min to the same value does the trick, but it did it for me. I'd recommend giving it a try.
Re: MAX endtop setting of H-bot
July 29, 2015 09:23PM
I did try, but printer acts strangely.

It moves a little at the current position and stops.

Do you still have that configuration now?
Re: MAX endtop setting of H-bot
July 29, 2015 09:50PM
I had that issue, I believe that I did this to fix it:

#define X_MAX_POS 203
#define X_MIN_POS -3
#define Y_MAX_POS 203
#define Y_MIN_POS -3
#define Z_MAX_POS 180
#define Z_MIN_POS 0

I can drag up my config.h file if you want

Edited 1 time(s). Last edit at 07/29/2015 09:50PM by 1nxtmonster.
Re: MAX endtop setting of H-bot
July 29, 2015 10:04PM
I don't think changing MAX_POS & MIN_POS value will solve the problem.

My problem is that print head moves opposite direction while Y homing, and it can not be solved by changing any value in configuration.h.
Because movement of print head in Hbot(or CoreXY) is not just by one motor like conventional cartesian system.
If I change, for example, INVERT_Y_DIR value, printer will not act as expected. (it will move diagonal instead of moving along Y axis)
Re: MAX endtop setting of H-bot
July 29, 2015 11:10PM
I forget exactly what I changed to resolve it (sorry!) but I will attach my configuration.h file and you can look through it if you want.

Configurationcopy.h
Re: MAX endtop setting of H-bot
July 29, 2015 11:47PM
Thanks for sharing.

I diff yours with mine, I could not see any particular changes.

I guess your codes outdated one, Which version do you use? (1.0.2 is the latest release)

I'm still frustrating.
Re: MAX endtop setting of H-bot
July 29, 2015 11:52PM
Wow, of course, how could I have forgotten. You need the development version for it to work. Download it from the marlin github.
Re: MAX endtop setting of H-bot
July 30, 2015 01:39AM
Quote
1nxtmonster
Wow, of course, how could I have forgotten. You need the development version for it to work. Download it from the marlin github.

Does this apply for any corexy setup? I have been having some issues with trying to get my xy motion working using RAMPS/Marlin and it could be because I didn't download the development version.
Re: MAX endtop setting of H-bot
July 30, 2015 05:14AM
Unfortunately, it doesn't work either.

Can I see photo of your printer? Where do you have endstops and where is your home position?
Re: MAX endtop setting of H-bot
August 04, 2015 01:47PM
Yeah sure the printer's home is at 0,200 and here is a picture of my endstops.
Attachments:
open | download - 20150730_081158.jpg (183.7 KB)
Re: MAX endtop setting of H-bot
August 04, 2015 05:53PM
This may or may not help you because mine was a coreXY

[forums.reprap.org]

-Greg
Re: MAX endtop setting of H-bot
August 05, 2015 03:35AM
In reference to the settings ... this was part of other communication to other settings .. need to read the full posting.

You need to set the XYZ min and Max settings as required e.g. not as below.

Be aware that the X and Y Min POS value may need to be set as a negative value and the XY POS max to a higher value to the print area to stop limit switches being activated by switch bounce.



Line 375 - have the following set e.g #define X MAX_POS 200
Line 376 - have the following set e.g #define X MIN_POS 200
Line 377 - have the following set e.g #define Y MAX_POS 200
Line 378 - have the following set e.g #define Y MIN_POS 200
Line 379 - have the following set e.g #define Z MAX_POS 200
Line 380 - have the following set e.g #define Y MIN_POS 200

Cheers
Sorry, only registered users may post in this forum.

Click here to login