#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