#linuxcnc-devel Logs

Jan 20 2020

#linuxcnc-devel Calendar

02:24 PM Bushman: good news everyone!
02:28 PM Bushman: i was able to make the wireles pendant work
02:28 PM Bushman: turns out most of the hal pins that didn't want to work were denoted as "<something>.x.<something>" while version 2.7 uses "<something>.0.<something>"
02:28 PM Bushman: same for other axes, y/1 z/2, etc
02:28 PM Bushman: qick swap of xyz for 012 fixed most of the functionality
02:28 PM Bushman: even the DRO is working fine :D
02:28 PM jepler: cool I'm glad you got it working!
02:28 PM Bushman: the default DRO is absolute coordinates tho
02:28 PM Bushman: i've changed it to relative but i wonder...
02:28 PM Bushman: can i somehow attach one of the macro buttons to switch between absolute and relative>
02:28 PM Bushman: ?
02:29 PM Bushman: how would one approach this?
02:30 PM Bushman: is there any sort of flip flop bit i can switch and use that to map different things to different parameters?
02:30 PM jepler: There is a component called mux2 which can select one of two input signals (floats) to copy to its output
02:30 PM Bushman: i program simatic PLCs at work, but this hal stuff is still enigma to me
02:30 PM jepler: http://linuxcnc.org/docs/2.4/html/man/man9/mux2.9.html
02:31 PM jepler: hah version 2.4
02:31 PM Bushman: oh! shiny!
02:31 PM * Bushman loves mux
02:31 PM jepler: so you would make one mux for each axis. Hook the relative position to in0 and the absolute position to in1, and the selector button to sel
02:31 PM Bushman: oh, only 2.4?
02:32 PM Bushman: http://linuxcnc.org/docs/2.7/html/man/man9/mux2.9.html seem to work to :D
02:32 PM Bushman: ok, that solves the multiplexing :D
02:33 PM Bushman: now how do i achieve the flipflop? :D
02:33 PM * Bushman googles
02:33 PM Bushman: http://linuxcnc.org/docs/2.5/html/man/man9/flipflop.9.html
02:33 PM Bushman: :D
02:33 PM Bushman: couldn't be easier :D
02:33 PM jepler: I'm not immediately sure which component will best help making a toggle button. there is a compoent called flipflop but I'm not sure it works in the way you need
02:33 PM jepler: oh maybe you want http://linuxcnc.org/docs/html/man/man9/toggle.9.html
02:34 PM jepler: you can also do some of these things with the classicladder, in theory; I've never become proficient at it, though.
02:35 PM Bushman: perfect!
02:36 PM Bushman: way better than flipflop
02:36 PM jepler: it says it even debounces your switch, which will be handy
02:36 PM Bushman: classic ladder sound tempting tho
02:36 PM Bushman: i'd have to look into it some day
02:37 PM Bushman: i know ladder good enough i'm sure i'd be able to program something usefull if only i get to know the I/Os and other functions
02:37 PM Bushman: witha debouncer? lovely!
02:38 PM Bushman: tho it's a digiatl signal via wireles so i guess debouncing is already done on-board in the pendant :P
02:38 PM jepler: likely true
02:39 PM Bushman: compiling the "driver" component was a hassle but everything else seems to be a breeze (if you know what you're doing lol)
02:39 PM Bushman: good thing someone have added it to main
02:40 PM Tom_shop: someone else on irc has a wireless pendant they've got up and going too
02:40 PM Bushman: tomorrow i'll start testing all the buttons and maybe add some macros too ;)
02:41 PM Tom_shop: not sure what brand
02:41 PM Tom_shop is now known as Tom_L
02:41 PM Bushman: i think most of the are those xhc
02:41 PM Bushman: the's even openxhc project lol
02:42 PM Tom_L: if interested he's Lcvette in the main channel
02:43 PM Bushman: i think i'll also use the toggle to change the function of the feed override/step value knob to jog speed knob
02:43 PM Bushman: it's great i can ovveride the feeds when running the program, but i'd also would like to have a jog override
02:44 PM Bushman: or maybe i'll just get used to using the step move as jog speed override
02:44 PM Bushman: will see
09:13 PM jepler: interrresting https://hackaday.io/project/166466-using-raspberry-pi-as-a-motherboard-for-3d-printer the source for the critical part, real time step generation, is hidden. boo. but at least it's definitely not linuxcnc :wink: