-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add endstop for trigger home position #81
Comments
Do you mean limit switches? The EBB does support digital inputs, but cncserver does not presently (so far as I know) have an API function that can query them. |
Yup, CNCServer currently has no endstop trigger support. Stepper support works by internally assuming relative positions to extrapolate absolutes. Seeing as CNCServer has been built around only machines without these thus far, there's no real concept of it. It likely could be added around the existing API, but it couldn't be supported directly unless we had a specific machine in mind. Taking feedback from serial controller queries is extremely limited in current configurations and likely should be improved, but haven't had the need yet. |
I would say that it would be plausible to add a specific command that would query the state of a digital input, using the EBB (UBW) "I" command. |
A "query" API endpoint seems very reasonable, though a little slow for what would be needed here. A "seek to home" command basically needs to check this after every movement step. I'm going to take a wild guess and say that @EmbeddedMan probably has some kind of firmware update that handles this use case a bit cleaner. |
It is not currently implemented in the firmware, although we are discussing some changes for a major firmware update in the near future. This would be a good one to put on the list-- Move in direction (x,y) until input (z) changes state? |
Yes, doing it in the firmware as a a single command is the only good way to Would you really want to move both axis at once until a single input is It seems like it would be easier to do one axis at a time. There also needs We may also want to have a speed in steps/s that you can optionally specify *Brian On Tue, Aug 30, 2016 at 9:55 PM, Windell Oskay notifications@github.com
|
If it can be specified in an arbitrary direction, then it allows for checking in XY or AB geometry, as well as upper and lower limits, without considering each case in particular. As far as timeouts go... perhaps it would be best to implement this as an "SM" type command, but with an extra parameter indicates the digital input that will be monitored. That way, it would have a built-in timeout (and speed)-- if no limit is detected, it halts at the end of its given travel. |
Windell - yeah, I really like that idea a lot. A modified version of an SM That actually doesn't sound very hard to implement in the firmware *Brian On Tue, Aug 30, 2016 at 10:13 PM, Windell Oskay notifications@github.com
|
Let's move the discussion about firmware implementations to the appropriate place: evil-mad/EggBot#58 For the moment, back to the original question: perhaps we should add an API endpoint for digital input queries? |
nice to see there is a future plan 💃 |
endstop
Hi techninja,
is it possible to add a endstop for cnc machine? or some code to trigger it? I think it's usefull also for robopaint, because I can add there also a #improvement
I already ask brian at schmalzhaus for trigger one or two i/o...
Greetings Christoph
The text was updated successfully, but these errors were encountered: