Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jogging with keys stops spindle #37

Open
lutorm opened this issue Jan 3, 2016 · 2 comments
Open

Jogging with keys stops spindle #37

lutorm opened this issue Jan 3, 2016 · 2 comments

Comments

@lutorm
Copy link

lutorm commented Jan 3, 2016

It seems the way jogging is implemented is to send a move command when the key is depressed and then a feedhold when it is released. The problem with this is that the feedhold also stops the spindle, so it's impossible to use an edge finder. Using the buttons in the gui do not stop the spindle, but it's a big pain to move with them since you have to click repeatedly.

@chilipeppr
Copy link
Owner

Interesting. I've never heard of anybody doing edge finding with their
spindle turned on. How does that work?

You'd have to ask the Synthetos guys on a way to not have % stop the
spindle. That's not really a ChiliPeppr issue.

One idea would be for you to add a toggle option to the Axes widget if you
fork it. Then let the user toggle off the sending of the feed hold and
buffer wipe. The jogging is done by sending lots of tiny movements, so to a
large degree those movements are close to when you lift your fingers off
the keyboard as long as you aren't sending long moves.

What's interesting is i've been thinking about improving jogging by always
issuing a long 1000mm move and then 100% relying on feed hold / buffer wipe.

You up for forking the widget and trying to see if you can get it to work
without buffer wipe?

On Sun, Jan 3, 2016 at 1:07 PM, lutorm [email protected] wrote:

It seems the way jogging is implemented is to send a move command when the
key is depressed and then a feedhold when it is released The problem with
this is that the feedhold also stops the spindle, so it's impossible to use
an edge finder Using the buttons in the gui do not stop the spindle, but
it's a big pain to move with them since you have to click repeatedly


Reply to this email directly or view it on GitHub
#37.

@lutorm
Copy link
Author

lutorm commented Jan 4, 2016

Using an edge finder requires the spindle to spin, as in
https://youtu.be/f0od-cp_9dg?t=50s

If you issue a bunch of tiny moves, you'd have to rate the commands so
they're consumed at the same rate you're sending them, otherwise they'll
fill up in the serial buffer, right? So if you're jogging at, say,
5000mm/min, you'd need to issue a 1mm move at a rate of 5000Hz. Any lower,
the buffer is starved and the move will stutter, any faster and it will
buffer and then it'll keep moving when you release.

I've never used Javascript so I'm not sure how steep the learning curve for
hacking the widget is.

I have an idea for jogging that I think would work better, but it involves
adding a custom command and a new machine state. Basically, you need to be
able to command the machine in "velocity mode" so that it just keeps going
at the specified velocity in the absence of new commands. That way you'd
only need a new command when the velocity changes, and you cancel the job
by commanding zero velocity. That requires a bunch of changes to TinyG
though. I've fixed a bunch of bugs in TinyG lately, but a change like that
would be a lot more complicated.

On Sun, Jan 3, 2016 at 11:26 AM, John Lauer [email protected]
wrote:

Interesting. I've never heard of anybody doing edge finding with their
spindle turned on. How does that work?

You'd have to ask the Synthetos guys on a way to not have % stop the
spindle. That's not really a ChiliPeppr issue.

One idea would be for you to add a toggle option to the Axes widget if you
fork it. Then let the user toggle off the sending of the feed hold and
buffer wipe. The jogging is done by sending lots of tiny movements, so to a
large degree those movements are close to when you lift your fingers off
the keyboard as long as you aren't sending long moves.

What's interesting is i've been thinking about improving jogging by always
issuing a long 1000mm move and then 100% relying on feed hold / buffer
wipe.

You up for forking the widget and trying to see if you can get it to work
without buffer wipe?

On Sun, Jan 3, 2016 at 1:07 PM, lutorm [email protected] wrote:

It seems the way jogging is implemented is to send a move command when
the
key is depressed and then a feedhold when it is released The problem with
this is that the feedhold also stops the spindle, so it's impossible to
use
an edge finder Using the buttons in the gui do not stop the spindle, but
it's a big pain to move with them since you have to click repeatedly


Reply to this email directly or view it on GitHub
#37.


Reply to this email directly or view it on GitHub
#37 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants