Wiring Linuxcnc to stepper drivers

More
10 years 5 months ago - 10 years 5 months ago #74607 by Wesolowski
Yeap, I would like to avoid this kind of false stops at a cost of rather not having the limits installed...

Anyway, thank you for your understanding, I am just trying to name problems and understand things clear enough to be able to deal with them and this is far from straightforward because my electronics skills are really low.

So I didn't think that swich can fool the machine... For me it was 0-1 kind of trigger.

You've mentioned HAL and seems that there is one thing more which is usually done by a break-out boards... It is understanding the signals sent by theese bouncing triggers as 0-1 signals which is obviously not happening when we wire the microswitches directly to the pins... So cool that it can be done via HAL but hell how? Now again I have something to read...

To make things simple, can you guide me through the HAL thing in this installation?
So far I started reading about how it works but I feel a bit uneasy that I may encounter some problems I won't b able to solve myself.

# 30 mins later... still reading about HAL basics... Seems that you basically could not write it easier... Anyway I still miss my knowledge but I'll do my best to understand what needs to be done...

#40 mins later=>> found what I need to add => linuxcnc.org/docs/html/hal/rtcomps.html#_debounce
I love LinuxCNC forums ;-)
Last edit: 10 years 5 months ago by Wesolowski.

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #74614 by andypugh
This config file has a debounce on the X limit, and shows an example of how to do it.

github.com/LinuxCNC/linuxcnc/blob/2957cc...luto/lathe-pluto.hal

Just look at the lines with "debounce" in them.
The following user(s) said Thank You: Wesolowski

Please Log in or Create an account to join the conversation.

Time to create page: 0.123 seconds
Powered by Kunena Forum