5 axis mill parallel port controlled mill.
11 Apr 2013 23:28 - 11 Apr 2013 23:29 #32578
by BigJohnT
Replied by BigJohnT on topic 5 axis mill parallel port controlled mill.
Debounce is a hal component that can be used in a hal file once loaded
linuxcnc.org/docs/html/man/man9/debounce.9.html
If you have not read the short Basic Hal Tutorial I highly recommend it...
John
linuxcnc.org/docs/html/man/man9/debounce.9.html
If you have not read the short Basic Hal Tutorial I highly recommend it...
John
Last edit: 11 Apr 2013 23:29 by BigJohnT.
Please Log in or Create an account to join the conversation.
11 Apr 2013 23:28 - 11 Apr 2013 23:29 #32579
by ArcEye
man debounce
In your hal file you need to
loadrt debounce cfg=N(umber)
addf to base thread
setp debounce.N.delay [delay to use]
net switch-in debounce.N.in input-from-switch
net switch-out debounce.N.out output-to-axis-lim-sw-in
The exact details depend upon your individual setup, but basically all you are doing is interposing debounce between your existing limit connections
regards
Replied by ArcEye on topic 5 axis mill parallel port controlled mill.
Can anyone point me to a thread on how the write a debounce file
man debounce
In your hal file you need to
loadrt debounce cfg=N(umber)
addf to base thread
setp debounce.N.delay [delay to use]
net switch-in debounce.N.in input-from-switch
net switch-out debounce.N.out output-to-axis-lim-sw-in
The exact details depend upon your individual setup, but basically all you are doing is interposing debounce between your existing limit connections
regards
Last edit: 11 Apr 2013 23:29 by ArcEye.
Please Log in or Create an account to join the conversation.
12 Apr 2013 01:27 #32587
by andypugh
No, though here is an attempt. It makes a number of assumptions about your setup.
Paste the following into the custom.hal file (assuming that your INI file references that file in the [HAL] section
Untested, may need some work.
By doing it this way, in the custom.hal file, any later changes by Stepconf won't over-write it. The drawback is having to unlink a bunch of stuff that stepconf links.
Replied by andypugh on topic 5 axis mill parallel port controlled mill.
So if i understand this correctly. I have to create a debounce file specific to my mill. The is not a cookie cutter type file. No one size fits all.
No, though here is an attempt. It makes a number of assumptions about your setup.
Paste the following into the custom.hal file (assuming that your INI file references that file in the [HAL] section
loadrt debounce cfg=3
addf debounce.0 base-thread
setp debounce.0.delay 15
#It is neater to not make these connections in the first place.
unlinkp axis.0.home-sw-in
unlinkp axis.0.neg-lim-sw-in
unlinkp axis.0.pos-lim-sw-in
unlinkp axis.1.home-sw-in
unlinkp axis.1.neg-lim-sw-in
unlinkp axis.1.pos-lim-sw-in
unlinkp axis.2.home-sw-in
unlinkp axis.2.neg-lim-sw-in
unlinkp axis.2.pos-lim-sw-in
net both-home-x <= debounce.0.0.in
net both-home-y <= debounce.0.1.in
net both-home-z <= debounce.0.2.in
net both-home-x-fil <= debounce.0.0.out
net both-home-x-fil => axis.0.home-sw-in
net both-home-x-fil => axis.0.neg-lim-sw-in
net both-home-x-fil => axis.0.pos-lim-sw-in
net both-home-y-fil <= debounce.0.1.out
net both-home-y-fil => axis.1.home-sw-in
net both-home-y-fil => axis.1.neg-lim-sw-in
net both-home-y-fil => axis.1.pos-lim-sw-in
net both-home-z-fil <= debounce.0.2.out
net both-home-z-fil => axis.2.home-sw-in
net both-home-z-fil => axis.2.neg-lim-sw-in
net both-home-z-fil => axis.2.pos-lim-sw-in
Untested, may need some work.
By doing it this way, in the custom.hal file, any later changes by Stepconf won't over-write it. The drawback is having to unlink a bunch of stuff that stepconf links.
Please Log in or Create an account to join the conversation.
Time to create page: 0.137 seconds