#linuxcnc Logs

Dec 22 2024

#linuxcnc Calendar

01:53 AM Deejay: moin
02:32 AM lcnc-relay: <meisterdippel@discord> moin
04:30 AM JT-Cave: morning
05:51 AM Tom_L: morning
06:14 AM lcnc-relay: <meisterdippel@discord> stormy today 😱
06:18 AM LinuxCncUser123: Hello
06:23 AM LinuxCncUser123: I build up a WebFrontend for Linux Cnc, and introduced a block designer for HAL. Now i have the question, is there a general description of available components? So that i can use this description to buildup something like a library?
06:45 AM lcnc-relay: <dauntlessa@discord> LinuxCncUser123: There is a list of hal compoenents here: https://linuxcnc.org/docs/html/hal/components.html
06:45 AM lcnc-relay: <dauntlessa@discord> I'm keen to try a block editor!
06:45 AM LinuxCncUser123: Yes i know this list, but is a list existing for a pc readable or would it be possible to introduce something which will so it, for example my idea would be:
06:45 AM LinuxCncUser123: {
06:45 AM LinuxCncUser123:       "id": "block-data-id-31",
06:45 AM LinuxCncUser123:       "x": 20,
06:45 AM LinuxCncUser123:       "y": 90,
06:45 AM LinuxCncUser123:       "Component": {
06:45 AM LinuxCncUser123:         "CompId": 31,
06:45 AM LinuxCncUser123:         "Name": "__servo-thread",
06:45 AM LinuxCncUser123:         "Type": 1,
06:45 AM LinuxCncUser123:         "State": 1,
06:45 AM LinuxCncUser123:         "ProcId": 0,
06:45 AM LinuxCncUser123:         "MemId": 0
06:45 AM LinuxCncUser123:       },
06:45 AM LinuxCncUser123:       "Functions": [],
06:45 AM LinuxCncUser123:       "Parameters": [
06:45 AM LinuxCncUser123:         {
06:45 AM LinuxCncUser123:           "OwnerId": 31,
06:45 AM LinuxCncUser123:           "Name": "servo-thread.tmax",
06:45 AM JT-Cave: stop flooding
06:45 AM JT-Cave: use pastebin
06:45 AM LinuxCncUser123:     },
06:45 AM LinuxCncUser123: oh sorry
06:45 AM JT-Cave: https://paste.debian.net
06:51 AM LinuxCncUser123: https://paste.debian.net/1340905
07:01 AM LinuxCncUser123: how can i provide a screenshot, i think this will explain a lot
07:02 AM LinuxCncUser123: or if someone is interested lets have a screenshare or something
07:18 AM jpa-: https://github.com/LinuxCNC/linuxcnc/blob/master/src/hal/utils/halcompile.g you could probably add functionality to halcompile to generate machine readable document output
07:21 AM LinuxCncUser123: i found those .comp files, i think those could be good sources, does this halcompile.g use this files?
07:22 AM jpa-: yes
07:22 AM jpa-: though it appears the data also goes into the output .so file, maybe that is easier to read
07:24 AM LinuxCncUser123: ah ok, i wrote a module for nodeJS in cpp to adapt the liblinuxcnchal.so. Is the output also in this file?
07:25 AM jpa-: i doubt it
07:25 AM jpa-: it's in the individual modules in .modinfo section
07:31 AM LinuxCncUser123: is this halcompile.g a python script or which kind of language is it?
07:32 AM jpa-: i think it is input to some parser generator that then makes a python script
07:36 AM LinuxCncUser123: ok thank you, for now i build a nodejs parser for the .comp files in my code base. I think if the project reaches a usable state it could be a solution to implement it in the linuxcnc repo, but for now i just want to use it as submodule.
07:47 AM jpa-: LinuxCncUser123: i think for the ones made by halcompile you could parse readelf output, but the ones written directly in .c are harder: http://paste.dy.fi/OEk/plain
07:48 AM jpa-: some components will also have varying number of pins based on parameters
07:48 AM jpa-: and e.g. hostmot2 drivers the pins will depend on hardware available
07:50 AM LinuxCncUser123: yes, thats a big challenge, i want to include a hardware check to determine, which blocks are available and build up the block library depending on the hardware.
07:50 AM LinuxCncUser123: give me a try i have to check something, need some time.
07:55 AM jpa-: for live editing when linuxcnc is running you could fetch it all through python hal API
07:58 AM LinuxCncUser123: live currently works, i can read the current hal configuration and build up a block thing with wire routing.
07:59 AM LinuxCncUser123: now i want to improve the configuration part. Because i think stepconf and pncconf are really limited.
08:18 AM JT-Cave: for a screenshot use https://pasteboard.co/
08:35 AM LinuxCncUser123: https://pasteboard.co/AznmzsAzDaNk.png
08:36 AM LinuxCncUser123: https://pasteboard.co/iKfg5lf5M0t4.png
08:36 AM LinuxCncUser123: https://pasteboard.co/r9uRpRj0uURi.png
08:38 AM LinuxCncUser123: last picture shows the possibility to adapt pins on block, this is good for huge blocks like modmot, the routing on the first picture is made by the connected signals, this is a configuration of my 3 axes cnc mill with frequency converter
10:56 AM lcnc-relay: <oddname_skane@discord> https://pasteboard.co/Ba4TDn5JQJN3.png what am I doing wrong here? 🙂
10:57 AM Tom_L: try linuxcnc-uspace iirc
11:01 AM lcnc-relay: <oddname_skane@discord> ahh that did the trickeroo thanks 😄
11:02 AM lcnc-relay: <oddname_skane@discord> even works, surprise for being me 😄
11:27 AM Unterhaus_ is now known as Unterhausen
11:36 AM rdtsc: Spindle bearing run-in... see if ChatGPT can write GCode to do it automatically :) https://www.youtube.com/watch?v=CebL22iL184&t=1983s
11:49 AM Tom_L: what's max rpm on that?
11:57 AM Tom_L: rdtsc, http://paste.debian.net/1340930/
11:57 AM Tom_L: how hard could that be?
11:58 AM Tom_L: change the delay and rpm to suit
12:00 PM Tom_L: Take the decimal out of your dwell
12:03 PM Tom_L: add M5 where you deem necessary
12:20 PM -!- #linuxcnc mode set to +v by ChanServ
12:39 PM -!- #linuxcnc mode set to +v by ChanServ
12:48 PM lcnc-relay: <big_kevin420@discord> yeah its just m3 s3000 g4 p6000
12:48 PM lcnc-relay: <big_kevin420@discord> or something like that
12:48 PM lcnc-relay: <big_kevin420@discord> progressively
01:34 PM Unterhausen: I hope that guy that built the 25000lb preamp isn't a relative
01:37 PM Unterhausen: At least I'm never embarrassed by the unterhausen side of my family
02:46 PM -!- #linuxcnc mode set to +v by ChanServ
03:11 PM rdtsc: yeah that's something else isn't it Unterhausen? Granted, it uses a little-known trick to lower noise... but as it was put together with worse-than-Heathkit parts, it gets a down-vote from me. Guess a (rich) fool really is born every second.
03:11 PM rdtsc: (to buy such.)
03:36 PM roycroft: blah
03:37 PM roycroft: it took almost four hours to separate the u-joint
03:37 PM roycroft: this is why i hate dealing wit u-joints
03:37 PM roycroft: the old was was in really good shape until i destroyed its seals removing it
03:37 PM * roycroft is catching his breath before cleaning up the knuckle and installing the new one
03:38 PM xxcoder: doh
03:38 PM roycroft: which should take 10 minutes, but removing the old one should also have taken 10 minutes
03:38 PM roycroft: hopefully the new one has a zerk fitting
03:38 PM roycroft: the old one did not
03:39 PM roycroft: but it had some fancy seals, so it was probably a "lubed for life" part
03:39 PM roycroft: and the bearing needles are all in great shape, and the grease on them is clean
03:40 PM roycroft: installing the new seal on the differential is going to be another challenge, especially since i don't have a metal lathe any more, and my mill-drill is in storage
03:41 PM roycroft: it requires a special tool, but folks make one out of a 1-14" floor flange and a long nipple
03:41 PM roycroft: the flange has to be reduced in diameter, though
03:41 PM roycroft: that's the rub
03:41 PM * roycroft is thinking about how he might do it on his wood lathe
03:42 PM roycroft: it does not have to be precise, but it has to be pretty good
03:42 PM roycroft: i wonder if i could turn a disk in something like oak and attach it to a smaller floor flange
03:42 PM roycroft: that should be strong enough
03:47 PM Unterhausen: I need a spindle so I can miter tubes https://youtu.be/RVZA1H-YKIA?si=YCV_vDR6eukxSSRN
03:48 PM Unterhausen: Wish I knew how to run my moore spindles
03:51 PM lcnc-relay: <big_kevin420@discord> $1 and $0
03:51 PM lcnc-relay: <big_kevin420@discord> i wish he had more vids of that lathe
04:02 PM roycroft: and the u-joint is the wrong one
04:02 PM roycroft: so i get to go to town now
04:02 PM xxcoder: good thing the truck isnt your only vehicle
04:03 PM roycroft: that's one reason i'm so anxious to get it back on the road
04:03 PM roycroft: i hate only having one working vehicle
04:03 PM Tom_L: take the old one with you :)
04:03 PM roycroft: the old one is destroyed
04:04 PM roycroft: but i'm taking the axle shaft with me
04:04 PM roycroft: that will be good enough
04:04 PM * roycroft takes off, and will get back home at dusk
05:02 PM Tom_L: does freecad support taps or threadmills?
05:10 PM xxcoder: dont know, sadly never used cam side of freecad
05:11 PM xxcoder: well besides once or twice to follow tutorial, but it was back then when ich was still alive
05:18 PM xxcoder: you in #freecad channel?
05:18 PM xxcoder: might be able to ask there
05:23 PM Tom_L: i'm not that concerned
05:23 PM Tom_L: just looking it over
05:23 PM xxcoder: ok :)
05:24 PM Tom_L: creating a tool table, had 10 tools entered and it crashed
05:24 PM Tom_L: not very impressed
05:24 PM xxcoder: bleh
05:28 PM xxcoder: I guess cam is still its weak spot
05:28 PM xxcoder: people programming it heavily into modeling than cam for cnc
05:30 PM Tom_L: i seem to be finding alot of weak spots
05:32 PM xxcoder: fun isnt it. you reporting or not?
05:33 PM Tom_L: no
05:33 PM xxcoder: ok
05:35 PM Tom_L: if it starts being widely used it will surface on it's own
05:35 PM xxcoder: makes sense. youre also not obliged to
05:36 PM xxcoder: i want to give assembly a try but too lazy/low energy to
05:36 PM Tom_L: i have plenty of cad cam tools
05:36 PM Tom_L: just wanted to see how far they've gotten
05:37 PM Tom_L: i dare say i could break assembly within 10 min based on what i've seen so far
05:37 PM Tom_L: hopefully i'm wrong
05:37 PM xxcoder: probably. its still pretty new, even if its based on one of unoffical but redone better
05:43 PM Unterhausen: People always say nice things about the freecad cam, interesting that Tom got it to crash
05:46 PM * JT-Shop calls it a night
05:50 PM roycroft: well that went fairly quickly
05:51 PM roycroft: the store manager is the one who dealt with me, and he was annoyed that i was sold the wrong part
05:51 PM roycroft: the correct one was $50 more, unforunately
05:51 PM -!- #linuxcnc mode set to +v by ChanServ
05:51 PM roycroft: he needed my address for the refund, and when he found out where i live he got really pissed off
05:51 PM roycroft: and gave me a $40 credit towards the difference
05:52 PM roycroft: that was nice, but i fear some employee is going to be feeling a bit of wrath
05:52 PM * roycroft was nice about it the whole time
05:52 PM roycroft: it i unfortunate, but mistakes happen
05:52 PM xxcoder: seem to have ended up well
05:53 PM roycroft: yes
05:53 PM roycroft: we confirmed that the new one will fit
05:53 PM roycroft: i'm heading out in a minute to assemble it
05:53 PM roycroft: i'll be working in the shop after dark, but i really want to at least get the axle assembled today
05:56 PM Tom_L: Unterhausen, i haven't gotten into the cam part yet really. just trying to build a tool table and it went poof
05:59 PM rdtsc: I hear that 1.0.1 is heavily in the works
05:59 PM Unterhausen: I swear I have been seeing mango jelly making 1.1 videos
06:00 PM rdtsc: I think they release slower for different OSes... I get things quite late
06:04 PM Unterhausen: I just found out I'm out of acetylene. Annoying
06:05 PM Tom_L: 2nd crash adding tools
06:05 PM Tom_L: trying to rename one
06:10 PM Tom_L: so i was saving the lib a tool at a time and got up to 11 and it crashed and now the lib is empty
06:10 PM xxcoder: even loading file?
06:10 PM Tom_L: the lib is empty, i opened it with a text editor
06:11 PM Tom_L: and it had 10 tools in it
06:11 PM Tom_L: aparently you can't rename tool descriptions
06:11 PM xxcoder: is that the crash bug?
06:12 PM rdtsc: Win or Linux?
06:13 PM Tom_L: linux
06:13 PM Tom_L: it is one of the many
06:13 PM rdtsc: Seeing some snap users having trouble with tooltable, whereas AppImage do not - not going to matter if installed from a repo though
06:14 PM Tom_L: i'm running appimage
06:14 PM Tom_L: so take that back :)
06:15 PM rdtsc: I take that back... see if it will install from apt? :)
06:17 PM Tom_L: apt is the old version
06:18 PM xxcoder: theres apt add for latest versions
06:18 PM xxcoder: doesnt work for me as lmde dont support apt add
06:21 PM Tom_L: i could go edit the lib file manually
06:21 PM Tom_L: probably be quicker
06:26 PM xxcoder: yeah
06:26 PM xxcoder: plus you could apparently edit the discription
06:26 PM xxcoder: am i wrong?
06:26 PM rdtsc: sudo apt update
06:28 PM xxcoder: repos usually have older versions. would need to add freecad specific repo to have latest and test
06:28 PM Tom_L: instead of editing the description in the app, i did it with the tool in an editor then added the tool
06:29 PM Tom_L: basic problems that shouldn't happen
06:29 PM xxcoder: indeed
06:29 PM xxcoder: now the question is it appimage specific or all freecad
06:30 PM xxcoder: ToT fun
06:31 PM rdtsc: despite arch/manjaro/mabox having "slow" adoption, 1.0 is present in there - stopped using the .AppImage and was able to install with package manager. Haven't used it much, but it seems to run fine so far.
06:31 PM rdtsc: what exactly are you trying Tom, maybe I could try it
06:33 PM Tom_L: i'm just messin with it
06:34 PM Tom_L: building a tool table for starters
06:34 PM xxcoder: rd try to just build tool table
06:34 PM Tom_L: got 20 in but i don't think they support the rest i have
06:34 PM xxcoder: see if it closes
06:34 PM Tom_L: taps, reamers, threadmills keyslot cutters etc
06:34 PM Tom_L: i think i'll back the file up first
06:35 PM lcnc-relay: <skunkworks8841@discord> oh - is the interface working?
06:37 PM rdtsc: "toolbit library" interesting
06:38 PM rdtsc: asked a whole bunch of questions about where to save and import examples files...
06:38 PM Tom_L: tried to reopen the lib and it can't find the tools i just added
06:38 PM Tom_L: i didn't use the default directory for them but that shouldn't make any difference
06:38 PM Tom_L: they say you can do that
06:39 PM rdtsc: is the directory still in /home/you/somewhere?
06:39 PM Tom_L: yes
06:39 PM rdtsc: yeah it should be good then
06:39 PM lcnc-relay: <skunkworks8841@discord> freecad?
06:39 PM Tom_L: jup
06:39 PM lcnc-relay: <skunkworks8841@discord> I remember figuring out the tool table was a pain. (but I haven't used any others to compare)
06:39 PM Tom_L: they need to fix their paths
06:40 PM lcnc-relay: <skunkworks8841@discord> (and I have only used it once so far to create gcode)
06:40 PM Tom_L: it let me add them but when i reopen the lib it can't find them
06:40 PM Tom_L: and i didn't use their metric tools i created inch ones
06:41 PM rdtsc: I used default directory and have added tool 10 and 11, seems ok
06:41 PM Tom_L: try using a different directory ;)
06:41 PM Tom_L: i was able to _add_ 20
06:41 PM lcnc-relay: <skunkworks8841@discord> why would you do that? 😉
06:41 PM Tom_L: but it can't find them now
06:41 PM Tom_L: i have 45
06:42 PM lcnc-relay: <skunkworks8841@discord> first day at the ski hill.. I am so out of shape.
06:42 PM Tom_L: at least you didn't go home broken
06:45 PM Tom_L: i'm going to put these in their default folder and see if it finds them
06:46 PM Tom_L: yeah they need to fix their paths
06:46 PM Tom_L: if i put them in the default Bit folder it finds them
06:47 PM Tom_L: but by entering them from another folder you'd think it would be smart enough to know that
06:47 PM rdtsc: it also doesn't like tool names such as "0.125in_endmill"
06:47 PM lcnc-relay: <skunkworks8841@discord> I was skiing down the hill pretty fast then turned into the slot to get back on the ski lift.. A 10year old kid - said - "nice turn!" I laughed and thanked him and then said - I have been skiing longer than you have been alive...
06:49 PM rdtsc: hmm yeah added 21 tools in the default dir and it seems happy
06:50 PM rdtsc: kind-of a wonky way to do tool assignment though - a text file would be waaaay easier :
06:50 PM lcnc-relay: <skunkworks8841@discord> the only way I can get the 2 kids to sit together...
06:51 PM lcnc-relay: <skunkworks8841@discord> Riyadh Season Snooker Championship
06:51 PM lcnc-relay: <skunkworks8841@discord> lol
06:51 PM Tom_L: rdtsc, the w
06:51 PM xxcoder: ToT video was fun lol
06:51 PM Tom_L: rdtsc, the wonky doesn't bother me
06:51 PM lcnc-relay: <skunkworks8841@discord> I mean
06:51 PM lcnc-relay: <skunkworks8841@discord> https://photos.app.goo.gl/ty5eq4kavKHi8gir7
06:51 PM Tom_L: my cad cam stores tools in 3 sections of the tool file
06:52 PM Tom_L: geometry, feeds and not sure what the other section is
06:52 PM Tom_L: since you can have tools and operations it separates them
06:53 PM Tom_L: one tool may perform different on a different op
06:54 PM Tom_L: rdtsc, if you look at it they're both text files
06:54 PM Tom_L: the tool and lib
06:54 PM Tom_L: figuring out the syntax is pretty easy too
06:57 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/freecad_test.png
06:57 PM Tom_L: if you update the hole sketch, the hole doesn't update with it
06:58 PM Tom_L: very basic test
07:01 PM Tom_L: rdtsc> it also doesn't like tool names such as "0.125in_endmill"
07:01 PM Tom_L: rdtsc, it took my 2 face mills
07:02 PM Tom_L: it may not like the underscore
07:39 PM roycroft: and because some of you enjoy living my project live vicariously:
07:39 PM roycroft: https://roycroft.us/F350/08.%20F350%20Front%20Driver's%20Side%20New%20Axle.jpeg
07:39 PM roycroft: https://roycroft.us/F350/09.%20F350%20Front%20Driver's%20Side%20New%20Axle%20U-Joint.jpeg
07:40 PM roycroft: it took 7 hours to replace that u-joint, including the trip to town
07:40 PM xxcoder: interesting'
07:41 PM Tom_L: but you did such a fine job
07:41 PM roycroft: it cleaned up nice
07:41 PM roycroft: and it should perform well
07:42 PM Tom_L: and now you know when it was fixed
07:42 PM roycroft: yes
07:42 PM roycroft: i guess i'll start working on the seal tomorrow
07:42 PM roycroft: i'll only have an hour of daylight to work in
07:42 PM roycroft: and the seal is an outdoor thing
07:43 PM roycroft: since i have to work on the truck - i can't bring it in the shop :(
07:43 PM * roycroft should have known that finishing this job this weekend was a bit too ambitious
07:43 PM roycroft: i cannot remember a u-joint replacement that has ever gone smoothly
07:44 PM Tom_L: i've done a few but it's been ages and they're not the funnest project ever
07:44 PM roycroft: u-joints are truly the bane of my limited vehicle mechanic skills
07:45 PM roycroft: but the good news is that one is done and i should never have to replace it again
08:01 PM * roycroft decides to check the news to see if the world has blown up today before making dinner
08:02 PM xxcoder: already had my dinner lol. airfried fries
08:04 PM xxcoder: some garlic salt, some msg, dips was ketchup and erm that green sauce (japleno)
08:05 PM roycroft: i'm just going to heat up leftover pizza from friday night
08:05 PM roycroft: it's my usuall sunday dinner
08:05 PM xxcoder: fancy. seems plain dinners all around here today lol
08:06 PM roycroft: it works out well because i'm usually scrambling to finish up weekend projects on sunday night, and just being to reheat pizza is an easy way to save time
08:06 PM roycroft: i have to say, btw
08:06 PM roycroft: with that 2 hour trip to town and back today, i am *really* appreciating the extra 2 seconds of daylight we got today
08:06 PM roycroft: i made full use of it'
08:07 PM roycroft: tomorrow we should get an extra six seconds or so
08:07 PM xxcoder: amazin
08:07 PM roycroft: actually it's 7 more seconds of daylight
08:08 PM roycroft: it's gonna seem like norway in june here before long :)
08:09 PM xxcoder: it sure gets a 180 in roughly 180 days eh
09:25 PM lcnc-relay: <connor_9220@discord> anyone used tristate_float ? I'm having some problems with it...
09:25 PM lcnc-relay: When the enable is changed, it doesn't change the output until the program is stopped.
09:30 PM lcnc-relay: <zincboy_ca_on@discord> It is not really a tristate output. It just sets out=in when enable = 1. Do you have it added to the servo thread? That is usually where I mess things up 🙂
10:13 PM lcnc-relay: <triwayudist@discord> anyone have use esp32 from wezzhunter on github?i have problem to flash on esp dev kit ..... with platformio message :
10:14 PM xxcoder: what message?
10:15 PM lcnc-relay: <triwayudist@discord> src/Config.h:11:12: fatal error: Eth.h: No such file or directory
10:15 PM lcnc-relay: *************************************************************
10:15 PM lcnc-relay: * Looking for Eth.h dependency? Check our library registry!
10:15 PM lcnc-relay: *
10:15 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/XAZJMaDExwlnOqVTJXUCOySb/j1JMZb8p-zI (8 lines)
10:15 PM lcnc-relay: <triwayudist@discord> have long text so i just cut main mesaage
10:15 PM lcnc-relay: <triwayudist@discord> 😅😅😅
10:16 PM xxcoder: its fine from discord as bridge bot turns it into text link
10:16 PM xxcoder: irc people would need to use pastebin or dpaste or whatever
10:16 PM xxcoder: looks like it cant find a file, though I dont know how that one works. hope someone will know.
10:17 PM lcnc-relay: <xxcoder@discord> at same time, maybe better dpaste it for whole thing anyway lol
10:30 PM lcnc-relay: <connor_9220@discord> Yea, I was expecting to to goto 0 when not enabled. I think mux2 will do what I want. I feed the analog value into in2 on it.. and when sel is set 1 then it outputs the analog value, when sel is 0, it turns 0.