adding axis stop/homing switches to Z and X January 15, 2014 05:46AM |
Registered: 10 years ago Posts: 578 |
Re: adding axis stop/homing switches to Z and X January 15, 2014 06:23AM |
Registered: 10 years ago Posts: 314 |
Re: adding axis stop/homing switches to Z and X January 15, 2014 06:56AM |
Registered: 10 years ago Posts: 256 |
Re: adding axis stop/homing switches to Z and X January 15, 2014 07:28AM |
Registered: 10 years ago Posts: 29 |
Re: adding axis stop/homing switches to Z and X January 24, 2014 10:07AM |
Registered: 10 years ago Posts: 578 |
Re: adding axis stop/homing switches to Z and X January 24, 2014 11:50AM |
Registered: 10 years ago Posts: 2,472 |
Quote
tracyb
Can I make another suggestion to this as well. I always home my X and Y when I start up the machine while the bed starts to heat up. But because of my computer/machine setup I sometimes get confused as to positive or negative X and Y movements. (This is because I am sitting behind the machine). This means that sometimes I tell the machine to move off the end of the table - making it try to go to -x100. Surely the firmware can stop this from happening? In my other CNC machines if you give it a command off the bed it pops up an error saying movement is out of bounds or it will move to the limit and stop. It would be better if the reprap would do something to stop it running the motors against the endstops.
Re: adding axis stop/homing switches to Z and X January 27, 2014 07:17AM |
Registered: 10 years ago Posts: 29 |
Re: adding axis stop/homing switches to Z and X January 28, 2014 08:26AM |
Registered: 10 years ago Posts: 103 |
Quote
rayhicks
I'd like to be able to use a microswitch on the X axis for homing, rather than using the IR sensor - would this require firmware changes, or is there a g-code that would allow this behaviour? Similarly, for Z I'd like a switch that would stop the axis dropping if I stupidly hit the wrong button and tell it to move -100 or -10 when I meant it to go up this would be more of an emergency stop than a homing switch I guess.
Ray
Re: adding axis stop/homing switches to Z and X January 28, 2014 08:28AM |
Registered: 10 years ago Posts: 103 |
Quote
tracyb
Can I make another suggestion to this as well. I always home my X and Y when I start up the machine while the bed starts to heat up. But because of my computer/machine setup I sometimes get confused as to positive or negative X and Y movements. (This is because I am sitting behind the machine). This means that sometimes I tell the machine to move off the end of the table - making it try to go to -x100. Surely the firmware can stop this from happening? In my other CNC machines if you give it a command off the bed it pops up an error saying movement is out of bounds or it will move to the limit and stop. It would be better if the reprap would do something to stop it running the motors against the endstops.
Re: adding axis stop/homing switches to Z and X January 28, 2014 08:37AM |
Registered: 10 years ago Posts: 578 |
Quote
arnaud31
Quote
rayhicks
I'd like to be able to use a microswitch on the X axis for homing, rather than using the IR sensor - would this require firmware changes, or is there a g-code that would allow this behaviour? Similarly, for Z I'd like a switch that would stop the axis dropping if I stupidly hit the wrong button and tell it to move -100 or -10 when I meant it to go up this would be more of an emergency stop than a homing switch I guess.
Ray
what is wrong with the current way X is homed?
Re: adding axis stop/homing switches to Z and X January 28, 2014 09:08AM |
Registered: 10 years ago Posts: 29 |
Quote
arnaud31
Quote
tracyb
Can I make another suggestion to this as well. I always home my X and Y when I start up the machine while the bed starts to heat up. But because of my computer/machine setup I sometimes get confused as to positive or negative X and Y movements. (This is because I am sitting behind the machine). This means that sometimes I tell the machine to move off the end of the table - making it try to go to -x100. Surely the firmware can stop this from happening? In my other CNC machines if you give it a command off the bed it pops up an error saying movement is out of bounds or it will move to the limit and stop. It would be better if the reprap would do something to stop it running the motors against the endstops.
was is wrong with the home all axis button on the GUI?
Re: adding axis stop/homing switches to Z and X January 28, 2014 09:22AM |
Registered: 10 years ago Posts: 103 |
Quote
tracyb
Quote
arnaud31
Quote
tracyb
Can I make another suggestion to this as well. I always home my X and Y when I start up the machine while the bed starts to heat up. But because of my computer/machine setup I sometimes get confused as to positive or negative X and Y movements. (This is because I am sitting behind the machine). This means that sometimes I tell the machine to move off the end of the table - making it try to go to -x100. Surely the firmware can stop this from happening? In my other CNC machines if you give it a command off the bed it pops up an error saying movement is out of bounds or it will move to the limit and stop. It would be better if the reprap would do something to stop it running the motors against the endstops.
was is wrong with the home all axis button on the GUI?
Your post implies you home by hand. Hence my question on not using the home button!
Again, just conscious that to the untrained eye there seem to be yet another issue when really there isn't.
Re: adding axis stop/homing switches to Z and X January 28, 2014 10:34AM |
Registered: 10 years ago Posts: 14,672 |
Quote
tracyb
I have no problem with the homing buttons - but after the machine is homed the firmware should not allow you to perform a movement that would drive the motor out of limits. For example if your x is at 80mm a button press to decrease x by 100 should take it back to the zero and no further. It could be added into the firmware and configured for the bed size of your machine.
Re: adding axis stop/homing switches to Z and X January 28, 2014 10:43AM |
Registered: 10 years ago Posts: 578 |
Quote
dc42
Quote
tracyb
I have no problem with the homing buttons - but after the machine is homed the firmware should not allow you to perform a movement that would drive the motor out of limits. For example if your x is at 80mm a button press to decrease x by 100 should take it back to the zero and no further. It could be added into the firmware and configured for the bed size of your machine.
I'll take a look at this next time I work on the firmware. The M208 command to set the axis lengths is already supported. Looks like it just needs some flags to remember whether the axes have been homed, and to use the stored axis lengths as limits if so.
Re: adding axis stop/homing switches to Z and X January 28, 2014 10:54AM |
Registered: 10 years ago Posts: 14,672 |
Re: adding axis stop/homing switches to Z and X January 28, 2014 12:09PM |
Registered: 10 years ago Posts: 578 |
Re: adding axis stop/homing switches to Z and X January 28, 2014 07:07PM |
Registered: 10 years ago Posts: 14,672 |
Re: adding axis stop/homing switches to Z and X January 29, 2014 03:57AM |
Registered: 10 years ago Posts: 256 |
Re: adding axis stop/homing switches to Z and X January 29, 2014 08:36AM |
Registered: 10 years ago Posts: 2,472 |
Quote
dc42
I've implemented this in the firmware build at [dl.dropboxusercontent.com]. I also made doing a G92 command set the appropriate "axis has been homed" flags.
I'm not certain that enforcing Z=0 as the minimum height is a good idea, because it means that after homing Z, if you put the head over the bed at a point where the bed is lower, you can't drop the head any more unless you do e.g. a G92 Z1 first. Maybe I should allow Z to go down to e.g. -1mm?