#linuxcnc Logs

May 03 2024

#linuxcnc Calendar

12:18 AM Rhine_Labs: Thinking of offing my PCNC 1100
12:30 AM Rhine_Labs: What the matrix LInk?
01:02 AM Deejay: moin
02:26 AM lcnc-relay: <TurBoss> morning
02:26 AM lcnc-relay: <TurBoss> Rhine_Labs: #LCNC:matrix.org
02:37 AM lcnc-relay: <Rhine_Labs (@rhine_labs:matrix.org)> Made it.
02:52 AM lcnc-relay: <TurBoss> Rhine_Labs: there is also #linuxcnc-dev:matrix.org
02:52 AM lcnc-relay: <TurBoss> ops
02:53 AM lcnc-relay: <TurBoss> Rhine_Labs: there is also #linuxcnc-dev:jauriarts.org (https://matrix.to/#/#linuxcnc-dev:jauriarts.org)
02:53 AM lcnc-relay: <TurBoss> typo
04:01 AM Centurion_Dan1 is now known as Centurion_Dan
04:41 AM Tom_L: morning
04:53 AM Centurion_Dan1 is now known as Centurion_Dan
05:00 AM JT-Cave: morning
05:39 AM travis_farmer: Morning
07:56 AM * JT-Cave starts his chicken day
09:12 AM JT-Shop: pc
09:28 AM lcnc-relay: <roguish> good morning......
09:29 AM JT-Shop: yo
09:33 AM lcnc-relay: <roguish> got up to 78 yesterday. today maybe 76, tomorrow rain.
09:35 AM JT-Shop: rain every day for the next week here
09:35 AM JT-Shop: muggy outside right now, just split some firewood and worked up a sweat fast
09:36 AM lcnc-relay: <roguish> little exercise too.... that's good. i'll go for a ride in a couple hours when it warms up.
09:37 AM lcnc-relay: <roguish> and based on the emails, you pushed a lot yesterday in flex
09:37 AM JT-Shop: yup
09:42 AM lcnc-relay: <roguish> hey JT, in qtdesigner and flex, can things be copy/pasted from one ui to another?
09:43 AM JT-Shop: yes
09:43 AM lcnc-relay: <roguish> thought so.
09:44 AM lcnc-relay: <roguish> yesterday I was trying to figure out how to get a button to change color when it's selected. think I got it working for flood. but in the examples, the e-stop button is in a row of stuff. can't figure that one.
09:45 AM lcnc-relay: <roguish> in the .qss file
09:46 AM JT-Shop: did you add a qss file to the ini?
09:49 AM JT-Shop: note if you have a container with a layout set you can't paste into that container, you can only drag and drop
09:52 AM lcnc-relay: <roguish> oh yeah. .qss in the .ini i start with one of the examples and mod it... while reviewing the others. plus I have worked within pyqtvcp and pyvcp qtdragon a bit. so i'm a little familar with qtdesigner and the .qss files.....
10:02 AM JT-Shop: ok, are you trying to style a button by the object name
10:05 AM lcnc-relay: <roguish> well, i guess yes. one at a time.
10:06 AM JT-Shop: https://doc.qt.io/qt-6/stylesheet-examples.html
10:07 AM JT-Shop: https://doc.qt.io/qt-6/stylesheet-syntax.html
10:07 AM JT-Shop: that's the one I was looking for
10:08 AM lcnc-relay: <roguish> been looking at the syntax help. the examples helps a lot, thanks.
10:08 AM JT-Shop: yup I learn by examples too
10:10 AM lcnc-relay: <roguish> like in the xyz.ini example. the estop, power, etc. are in a tool bar. trying to figure how to get the e-stop to change color when selected.
10:10 AM JT-Shop: those are tool buttons
10:10 AM lcnc-relay: <roguish> e-stop uniquely, not all in the tool bar at once.
10:11 AM JT-Shop: oh no they are actions
10:12 AM lcnc-relay: <roguish> yeah,, Qactions
10:13 AM JT-Shop: QToolButton that might work on the tool bar buttons
10:18 AM lcnc-relay: <roguish> wat are the states of those buttons?
10:19 AM JT-Shop: should be the same as a qpushbutton I'd think
10:19 AM JT-Shop: https://doc.qt.io/qt-6/stylesheet-reference.html#list-of-pseudo-states
10:26 AM JT-Shop: the easy way to test stuff like qss is use a minimal example file like load-ui and add a qss
10:26 AM JT-Shop: https://github.com/jethornton/pyqt6/tree/master/QMainWindow
10:27 AM JT-Shop: or toolbar_test
10:27 AM lcnc-relay: <roguish> i've been using the tom.ui
10:28 AM lcnc-relay: <roguish> and tom.ini
10:29 AM lcnc-relay: <roguish> ok, i'll get the full directory and try it
10:29 AM JT-Shop: clone the pyqt6 repo and look at qmainwindow for examples of qss
10:29 AM lcnc-relay: <roguish> ok
10:31 AM lcnc-relay: <roguish> ok, so what's the git ccommand to clone the repo
10:32 AM JT-Shop: git clone git@github.com:jethornton/pyqt6.git dirwhereyouwantit
10:34 AM lcnc-relay: <roguish> says permission denied....
10:45 AM JT-Shop: sry wrong link
10:45 AM JT-Shop: https://github.com/jethornton/pyqt6.git
10:49 AM lcnc-relay: <roguish> ok, got it
10:50 AM JT-Shop: ok great
11:01 AM lcnc-relay: <roguish> ok, out for my ride..... bbl
11:29 AM Tom_L: i added a couple buttons to my ui, maybe i should push it after while
11:31 AM Tom_L: op stop & block del i think was about it
11:33 AM JT-Shop: feed hold does not work
11:33 AM JT-Shop: motion.feed-hold does nothing
11:33 AM Tom_L: hmm
11:33 AM Tom_L: i'm not sure why you would use that over pause anyway
11:33 AM JT-Shop: only motion.feed-inhibit does something, it stops all motion
11:33 AM Tom_L: what's the difference?
11:34 AM JT-Shop: not sure
11:34 AM Tom_L: and you can dial the feed down with a slider too
11:34 AM JT-Shop: that works
11:34 AM Tom_L: that's what most machinists i know do
11:35 AM JT-Shop: not even sure M53 does anything
11:39 AM Tom_L: don't think i've ever used it
12:34 PM JT-Shop: if M53 is active in Axis and you toggle motion.feed-hold to true motion stops
12:35 PM rdtsc_away is now known as rdtsc
02:18 PM rdtsc is now known as rdtsc_away
02:34 PM Tom_L: JT-Shop, #15 up
02:39 PM Tom_L: roguish, i posted an updated tom.ui on my page if you want it
02:46 PM Tom_L: today's debs are there as well
02:47 PM XXCoder: interesting. https://youtu.be/HedRbIsM75M
02:48 PM XXCoder: using bed sheet and process to make sheet more waterproof than tarp
03:25 PM JT-Cave: Tom_L, you can update tom.ui in the repo and do a pr on that
03:38 PM JT-Shop: https://youtu.be/6wHd7JHQqEI?t=564
04:01 PM Tom_L: JT-Shop, yeah i just forgot to
04:02 PM Tom_L: i'll do that this evening, waiting for a delivery
04:04 PM JT-Cave: dryer?
04:05 PM Tom_L: yeah
04:08 PM JT-Shop: so Chris M figured out that the python feed-hold is really feed hold enable
04:08 PM JT-Shop: same as M53 which doesn't seem to work
04:08 PM Tom_L: i'll push now.. i've got a few min
04:08 PM JT-Shop: ok
04:09 PM Tom_L: #16
04:10 PM Tom_L: so the feed hold works along side the Mcode
04:11 PM Tom_L: ?
04:11 PM JT-Shop: the python feed-hold is supposed to be the same as M53 feed hold enable
04:11 PM Tom_L: anybody i've ever run across just dials the feed way down
04:11 PM Tom_L: like on a first run part etc
04:12 PM Tom_L: brb
04:12 PM JT-Shop: yup dial down rapid to turtle and feed to turtle
04:15 PM Tom_L: had to park her honda
04:15 PM Tom_L: she doesn't like to put it in the garage
04:15 PM Tom_L: getting it out of the way
04:16 PM Tom_L: looks like a new/used car lot when everybody is home
04:17 PM JT-Shop: lol
04:23 PM Tom_L: haven't gotten to tooledit yet i see
04:24 PM JT-Shop: what?
04:24 PM Tom_L: passing column parameters
04:25 PM JT-Shop: https://github.com/jethornton/flexgui/commit/3a1db7de4933bc01f6e44ad6bead369eaad14617
04:26 PM pere: Wow, <URL: https://hosted.weblate.org/projects/linuxcnc/linuxcnc/ > show Italian and Spanish only missing 17 strings to reach 100% Even passed German and only beaten by Russian, missing 103 and 1 string respectively. :)
04:26 PM Tom_L: i bet i forgot to build the last pull
04:26 PM JT-Shop: yup
04:27 PM Tom_L: yeah that's alot better :)
04:33 PM Tom_L: set feed hold and feed override checked state... what's that about?
04:33 PM Tom_L: the feed override slider and hold button?
04:33 PM JT-Shop: where?
04:33 PM Tom_L: one of the last commits
04:33 PM -!- #linuxcnc mode set to +v by ChanServ
04:33 PM Tom_dev: https://github.com/tlight9/flexgui/commit/df115dbc9896f9471e53538ded9985dc8893ccfe
04:34 PM Tom_L: well that's my copy...
04:34 PM JT-Shop: that sets the button checked status to be the same as state of feed-hold on startup
04:35 PM Tom_L: nothing to do with the ui 'checkable' option then?
04:35 PM JT-Shop: no
04:35 PM Tom_L: should those be checked on feed hold btn?
04:35 PM JT-Shop: the checkable buttons are set to checkable on startup
04:36 PM Tom_L: in your code?
04:36 PM JT-Shop: it is
04:36 PM Tom_L: ok
04:38 PM Tom_L: i see now, if i check that on the hal buttons, they toggle instead of momentary
04:39 PM Tom_L: so if you had one tied to an mdi command you wouldn't want that checked
04:40 PM JT-Shop: for example if you have a hal button to turn on the light via an output you would want that button to be checkable
04:40 PM Tom_L: right
04:42 PM Tom_L: and flexhal.test.pin1 can be tied to something in the postgui.hal right?
04:42 PM JT-Shop: yup
04:42 PM Tom_L: just like axis
04:43 PM Tom_L: is min jog velocity on the jog_vel_sl set in the ini?
04:44 PM JT-Shop: hmm
04:45 PM Tom_L: it's default is 6 here atm i just wondered where it was set
04:45 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/flexgui/src/libflexgui/startup.py#L719
04:46 PM Tom_L: it used to be 0 and i got caught a few times thinking they didn't work
04:46 PM JT-Shop: it sets default and max jog velocity I don't see min jog in the code
04:46 PM JT-Shop: brb chickens
04:48 PM Tom_L: that would come from the display section i think
04:50 PM Tom_L: ok delivery 5 min out...
05:01 PM JT-Shop: MIN_VELOCITY = .01 - The approximate lowest value the jog slider.
05:29 PM rdtsc_away is now known as rdtsc
06:02 PM Tom_L: 1 dryer installed
06:08 PM JT-Cave: min linear velocity used
06:09 PM JT-Cave: who operates the dryer?
06:09 PM Tom_L: me usually
06:10 PM Tom_L: i rerouted the vent tube so there are no kinks now
06:10 PM Tom_L: and only about 1.5 - 2' of flex
06:11 PM Tom_L: does hal_btn work now?
06:11 PM JT-Cave: nice that should help with lint but really no lint should get that far
06:12 PM Tom_L: what is rb_on rb_off?
06:12 PM Tom_L: widget names or something else?
06:13 PM Tom_L: not widget names...
06:14 PM JT-Cave: https://github.com/jethornton/flexgui/commit/aef05d96c40f54d99eb2fdfb3b134a43d809cbb4
06:14 PM JT-Cave: pin names
06:14 PM Tom_L: ok
06:14 PM JT-Cave: if you open a watch window you can monitor the pins
06:15 PM Tom_L: hal_btn doesn't want to work here
06:15 PM JT-Cave: https://www.youtube.com/watch?v=1p5-X2LJK48
06:15 PM JT-Cave: fire it if it won't work
06:16 PM -!- #linuxcnc mode set to +v by ChanServ
06:16 PM Tom_dev: flexhal: dlopen: /usr/lib/linuxcnc/modules/flexhal.so: cannot open shared object file: No such file or directory
06:16 PM Tom_L: am i missing a glue file?
06:16 PM JT-Cave: sounds like hal is still running
06:16 PM JT-Cave: glue files are used for remap
06:16 PM Tom_dev: nothing is running
06:17 PM Tom_dev: flexhal: dlopen: /usr/lib/linuxcnc/modules/flexhal.so: cannot open shared object file: No such file or directory
06:17 PM Tom_dev: hal_btn.hal:1: waitpid failed /usr/bin/rtapi_app flexhal
06:17 PM Tom_dev: hal_btn.hal:1: /usr/bin/rtapi_app exited without becoming ready
06:17 PM Tom_dev: hal_btn.hal:1: insmod for flexhal failed, returned -1
06:18 PM JT-Cave: I've not seen that before
06:18 PM Tom_dev: i'll try adding those to my ui and see what happens
06:18 PM JT-Cave: sometimes hal does not shut down and is still running in the background
06:18 PM JT-Cave: halrun -U
06:19 PM Tom_dev: Note: Using POSIX realtime
06:19 PM Tom_dev: the other sims start right up even after running that one
06:24 PM * JT-Cave calls it a night
06:47 PM Tom_L: they all work in tom.ui
06:47 PM Tom_L: may be something in the hal.ini?
07:04 PM rdtsc is now known as rdtsc_away
08:04 PM JT-Cave: try loading the hal_btn.ui in tom.ini
08:12 PM Tom_L: ok
08:14 PM Tom_L: work ok
08:15 PM Tom_L: normal hal button doesn't do anything
08:15 PM Tom_L: nor checkable
08:15 PM Tom_L: checkbox does
08:15 PM Tom_L: on off work
08:15 PM Tom_L: because mine are probably named different?
08:15 PM Tom_L: anyway the ui works with tom.ini
08:17 PM Tom_L: you have a hal file with yours too maybe it doesn't find loadrt flexhal
08:17 PM Tom_L: my ui doesn't work with hal.ini either
08:18 PM Tom_L: yeah, it's the hal_btn.hal file. comment that out and it works
08:18 PM Tom_L: postgui_halfile =
08:20 PM Tom_L: yeah they all work wiht the .hal commented out
08:20 PM Tom_L: postgui
08:21 PM Tom_L: : loadrt flexhal
08:21 PM Tom_L: flexhal addf servo thread
08:46 PM Tom_L: need to figure out connecting pins in postgui.hal now
08:46 PM Tom_L: maybe that's what that flexgui file does that is missing