#linuxcnc Logs
Mar 13 2024
#linuxcnc Calendar
01:10 AM Getty2 is now known as Getty
04:55 AM -!- #linuxcnc mode set to +v by ChanServ
05:05 AM JT-Cave: morning
06:36 AM Tom_L: JT-Cave, did you see the spaces video?
06:36 AM Tom_L: spacex
06:51 AM Tom_L: night before last my kid saw spacex reentry from work
06:51 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/temp/spacex/spacex_reentry.mp4
06:52 AM JT-Cave: cool
06:54 AM Tom_L: one of the workers heard aprroximately when it would pass overhead and they just happened to catch it
06:55 AM Tom_L: did you get anywhere with the startup logic?
06:55 AM Scopeuk: I have a former colleague who used to do similar with ISS over flight on Christmas eve, telling his grand daughter it was Santa
06:56 AM JT-Cave: pull and look at the spreadsheet
06:56 AM Tom_L: officially retired as of yesterday too! yay
07:01 AM JT-Cave: you?
07:01 AM Tom_L: yup, but i'm still working
07:02 AM Tom_L: not as much
07:04 AM Tom_L: actionpause should be enabled
07:05 AM Tom_L: at least on the last column
07:05 AM JT-Cave: pause is enabled when a program is running only
07:06 AM JT-Cave: and resume is enabled only when a running program is paused :)
07:06 AM Tom_L: isn't that what the last column indicates?
07:06 AM Tom_L: row 21 program)run
07:09 AM Tom_L: G27 should be enabled there i think
07:09 AM JT-Cave: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/startup.py#L85
07:10 AM JT-Cave: program_run is the controls that should be enabled when it possible to run a program
07:10 AM JT-Cave: G27?
07:11 AM Tom_L: row column
07:11 AM Tom_L: that was one of the last issues i had, pause wasn't enabled when the program was running
07:12 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/JT-SHOP/flexgui/Flex_conversion_pause_enable.png
07:13 AM Tom_L: i gotta leave a bit early today
07:15 AM JT-Cave: pause/resume is controlled in a different way
07:16 AM JT-Cave: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/status.py#L179
08:29 AM lcnc-relay: <skunkworks8841> Starship launch might happen tomorrow
09:56 AM Unterhaus_ is now known as Unterhausen
09:57 AM CloudEvil: Biggest launch since 1962, when they launched all the stuff to fake the moon landings.
10:00 AM -!- #linuxcnc mode set to +v by ChanServ
10:02 AM javabean_ is now known as javabean
10:06 AM Scopeuk: that was done on Venus right?
10:06 AM Scopeuk: :P
10:16 AM bjorkintosh: fake moon landing. hahhhhahaha!
10:17 AM bjorkintosh: lead poisoning is real.
10:32 AM lcnc-relay: <skunkworks8841> Don't know how you can orbit a flat earth...
10:40 AM bjorkintosh: hahahah
10:40 AM bjorkintosh: so is it a round flat disc, or is it triangular, or a elliptical?
11:06 AM lcnc-relay: <schoch_> I'm starting to get the impression that no one actually knows how all of linuxcnc works.
11:06 AM Roguish: good morning. clear and cool this morning. forecast upper 60's. no rain forecast for the rest of the week.
11:07 AM Roguish: maybe in the low 70's this coming weekend
11:10 AM lcnc-relay: <skunkworks8841> schoch_ what are you trying to do? I don't think there is any one person who is an expert on all areas of linuxcnc..
11:11 AM lcnc-relay: <schoch_> skunkworks8841 i'm just farting around reading the source and issues.
11:11 AM lcnc-relay: <schoch_> and thematically it seems the much is unknown.
11:12 AM roycroft: yeah, we could see record highs this weekend
11:12 AM roycroft: perfect timing, as i'm going to start working on the new house saturday
11:12 AM lcnc-relay: <schoch_> well, i'm actually working on a pendant using esp-now and maybe "linux esp-now" messing with user land python hal stuff.
11:12 AM roycroft: today is the last cloudy day
11:12 AM lcnc-relay: <schoch_> but that isn't really relivant to the comment.
11:12 AM Roguish: roycroft, so, the deal is all closed?
11:13 AM roycroft: yes, it closed yesterday morning
11:13 AM roycroft: so now i need to start moving out
11:13 AM lcnc-relay: <schoch_> it seems that modularity is a big missing feature not likely to be fixed any time soon.
11:13 AM Roguish: congrats.
11:13 AM roycroft: and trying to get the old place saleable without losing my shirt
11:13 AM roycroft: thanks
11:13 AM lcnc-relay: <schoch_> It seems a big mistake to bundle so many extranious projects along side linuxcnc
11:14 AM lcnc-relay: <schoch_> not the fault of the devs, but none of it works well out of the box
11:14 AM lcnc-relay: <schoch_> i assume there was drama when it was forked for machine kit, wonder how much was related...
11:16 AM NetPipe: https://netpipe.ca/?p=7662
11:17 AM NetPipe: 128 core laptops
11:18 AM roycroft: the other day i had a serious concern - my printer threw an error code and refused to do anything
11:19 AM roycroft: it was an error on a sensor on the bypass tray, and although i tried to disable the bypass tray, i could not clear the error
11:19 AM roycroft: i needed to do some printing (and this was over the weekend, so no copy service calls possible), and ended up buying a little used mopier (b&w only) from the goodwill for $25
11:20 AM lcnc-relay: <schoch_> I also get the impression that there is likely a list of 1000 things that get reimplemented over and over again
11:20 AM roycroft: i finally found a way to clear the code on the main printer, and now it works fine, including the bypass tray, but i put the little printer in my office, and it sure is nice being able to just reach behind me for a printout instead of going to the other room to get it
11:21 AM lcnc-relay: <schoch_> which may say a: it is just hard b: there is no easy singular way to do it c: no one understands how to reuse existing implementations d: all of the above
11:22 AM lcnc-relay: <schoch_> AI hype aside, I wonder if training something for linuxcnc would be helpful...
11:23 AM lcnc-relay: <schoch_> I was very impressed with "know your code" chatGPT plugin, it was pretty good at digesting a code base and actually groking dev intent and algo choices.
11:24 AM roycroft: schoch: you can get most, if not all, your questions answered by asking on the forum, or, if you're patient, asking here
11:24 AM lcnc-relay: <schoch_> has anyone implemnted an observer pattern for hal pins? It looks like some attempts were made with message queues
11:24 AM lcnc-relay: <schoch_> roycroft, do you actually use linuxcnc?
11:25 AM roycroft: not currently, but most here do use it, and some of the developers/maintainers are here
11:26 AM lcnc-relay: <skunkworks8841> I am just a user.... for a long time.
11:26 AM lcnc-relay: <schoch_> skunkworks, i'm a fan of your youtube content
11:26 AM lcnc-relay: <skunkworks8841> thanks!
11:27 AM lcnc-relay: <schoch_> how's the shop reorg going btw?
11:27 AM lcnc-relay: <schoch_> I can imagine that just walking in you can find 100 unfinished projects to get distracted with
11:28 AM lcnc-relay: <schoch_> well, my shop has 1/10th of what you have and I constantly have to fight those distractions
11:36 AM lcnc-relay: <schoch_> hmm, looks like an observer type thing: https://linuxcnc.org/docs/master/html/gui/gstat.html
11:49 AM lcnc-relay: <skunkworks8841> I am slowly selling a good percentage of the projects..
11:49 AM lcnc-relay: <skunkworks8841> A small case crawler is on the chopping block
11:50 AM lcnc-relay: <schoch_> i should sell some stuff and get a surface grinder....
11:51 AM lcnc-relay: <skunkworks8841> there is a rather large cnc that is probably going to be scrapped.. It was parked inside the door atleast 10 years ago - and that is where it sat. It might be different if it had standard tooling -
11:51 AM lcnc-relay: <skunkworks8841> but it has some weird goofy holders.
11:52 AM lcnc-relay: <schoch_> if you were to guess, how much does all that stuff weigh?
11:52 AM lcnc-relay: <schoch_> another battle I have is between usefull machines and stuff I can actually lift
11:53 AM lcnc-relay: <schoch_> which is why I don't currently have a surface grinder, but the difference between a knee mill and a bench mill is astounding and weight seems to be required for most things.
11:53 AM flyback50 is now known as flyback
11:58 AM lcnc-relay: <skunkworks8841> THe k&t alone is over 20klbs
11:59 AM lcnc-relay: <skunkworks8841> you can move a lot of stuff with bottle jacks, come-alongs and water pipe
12:12 PM Tom_L: tree roots can move anything
12:12 PM Tom_L: fwiw
12:16 PM roycroft: so if i need to lift a heavy machine, i should plant an oak tree next to it, wait 40 years, and then the machine will be lifted?
12:17 PM Tom_L: uh huh
12:17 PM Tom_L: no rush or anything..
12:18 PM Tom_L: JT-Cave, how's it goin?
12:19 PM * roycroft adds that tip to his materials handling handbook
12:19 PM Tom_L: see alot of changes...
12:19 PM roycroft: poplar trees grow faster than oaks
12:19 PM roycroft: but they're not as mighty
12:50 PM lcnc-relay: <skunkworks8841> Using trees to move equipment only works if you are using them as an anchor point?
12:52 PM Tom_L: or have ALOT of time on your hands
12:55 PM bjorkintosh: something on the order of geological scales.
12:57 PM JT-Cave: Tom_L, not bad
12:57 PM Tom_L: worth testing yet?
12:58 PM JT-Cave: worth seeing what's still broken...
12:58 PM Tom_L: ok
01:00 PM JT-Cave: I just loaded a blank main window without any errors
01:07 PM JT-Cave: I'm following the docs sorta and building a gui
01:11 PM Tom_L: run program doesn't seem to work
01:11 PM Tom_L: if i start from axis it enables pause/resume
01:12 PM Tom_L: wait, no initially it doesn't
01:14 PM JT-Cave: I've changed a few names so check the docs to be sure you're using the right one
01:15 PM Tom_L: :/
01:15 PM Tom_L: helps if you remember where you put the file you were working on
01:20 PM JT-Cave: if you change the spelling of a menu item it doesn't update the action name... if you delete a menu item it does not delete the action so beware
01:21 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/JT-SHOP/flexgui/qlabel_error.png
01:21 PM Tom_L: that's a new one
01:23 PM -!- #linuxcnc mode set to +v by ChanServ
01:23 PM Tom_dev: Traceback (most recent call last):
01:23 PM Tom_dev: File "/home/tom/flexgui/flexgui/src/libflexgui/status.py", line 115, in update
01:23 PM Tom_dev: def update(parent):
01:23 PM Tom_dev:
01:23 PM Tom_dev: KeyboardInterrupt
01:23 PM Tom_dev: Aborted
01:25 PM Tom_L: nap time
01:25 PM JT-Cave: yup same here
01:58 PM roycroft: it's lunch time here
01:59 PM roycroft: after a morning of enduring comcastic "upgrades"
01:59 PM roycroft: they broke my hard-wired vpn tunnels, and we
01:59 PM roycroft: are implementing work-arounds for now
02:00 PM * roycroft profoundly thanks for them for all their service improvements
02:11 PM lcnc-relay: <skunkworks8841> yeck
03:37 PM lcnc-relay: <schoch_> Encoder -> esp -> msgpack -> esp_now -> udp -> python comp -> msg_pack_decode -> pin
03:37 PM lcnc-relay: <schoch_> seems complicated
03:37 PM lcnc-relay: <schoch_> got it working tho
03:53 PM solarwind: I use old toothbrushes to clean oily/greasy parts, like things under the hood of your car. The toothbrushes obviously get dirty fast.
03:53 PM solarwind: Kerosene cleans extremely well. Brake cleaner brings them to like-new colour
03:53 PM solarwind: I wonder why regular dish soap and water never does that
03:54 PM solarwind: But more interestingly, it's like after you clean them with dish soap and water, you can't clean them properly with kerosene again
03:54 PM solarwind: It feels like the dish soap and water is somehow embedding the dirt deeper into the bristles. It's not a practical issue, just interesting
03:55 PM solarwind: But if I start with a non-polar solvent like kerosene or brake cleaner, it cleans it perfectly
04:24 PM CaptHindsight: the dish soap just isn't a strong a solvent for non-polar filth as the non-polar solvents that you are using
04:24 PM CaptHindsight: solarwind: ^^
04:26 PM CaptHindsight: the chlorine free ones don't use organochlorides like tetrachloroethylene and dichloromethane
04:28 PM CaptHindsight: methyl acetate is a popular ingredient, it's in most solvent inks since it's cheap and works so well, same for acetone
04:28 PM CaptHindsight: IPA (not the beer) is also a common ingredient
04:37 PM JT-Shop: Tom_L, do you know what you added that caused that error?
04:41 PM Tom_L: not really. i was using the same copy of jet for testing that i'd been using
04:42 PM JT-Shop: no telling what it is then maybe a label with named that a push button should be
04:42 PM Tom_L: do you know off hand which ones you renamed?
04:42 PM Tom_L: that error was a first for that
04:43 PM JT-Shop: https://github.com/jethornton/flexgui/commit/d851ec1528d5260c87b72bd3391937134647bcdc
04:43 PM JT-Shop: I'd have to look through the history lol
04:44 PM Tom_L: also when i ran it along side axis, run program didn't seem to work
04:44 PM Tom_L: i'm going to veryify that now
04:44 PM JT-Shop: https://github.com/jethornton/flexgui/commit/d0aa04736f402d648b9d3da540e123df616a729d
04:44 PM JT-Shop: prob named wrong
04:47 PM Tom_L: gonna be fun to find because it scans for widgets now right?
04:48 PM JT-Shop: is scans a different way now yes
04:48 PM JT-Shop: I scan for all widgets and actions and put them into a list
04:49 PM Tom_L: i'll dig into it after bit, i gotta run a couple errands
04:49 PM Tom_L: right
04:49 PM JT-Shop: ok
04:51 PM Tom_L: every way i try to start it errors on that same line though
04:51 PM Tom_L: which is where it's looking for widgets i think
04:51 PM Tom_L: startup ln 236
04:51 PM JT-Shop: it's trying to setup buttons
04:52 PM Tom_L: what about labels that are there just for text?
04:52 PM JT-Shop: so it's finding a button name that's on a label
04:52 PM Tom_L: i'll check for that first
04:53 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/startup.py#L16
04:53 PM JT-Shop: add a print function to print out all the widgets and actions it finds
04:54 PM Tom_L: i found it
04:54 PM JT-Shop: print(parent.children)
04:55 PM Tom_L: i had an extra pause_pb there because previously it was looking for that instead of on the menu so i added just a pause button to satisfy that condition
04:55 PM Tom_L: in order to be able to test the rest of it
04:55 PM Tom_L: somehow i opened an older copy i'd saved
04:56 PM Tom_L: i'm still not sure i have the right one yet
04:56 PM Tom_L: i'll check closer when i get back
04:58 PM Tom_L: oh.. i was gonna suggest adding 10 to indent on the filename that is loaded so it's not right at the edge of the screen
04:58 PM Tom_L: i did that on mine
04:58 PM Tom_L: and it looks better
05:02 PM Tom_L: run program seems broke
05:02 PM Tom_L: pause still isn't enabled when the program does run
05:03 PM JT-Shop: prob have the wrong name
05:03 PM Tom_L: running side by side with axis
05:03 PM JT-Shop: works fo rme
05:03 PM Tom_L: i'll check more later
05:03 PM JT-Shop: why not just build a new ui file?
05:03 PM Tom_L: i could
05:04 PM Tom_L: i wanted to see if i could get jet working as an example
05:04 PM JT-Shop: it will work if everything is named correctly
05:04 PM Tom_L: :)
05:04 PM JT-Shop: a lot of water has gone under the bridge since jet
05:04 PM Tom_L: i know
05:05 PM Tom_L: i haven't had any one block of time long enough to really focus on this
05:05 PM JT-Shop: I do refer back to jet for missing functions lol
05:05 PM Tom_L: i'll go over it this evening probably
05:06 PM JT-Shop: check all the action names
05:06 PM Tom_L: yeah how do you edit those?
05:06 PM Tom_L: those are kinda new to me
05:06 PM JT-Shop: I added the machine position today
05:06 PM JT-Shop: in the action editor
05:07 PM JT-Shop: bottom right of designer
05:07 PM Tom_L: yeah, what do i compare to the code?
05:07 PM Tom_L: the object name?
05:08 PM JT-Shop: yes check the object name to the docs
05:09 PM JT-Shop: https://gnipsel.com/linuxcnc/flexgui/menu.html
05:09 PM Tom_L: action_run? compared to actionRun_Program?
05:09 PM JT-Shop: all lower case is the function
05:09 PM JT-Shop: humpback is the action name
05:09 PM Tom_L: i'm just scanning the actions.py file
05:10 PM JT-Shop: use the docs
05:10 PM Tom_L: which file?
05:10 PM JT-Shop: <JT-Shop> https://gnipsel.com/linuxcnc/flexgui/menu.html
05:16 PM Tom_L: run program works now
05:16 PM JT-Shop: always did :)
05:17 PM Tom_L: asks for a tool change and stops
05:17 PM Tom_L: pause is still disabled
05:17 PM Tom_L: i'll look into it more
06:24 PM Tom_L: JT-Cave, some of your png files are missing in the repo
07:28 PM Leeloo: I have a bit of a side-question about stepper motors. I found optical encoders I got long time ago (400 steps) and want to mount them on the steppers; I though using 4 rods in the corners for the mount, like this: https://imgur.com/lz8JMy6
07:28 PM Leeloo: Then just attach a plate at the back with the encoder and coupler there, but as I was fitting this rod, I felt a magnetic pull and then I started wondering if it's possible I will mess up some magnetic fields of the stepper this way?
08:00 PM lcnc-relay: <skunkworks8841> Leeloo: not a problem
08:04 PM Leeloo: OK, I am glad then :)
08:06 PM Tom_L: JT-Cave, commands.py line 168 may need to be changed to an action. it errors if the _pb isn't present
08:08 PM Tom_L: and if pause_pb is present, it errors in startup.py line 236
09:20 PM Leeloo: Any tips of handling rotary encoder inputs for LinuxCNC? I can design and make PCB and hardware or use existing one, but some is pricey, so if I have to spend $150 for something to handle 3 encoders (my Mesa board can handle only one,) I would rather do that, but, I need to have some vague plan for injecting it into LinuxCNC - I would need to write some kind of a driver for it, right?
09:24 PM lcnc-relay: <skunkworks8841> what mesa board do you have?
09:30 PM Leeloo: I have 6i25 and 7i76
09:30 PM Leeloo: The first one is the PCI FPGA one and the second is the one that sits on the other end of parallel cable and has stepper drivers one encoder input and a lot of I/O.
10:03 PM Leeloo: I think I have a better question more generic: if you design some hardware by yourself that will output some real-time data or maybe needs to receive it from LinuxCNC too, what would be the most sensible way of interfacing it to the PC that runs LinuxCNC?
10:03 PM Leeloo: In terms of hardware interface.
10:10 PM lcnc-relay: <schoch_> Leeloo: checkout linuxcnc-rio or remora
10:12 PM lcnc-relay: <schoch_> rio uses FPGA ( a tang nano 9k is like $13/bucks ) and can likely do very high speeds. remora supports stm32, many of which have hardware quadrature peripherals
10:13 PM lcnc-relay: <schoch_> there is also the software encoder module, not sure how you plumb that through mesa
10:15 PM Leeloo: Thank you, I will research those.