#linuxcnc Logs

Sep 19 2025

#linuxcnc Calendar

12:45 AM lcnc-relay: <meisterdippel@> unterhausen@: nein
02:47 AM lcnc-relay: <lucid.nonsense@> Mornin, currently laying on a hotel sofa watching Gatwick runway out the window
03:39 AM -!- #linuxcnc mode set to +v by ChanServ
03:39 AM -!- #linuxcnc mode set to +v by ChanServ
07:18 AM rdtsc-w: meisterdippel, maybe offload some protection logic to hardware - things which people traditionally use HAL for, like logic gates in the main loop for combining estop signals? many also have extensive logic for their complex toolchangers
07:34 AM lcnc-relay: <meisterdippel@> rdtsc-w: hmm, the problem is, you need to update the gateware for each change. and if it's in hal, you can customize it without learning verilog
07:34 AM lcnc-relay: <meisterdippel@> btw: rio generates also the hal, even with complex logic 😉
07:37 AM lcnc-relay: <meisterdippel@> in rio config you can use things like AND, OR, >=, +, -, ...
07:38 AM lcnc-relay: <meisterdippel@> "net": "(riov.Virt-Bool-In1.value AND riov.Virt-Bool-In2.value) OR riov.Virt-Bool-In3.value"
07:48 AM Tom_L: is rio an arm platform?
07:50 AM lcnc-relay: <meisterdippel@> you can control a robot arm, otherwise, it has nothing to do with arm 🙂
07:50 AM * JT-Cave finally found a use case for if __name__ == "__main__":
07:50 AM Tom_L: gotcha
07:51 AM lcnc-relay: <meisterdippel@> its python that generate FPGA (verilog) code and the corresponding linuxcnc configuration (ini/hal)
07:51 AM lcnc-relay: <meisterdippel@> and 2 config frontends for all the stuff
07:52 AM Tom_L: you use flex for the gui?
07:55 AM lcnc-relay: <meisterdippel@> i have some problems with flexgui, i generate vcp's for all the gui's but flex do not support it, and i need floatingpoint widgets, i open a mergerequest for that but it was rejected 🙁
07:58 AM lcnc-relay: <meisterdippel@> https://github.com/multigcs/riocore/tree/main/riocore/configs/demo
08:02 AM JT-Cave: you asked to add float support to widgets that don't support floats so it's impossible
08:08 AM lcnc-relay: <meisterdippel@> i show you the way to make it possible, without affecting anything else. this is the way all other gui's do it, i see absolutely no problem to implement it
08:10 AM t4nk_fn: dammit.. bought a new office chair, then I got the idea to try and swap out the cylinder, since my old chair is way better
08:10 AM t4nk_fn: can't get it off :|
08:10 AM t4nk_fn: been hammering away, tried to use a pipe-wrenchy kind of thing
08:11 AM t4nk_fn: pfff doesn't budge
08:11 AM t4nk_fn: then took a drill and tried to drill through it so I can stick something throught there for better grip
08:11 AM t4nk_fn: but it seems solid on the inside
08:13 AM t4nk_fn: got it sitting upside down with some wd40.. but I have little hope :|
08:13 AM rdtsc-w: doesn't sound worth the effort
08:13 AM Tom_L: slit the side of the frame
08:14 AM Tom_L: if you're that committed to it
08:14 AM t4nk_fn: mmmm
08:14 AM rdtsc-w: and hope there isn't a tiny size difference, making it incompatible
08:15 AM Tom_L: maybe then you won't destroy the cylinder with the hammer
08:15 AM Tom_L: that's what mics & calipers are for
08:15 AM lcnc-relay: <meisterdippel@> with ducttape and wd40, all is compatible 😂
08:16 AM t4nk_fn: I'm afraid I already damaged the inner piston with my wrench.. when I thought I was paying attention too
08:16 AM Tom_L: just adjust to the downgrade then
08:16 AM t4nk_fn: not on an important spot though, but nevertheless.. the thing operates nothing like it did before ;)
08:17 AM t4nk_fn: yeah, lol, I'm cuttently sat on an old kitchen chair
08:31 AM JT-Cave: I'm still against changing numbers behind the back of users from float to int, the user should do the conversion so they understand that it's being converted
08:31 AM JT-Cave: the other gui's do what the programmer wants not what the user wants
08:32 AM t4nk_fn: ('adjust to the downgrade' .. dammit, you can always be so sobering ;) )
08:42 AM JT-Cave: the driving force behind flexgui is let the user choose what they want and where without interfering with or forcing them to do anything my way
08:43 AM JT-Cave: you want a gui with one axis no problem in flexgui, not possible in the rest
08:45 AM JT-Cave: if you want to use a float with a slider simply pass it through conv_float_s32 or conv_float_u32
08:45 AM JT-Cave: https://linuxcnc.org/docs/stable/html/man/man9/conv_float_s32.9.html
08:45 AM JT-Cave: https://linuxcnc.org/docs/stable/html/man/man9/conv_float_u32.9.html
09:29 AM lcnc-relay: <meisterdippel@> Okay, okay, I find it really sad, but I'll just have to make a fork or hold a copy inside rio, which is something I wanted to avoid.
09:29 AM lcnc-relay: A little tip: try using ‘ruff,’ it found 77 errors right away.
09:30 AM lcnc-relay: <meisterdippel@> * 151
09:30 AM lcnc-relay: <meisterdippel@> ruff check flexgui libflexgui/
09:30 AM lcnc-relay: Found 151 errors.
09:30 AM lcnc-relay: [*] 71 fixable with the "--fix" option (11 hidden fixes can be enabled with the "--unsafe-fixes" option).
09:31 AM lcnc-relay: <meisterdippel@> very simple to fix the most
09:46 AM JT-Cave: what errors did it find? and I never just say fix because it can screw up code and take forever to find
09:48 AM JT-Cave: and ruff is unknown to debian
09:57 AM rdtsc-w: might be able to find it using pip install ruff
10:00 AM lcnc-relay: <meisterdippel@> you can also use pylint, but ruff is better
10:04 AM JT-Shop: I never use pip or pip3
10:05 AM lcnc-relay: <meisterdippel@> I didn't mean to annoy you with it, I just copied your code into my tree and ran my check over it, and that's when I noticed it.
10:06 AM JT-Shop: that's fine, I'm not annoyed at all
10:06 AM JT-Shop: just trying to understand
10:06 AM JT-Shop: while I pack up for my trip
10:06 AM JT-Shop: Pylint is a Python source code analyzer which looks for programming
10:06 AM JT-Shop: errors, helps enforcing a coding standard
10:07 AM * JT-Shop thinks coding standards are silly
10:08 AM lcnc-relay: <meisterdippel@> same like ruff, but ruff is 100times faster and not so mean to someone, pylint needs a bit confiuguration/tuning
10:10 AM lcnc-relay: <meisterdippel@> There is also mypy, but it finds things you don't want to find. 😱
10:23 AM JT-Cave: like my CC number?
10:25 AM lcnc-relay: <meisterdippel@> I'm not interested in that, I have millions of them at work. 🥱
10:26 AM JT-Shop: I meant mypy finding it
10:26 AM lcnc-relay: <meisterdippel@> more things like type errors, if you init a variable with var = None and later set it to a string var = "string"
10:29 AM rdtsc-w: might be apt search python3-ruff (sorry not near Debian atm)
10:31 AM lcnc-relay: <meisterdippel@> too new for debian 12
10:33 AM lcnc-relay: <meisterdippel@> i like the flexgui-axis , very nice
10:33 AM JT-Shop: looks like it's in debian 13
10:33 AM JT-Shop: it == ruff
10:35 AM lcnc-relay: <meisterdippel@> https://cserver1.multixmedia.org/flex-axis.png
10:37 AM rdtsc-w: I tried to get him to call it "Flaxis" but no joy :)
10:38 AM JT-Shop: nice, I like the status tab
10:39 AM JT-Shop: some people might mispronounce Flaxis... and after a few beers it might come out as Flexass
10:40 AM lcnc-relay: <meisterdippel@> multixmedia.org/flex-axis2.png need LEDS in status bar (this right part is auto generated)
10:41 AM lcnc-relay: <meisterdippel@> https://cserver1.multixmedia.org/flex-axis2.png
10:42 AM * JT-Shop goes back to preparing to depart
10:44 AM t4nk_fn: well, Tom_L, I'm gonna give it another go in a minute.. and otherwise I'll print some kind of tube to hide the manhandling and to keep the chair from sinking all the way donw.. and settle for the downgrade ;)
10:52 AM BorgPipe_ is now known as NetPipe
10:53 AM lcnc-relay: <meisterdippel@> How can i create a LED like widget ? to display boolean
10:57 AM JT-Shop: I will have to add that, good idea I like that
10:58 AM JT-Shop: like a Bool Label with a LED or just a HAL bool LED?
11:03 AM lcnc-relay: <meisterdippel@> i need only hal bool LED
11:06 AM JT-Cave: I can add that but it might take a few days I'm going to be out of town till Monday
11:06 AM JT-Cave: I just gave myself a note so I don't forget
11:14 AM lcnc-relay: <meisterdippel@> thanks !
11:15 AM lcnc-relay: <meisterdippel@> i try the bool label, but get: AttributeError: 'QLabel' object has no attribute 'setTrue_text'
11:15 AM lcnc-relay: <meisterdippel@> comes from: /usr/lib/python3/dist-packages/PyQt6/uic/properties.py
11:19 AM JT-Shop: did you add the properties?
11:21 AM lcnc-relay: <meisterdippel@> sorry, sorry, sorry, my fault
11:21 AM lcnc-relay: <meisterdippel@> forget the stdset="0"
11:21 AM lcnc-relay: <meisterdippel@> while generating the xml
11:25 AM t4nk_fn: HAH! the base came off!@
11:25 AM t4nk_fn: I got so much wd40 on my ... bottom .. I could just slide on over to the pc ;)
11:42 AM * JT-Shop heads out
11:43 AM Tom_L: have fun
12:30 PM t4nk_fn: man... I put all my fury into it, mustered all my tremendous power together, swung as hard as I could..
12:31 PM t4nk_fn: and hit nothing but my arm.. full on.
12:31 PM t4nk_fn: ;)
12:31 PM t4nk_fn: darnit, it kinda hurts :b
12:37 PM t4nk_fn: not sure if wd40 is any good against rust, but I think I'll put some more on and leave it for a while
12:37 PM t4nk_fn: it sure looks like there's some rust coming out, if it aint blood that is
12:49 PM lcnc-relay: <lesliet@> wd40 doesn't stay around long, it's light enough that it evaporates after a a week or two
12:49 PM lcnc-relay: <lesliet@> good as a penetrating oil, though
12:52 PM t4nk_fn: ahyeah, that's what I meant, to let it sit for a day or two, hoping that it'll loosen the rust a bit so I can get the shaft out
12:54 PM lcnc-relay: <lesliet@> yeah, might help
01:37 PM rdtsc-w: apparently, seafoam deep creep works the best - https://www.youtube.com/watch?v=st8dkGzJWtg
01:46 PM -!- #linuxcnc mode set to +v by molybdenum.libera.chat
01:47 PM JT-Mobile: Yo
02:26 PM lcnc-relay: <lucid.nonsense@> t4nk_fn: Are ypu hitting fromt he right direction?
02:26 PM lcnc-relay: <lucid.nonsense@> * you hitting from the
02:26 PM lcnc-relay: <lucid.nonsense@> Alsp, I edit a discord message does it just duplicate in irc?
02:26 PM lcnc-relay: <lucid.nonsense@> If I
02:27 PM xxcoder: some of text is fine. but dont edit big block of text
02:30 PM lcnc-relay: <xxcoder@> pasted screenshot in off topic to show what it looks like on irc side
02:30 PM lcnc-relay: <lucid.nonsense@> Ah
02:30 PM lcnc-relay: <lucid.nonsense@> Thanks
02:30 PM xxcoder: welcome
02:34 PM lcnc-relay: <lucid.nonsense@> Something nice about discussing these trivial things as we're days or hours away from direct war with Russia
02:34 PM t4nk_fn: well, the side that enters the seat is now still in there.. I managed to drill a hole through the shaft and stuck a screwdriver through
02:34 PM t4nk_fn: and I was hitting that
02:35 PM t4nk_fn: I couldn't get enough grip with a pipe wrench
02:36 PM lcnc-relay: <lucid.nonsense@> So are you trying to get it out of the wheel base or seat?
02:36 PM t4nk_fn: I managed to get the wheel base off now, so I'm left with the seat part
02:37 PM t4nk_fn: which seems the hardest part, no idea how I'm gonna get it out
02:37 PM lcnc-relay: <lucid.nonsense@> And have you unbolted it from the actual seat?
02:38 PM t4nk_fn: I did, but the back is still on atm
02:38 PM t4nk_fn: was thinking of bolting it down somewhere, but I probably only have a 'workmate' to bolt it on to
02:40 PM lcnc-relay: <lucid.nonsense@> I'm struggling to picture this, every office chair I've modified has had 4 coarse wood screws or bolts going into threaded inserts into the seat
02:41 PM t4nk_fn: the screwdriver broke when I hit it btw, but now I'm thinking that the broken piece of screwdriver might help me get a better grip with a pipe wrench
02:41 PM t4nk_fn: it'll have to be tomorrow though, it's getting too late for making noise now
02:42 PM lcnc-relay: <lucid.nonsense@> Bah, time to get the dynamite out
02:43 PM t4nk_fn: I really should have left it in the first place, and just print some kind of ring or spacer to prevent the seat from sinking too low.. and take my losses
02:45 PM lcnc-relay: <lucid.nonsense@> I jest, but hey if it's destroyed this much, might as well carry it through
02:46 PM t4nk_fn: it is .. was.. a mighty fine chair though
03:45 PM lcnc-relay: <lucid.nonsense@> https://i.postimg.cc/4JdxKRTq/20230418-132117.jpg I decided to put an office chair base on a recliner, i regret nothing
03:56 PM lcnc-relay: <lucid.nonsense@> Having said that, I later revised my design and screwed rotating casters on the feet which was a lot more predictable and stable, but that's the process, failure is just an expected part of the journey
04:00 PM t4nk_fn: I think it was a nice idea, but somehow it doesn't seem overly practical, ergonomically I mean
04:01 PM t4nk_fn: somehow I think you could never really sit behind the keyboard in a good way
04:02 PM t4nk_fn: but I'm intrigued.. maybe I'll drag out some comfy chair from another room ;)
04:04 PM t4nk_fn: however.. I have made this split keyboard, and I like it, if you could attach those directly onto the recliner.. that could work nicely
04:08 PM lcnc-relay: <lucid.nonsense@> Better to have tried and failed etc
04:12 PM lcnc-relay: <lucid.nonsense@> Bit yeah, some thoights on that, old style airplane tables that folded into thw armrest, swinging keyboard and mouse trays that are attached to a frame or desk, maybe attached to aluminium extrusion for flexibility
04:13 PM lcnc-relay: <lucid.nonsense@> I hate typing on phone touch keyboards
04:17 PM t4nk_fn: I have my keyboards really far apart.. sort of like.. a recliner ;) it could be really Zen to have that
04:18 PM t4nk_fn: but a mouse would be kind of a problem I guess; you still need one occasionally, I currently have a tablet with a stylo and a mouse pad on top of that inbetween my keyboards
04:21 PM lcnc-relay: <lucid.nonsense@> Multiple levels, but the key in my view is that the vertical stability is unmovable, as in bronze bushing 1mm over 1000mm span stability
04:48 PM -!- #linuxcnc mode set to +v by ChanServ
04:50 PM JT-Mobile: yo
05:50 PM Tom_L: can you read a pyvcp spinbox in gcode directly?
05:58 PM Tom_L: looks like you use M66 and analog in?
06:17 PM lcnc-relay: <skunkworks8841@> seems plausable
06:20 PM Tom_L: how do you set the width of a spinbox?
06:27 PM lcnc-relay: <skunkworks8841@> <width>6</width>
06:27 PM lcnc-relay: <skunkworks8841@> maybe
06:30 PM Tom_L: yeah i figured it out
06:31 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/axis_probe_routines.png
06:31 PM Tom_L: adding some probe routines
06:32 PM lcnc-relay: <skunkworks8841@> wait - why not flexui?
06:33 PM lcnc-relay: <skunkworks8841@> or it is already done there
06:33 PM Tom_L: i have them all in flex
06:33 PM lcnc-relay: <skunkworks8841@> lol - stupid question
06:33 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/touch-probe3-2.png
06:33 PM Tom_L: and more
06:33 PM lcnc-relay: <skunkworks8841@> one of these days
06:33 PM Tom_L: you'd better...
06:33 PM Tom_L: :)
06:39 PM Tom_L: have you ever used motion.analog.in?
06:59 PM lcnc-relay: <skunkworks8841@> I don't know - but I have used motion.analog-out-00
07:27 PM Tom_L: looks good here but i won't know until i plug it into the mill
07:28 PM Tom_L: skunkworks, do those have to go in postgui?
07:28 PM Tom_L: reading from a pyvcp i'd guess they do
07:28 PM JT-Mobile: yup
07:31 PM lcnc-relay: <pink_vampire@> Tom, your interface looks fantastic, I am still using the PYVCP.
07:32 PM lcnc-relay: <pink_vampire@> and I am very close to finish my 1000mm x 2000mm cnc router
07:33 PM Tom_L: thanks