#linuxcnc Logs

Feb 10 2024

#linuxcnc Calendar

01:10 AM Deejay: moin
01:31 AM lcnc-relay: <guido.make#0> Sorry for having missed this. The relay is a bit odd. What did you adjust?
01:32 AM XXCoder: old bridge stopped working so turboss used new bridge type for irc to discord
01:32 AM XXCoder: works fine. old bridge is still used for matrix and discord
01:33 AM XXCoder: it doesnt show quotes though so id suggest type tom full nick :)
03:00 AM -!- #linuxcnc mode set to +v by ChanServ
03:09 AM -!- #linuxcnc mode set to +v by ChanServ
04:24 AM Tom_L: morning
04:26 AM JT-Cave: morning
04:27 AM JT-Cave: # popup keyboard for use with touchscreen applications
04:27 AM JT-Cave: # used by pyngcgui.py
04:27 AM JT-Cave: # based on work of John Thornton's Buglump
04:28 AM Tom_L: where's that from?
04:30 AM JT-Cave: lib/python/popupkeyboard.py by dewey
07:09 AM JT-Cave: Tom_L, I gave up and asked for help https://forum.linuxcnc.org/41-guis/51651-connect-pyqt-button-to-hal
07:12 AM Tom_L: i thought you had it whipped
07:12 AM Tom_L: i haven't looked at it
07:13 AM Tom_L: i have an 8am appointment then i'll have a look but if you can't get it, i doubt i can either
07:13 AM JT-Cave: I can create a hal pin fine just can't figure out how to connect that to a button
07:15 AM Tom_L: would it be similar to the pyvcp pannel?
07:15 AM Tom_L: or similar to probebasic...
07:15 AM JT-Cave: dunno about pyvcp
07:16 AM Tom_L: probably closer to probebasic
07:16 AM JT-Cave: qtpyvcp uses a lot of slots and signals so a bit cornfusing
07:16 AM Tom_L: is that the older on axis used?
07:16 AM Tom_L: one
07:18 AM JT-Cave: qtpyvcp is like new math to me lol
07:18 AM * JT-Cave goes to clean chicken shit
07:18 AM Tom_L: oh god... have you seen it???
07:18 AM Tom_L: :)
07:19 AM JT-Cave: I just discovered that the pin I created is loaded so no need to use loadrt just connect with a net in postgui.hal
07:19 AM Tom_L: so you figured it out?
07:20 AM Tom_L: https://forum.linuxcnc.org/qtpyvcp/38164-hal-connections-to-ui-elements
07:21 AM Tom_L: that's got all the properties listed too
07:21 AM JT-Cave: no, I still need to figure out how to make a pyqt button trigger a hal pin
07:21 AM JT-Cave: I've read that post a few times
07:21 AM JT-Cave: that's asking about qtpyvcp
07:22 AM Tom_L: i'll look after while, getting ready to head out in 10
07:22 AM Tom_L: it's like asking how to interface c c++ or python, they're bound to be similar
07:59 AM JT-Cave: when you find out the similarities let me know
08:11 AM * JT-Cave heads for Cape
09:29 AM lcnc-relay: <satiowadahc#0> ```python
09:29 AM lcnc-relay: <satiowadahc#0> Import hal
09:29 AM lcnc-relay: <satiowadahc#0>
09:29 AM lcnc-relay: <satiowadahc#0> H = hal.component("test")
09:29 AM lcnc-relay: <satiowadahc#0> H.ready()
09:29 AM lcnc-relay: <satiowadahc#0> H.setp("motion.digital-in")
09:29 AM lcnc-relay: <satiowadahc#0> ```
09:29 AM lcnc-relay: <satiowadahc#0>
09:29 AM lcnc-relay: <satiowadahc#0> Generally works for me
09:37 AM Tom_L: http://linuxcnc.org/docs/stable/html/config/python-hal-interface.html
09:37 AM lcnc-relay: <satiowadahc#0> Or my preferred way.
09:37 AM lcnc-relay: <satiowadahc#0>
09:37 AM lcnc-relay: <satiowadahc#0> ```python
09:37 AM lcnc-relay: <satiowadahc#0> H.newpin(hal.PIN_IN, hal.BIT, "mypin")
09:37 AM lcnc-relay: <satiowadahc#0> H["mypin"] = 1
09:38 AM lcnc-relay: <satiowadahc#0> ```
09:38 AM lcnc-relay: <satiowadahc#0>
09:38 AM lcnc-relay: <satiowadahc#0> Connect it in postgui hal files
09:38 AM Tom_L: right
09:38 AM Tom_L: we're not creating a new pin though
09:38 AM lcnc-relay: <satiowadahc#0> Hmm documentation seems different...
09:38 AM Tom_L: just connecting an exhisting hal pin to a widget button
09:39 AM lcnc-relay: <satiowadahc#0> The last example on that page I find only works if you make a hal component
09:39 AM lcnc-relay: <satiowadahc#0> It doesn't have to have any pins. But you need a component and have it set ready to connect to shared mem
09:40 AM lcnc-relay: <satiowadahc#0> Similar to halmeter just makes a component with the process name with no pins
09:41 AM lcnc-relay: <satiowadahc#0> Typing on my phone but I could pull out work laptop and find examples if you want
09:42 AM lcnc-relay: <satiowadahc#0> Not sure on pyqt6, but 5 you can call button.clicked.connect(lambda: h.setp("pin", 1))
09:55 AM Roguish: another chilly morning. was low 30's, now upper 30's. forecast for low 60's today
09:55 AM Roguish: hope it gets there
09:57 AM Tom_L: chilly here today too
10:02 AM Roguish: forecast thruogh next wednesday is dry, partly cloudy, and chilly.
10:03 AM Roguish: well, out here, this weekend is all about the Stupid Bowl.
10:04 AM Tom_L: here too as KC is nearby
10:04 AM Roguish: yup
10:05 AM Tom_L: probably more bets on what taylor is doing than the game itself
10:05 AM Roguish: i really don't like her. just disgusting. a media whore.
10:06 AM Roguish: although, if she campaigns against Trumpass, she could help out.
10:11 AM roycroft: linda wertheimer is retiring after 50 years at npr
10:13 AM bjorkintosh: goodness. she's been there for EVER!!
10:13 AM Roguish: i just wish William Bringham is the lead anchor. not the 2 there now.
10:14 AM Roguish: old jumping Judy Woodruff, dragged the whole thing way, way, way to the far left.
10:16 AM roycroft: she was the anchor for the 1976 presidential election
10:18 AM roycroft: she also has this rare trait called "journalistic integrity"
10:19 AM roycroft: she married fred wertheimer way back then, who is active in campaign the fiance reform community
10:19 AM roycroft: and as such, linda has never reported on campaign finance reform, to avoid any possible perception of a conflict of interest
10:20 AM roycroft: maybe folks like clarence thomas might look into that?
10:22 AM Roguish: he needs to retire
10:29 AM Roguish: wow, we cracked the 40's
10:37 AM NoSpark: any suggestions for a good modbus rtu diagnostics tool for linux?
12:40 PM lcnc-relay: <skunkworks8841> K&T is running again!
12:43 PM Tom_L: yay
12:43 PM Tom_L: <satiowadahc#0>, what would go in the postgui.hal file to connect the gui?
12:43 PM Sansiba-T: How hevy is so an K&T
12:43 PM Tom_L: toe smashin heavy
12:47 PM lcnc-relay: <skunkworks8841> 25000lbs
12:47 PM lcnc-relay: <skunkworks8841> I think I have the shipping weight somwhere
12:50 PM lcnc-relay: <skunkworks8841> Found a hose that worked with a little hacking
01:10 PM lcnc-relay: <skunkworks8841> Sansiba-T: https://www.youtube.com/watch?v=XSojs1pUSlg
01:12 PM Sansiba-T: 12000 kg... Not bad
01:19 PM NoSpark: is there anywhere I can find a clear set of instructions for building a custom MESA bitfile?
01:25 PM lcnc-relay: <skunkworks8841> https://jauriarts.org/_matrix/media/v1/download/jauriarts.org/GuXRxmtxddSlsfNNygCznZFI
01:25 PM lcnc-relay: <skunkworks8841> we don't use the 'machine control unit' anymore...
01:25 PM lcnc-relay: <skunkworks8841> so only 30,000 lobs
01:25 PM lcnc-relay: <skunkworks8841> lbs
01:27 PM NoSpark: 3 foot foundation
01:27 PM NoSpark: wow
01:27 PM lcnc-relay: <skunkworks8841> yep..
01:27 PM lcnc-relay: <skunkworks8841> the foundation connect the Y axis to the table... 🙂
01:32 PM lcnc-relay: <skunkworks8841> https://www.youtube.com/shorts/Q9XiEWArb4E
01:54 PM Unterhaus_ is now known as Unterhausen
01:56 PM Unterhausen: I wonder if people would want the parts from my old Centroid controller
01:57 PM Unterhausen: If so, they gotta get out to electronics recycling next week
01:58 PM lcnc-relay: <skunkworks8841> centroid.. yeck
01:58 PM lcnc-relay: <skunkworks8841> what machine was that on?
01:58 PM lcnc-relay: <skunkworks8841> we have centroid at work - 3 trumph machines
01:58 PM lcnc-relay: <skunkworks8841> 2 are windows and 1 is linux
01:59 PM lcnc-relay: <skunkworks8841> Yay - someone bought the cold saw.
01:59 PM lcnc-relay: <skunkworks8841> space is space!
02:05 PM XXCoder: lol interesting. well looked very clean for 30 years
02:27 PM lcnc-relay: <skunkworks8841> the machine is from the 60's
02:27 PM lcnc-relay: <skunkworks8841> we got it running in the early 90's
02:27 PM XXCoder: talking about hoses but yeah thats cool
02:27 PM XXCoder: I guess it just reached bend life
02:29 PM XXCoder: nice
02:30 PM roycroft: yeah
02:30 PM XXCoder: skunk dunno. though connector point would be "more stiff" so bends would affect it a little bit more
02:30 PM roycroft: it's taking me some time to realize how useful the origin can be for tasks other than those for which i bought it
02:40 PM XXCoder: light blondihack video today
02:40 PM XXCoder: learning a bit though, even if I used those a lot
02:41 PM XXCoder: lot of it I know already
02:53 PM lcnc-relay: <skunkworks8841> yah - the weekend is 'this week in retro', 'adrians digital basement', blondihacks, Clough42, and maybe Linux tech tips wan show..
02:55 PM lcnc-relay: <skunkworks8841> maybe abom79
02:56 PM XXCoder: dropped abom a while ago. got bored of that
02:56 PM XXCoder: repeative new equipment brag
02:57 PM lcnc-relay: <skunkworks8841> yah - he is kinda hard to take..
03:11 PM Tom_L: NoSpark, what chip?
03:20 PM NoSpark: ?
03:20 PM Tom_L: you asked about building a bitfile
03:20 PM NoSpark: oh
03:20 PM NoSpark: a 7i80hd_25
03:20 PM Tom_L: xilinx?
03:20 PM NoSpark: yeah
03:20 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/emc/xilinx/xilinx14_install_index.php
03:21 PM Tom_L: make sure you specify the -25
03:21 PM Tom_L: because there's a 16 too iirc
03:22 PM Tom_L: not the same
03:22 PM NoSpark: thank
03:22 PM NoSpark: Compiling the bitfiles I can do
03:22 PM NoSpark: currently trying to figure out how to edit it to get what I want
03:22 PM Tom_L: carefully
03:23 PM Tom_L: i'm using a custom one for my 7i90 / 7i80
03:23 PM Tom_L: mine is the smaller chip
03:24 PM NoSpark: can you look at https://docs.google.com/spreadsheets/d/1WWGzb4owKH_vfY6_q-MpuuYfny1gT2nGtk0UdQA8EcM/edit?usp=sharing
03:25 PM Tom_L: just those 2 changes?
03:25 PM NoSpark: yeah
03:26 PM Tom_L: it's been so long since i've done one of those, i hate to give bad advise
03:26 PM Tom_L: pcw---home would be a better choice to ask
03:26 PM NoSpark: maybe convert the 3i37 into the respective IO pins with the correct direction
03:26 PM NoSpark: *7i37COM
03:28 PM Tom_L: what you want seems doable though
03:28 PM NoSpark: at least that is good news
03:28 PM NoSpark: I'll keep going through the examples until I find what I'm looking for
03:29 PM lcnc-relay: <magoogle> I got the basic from my wrightcnc configured into Linuxcnc, I can move all axis/etc. Could anyone help me turn this into a working system? My table has no homing switches other than the torch lift swi
03:29 PM lcnc-relay: <magoogle> tch for Z. I can't figure out how to specify the table size.
03:29 PM Tom_L: make sure the pins do what the daughter card needs too
03:30 PM NoSpark: there are only the two direct connected daughter cards
03:30 PM NoSpark: thankfully, the other cards are all smart serial
03:32 PM Tom_L: magoogle, 2.13.1 Homing section http://linuxcnc.org/docs/stable/html/config/ini-config.html#sub:ini:sec:joint-num
03:33 PM Tom_L: also your MIN_LIMIT & MAX_LIMIT define the bounds
03:36 PM Tom_L: NoSpark, the IOPortTag is the optional function for each pin
03:36 PM Tom_L: the StepGenTag is the 2nd function etc
03:36 PM Tom_L: if you don't use stepgen, it's GPIO
03:38 PM NoSpark: can you take another look at that sheet I linked?
03:39 PM Tom_L: it's still open
03:40 PM NoSpark: ahh
03:42 PM NoSpark: I have no idea what this means, just trying to copy and paste the functions
03:42 PM Tom_L: you can't do it that way
03:42 PM NoSpark: I assume I am going to have to add the pkt_uart subsystem as well?
03:42 PM Tom_L: you must update the header as you go
03:43 PM NoSpark: was afraid of that
03:43 PM Tom_L: unless you like bricks
03:43 PM NoSpark: dont say that :S
03:43 PM Tom_L: ask pcw, he might even make one for you
03:43 PM NoSpark: I've already bricked 3 mesa FPGA cards in the last 5 years :P
03:44 PM NoSpark: ok, I'll put as much info into this sheet, and ask him
03:44 PM Tom_L: 2 pics, what you have and what you want
03:45 PM Tom_L: and what stock bitfile you're working with
04:00 PM Tom_L: JT-Cave, when accessing hal i noticed they import time in the examples i've seen too
04:38 PM lcnc-relay: <satiowadahc#0> https://pastebin.com/RgtrVy9C
04:38 PM lcnc-relay: <satiowadahc#0> Example one... I missed your message earlier
04:44 PM Tom_L: what goes in the postgui_call_list & postgui.hal?
04:48 PM lcnc-relay: <satiowadahc#0> in that example, at the bottom I linked signals. trying to find a good example from our code base of setting pins externally.
04:48 PM Tom_L: you also have to put HALUI = halui in the ini right?
04:50 PM lcnc-relay: <satiowadahc#0> All that does is load halui
04:50 PM lcnc-relay: <satiowadahc#0> HALUI = anystring will enable halui
04:50 PM Tom_L: that's not part of the inerface?
04:51 PM lcnc-relay: <satiowadahc#0> HALUI is a standalone program that predefines alot of useful pins
04:51 PM Tom_L: i don't need the xml file since it's a standalone gui though right?
04:53 PM JT-Shop: Tom_L, I noticed a couple of places in emc they use time.sleep() which is bad programming in an event driven environment
04:53 PM Tom_L: JT-Shop, did you get that last pastebin?
04:53 PM Tom_L: that may help some
04:54 PM JT-Shop: no, just walked in
04:54 PM Tom_L: i'm testing a different approach from the commands.py file
04:54 PM JT-Shop: ok
04:55 PM Tom_L: he (satiowadahc#0) posted some examples
04:56 PM Tom_L: right now i'm getting a 'could not open postgui_call_list.hal ' error
04:57 PM Tom_L: so i need to figure out the lcnc side of the interface
04:57 PM JT-Shop: I never understood why they call it that
04:57 PM Tom_L: hah
04:57 PM JT-Shop: just need to call it postgui.hal and be done with it
04:57 PM Tom_L: you must need both files for this
04:58 PM JT-Shop: I 'think' they call other hal files from that dunno and don't care bout that silly stuff
04:58 PM JT-Shop: what is "this"
04:58 PM Tom_L: for the interface to work
04:58 PM JT-Shop: which interface?
04:59 PM Tom_L: the only examples i can find have you creating pins instead of accessing pins that are already there
04:59 PM Tom_L: 'interface' the link between lcnc & jet
04:59 PM Tom_L: to hal
05:00 PM lcnc-relay: <satiowadahc#0> https://pastebin.com/9miFvSWZ
05:00 PM lcnc-relay: <satiowadahc#0> Direct Control and controllling your own pin
05:01 PM lcnc-relay: <satiowadahc#0> Weirdly... I dont seem to recall a way to see the values of pins directly... its been a couple years since I worked on this interface now...
05:01 PM JT-Shop: thanks for the example, I'll test that in the am... very tired now but reading it
05:02 PM JT-Shop: app.exec_() is an error with pyqt6
05:02 PM JT-Shop: fyi
05:03 PM lcnc-relay: <satiowadahc#0> I mean I'm still in 5... thinking of updating soonish. but then I have gtk2,3 pyqt5 and pyqt6 out in the wild... I can only support so much
05:03 PM JT-Shop: I hear that
05:03 PM lcnc-relay: <satiowadahc#0> although gtk2 I'm trying real hard to get rid of.
05:04 PM lcnc-relay: <satiowadahc#0> this is working with 2.9 so your mileage may vary. differences from my repo from master are only kins and halcomponents that don't make sense to upstream.
05:08 PM lcnc-relay: <satiowadahc#0> I find it funny as you guys are working to state of the art UI and I'm trying to build a terminal based UI so I don't have to even load a desktop environment
05:08 PM JT-Shop: interesting
05:08 PM JT-Shop: keystick was basic
05:09 PM XXCoder: gtk3 or going direct to gtk4?
05:09 PM lcnc-relay: <satiowadahc#0> My thought is several standalone apps running in tmux. The DRO and manual controls are working. Next is auto control and MDI. Editor can just be nano or Vi as you pleSe
05:09 PM lcnc-relay: <satiowadahc#0> Please*
05:09 PM XXCoder: can be both since those dont take much space
05:20 PM lcnc-relay: <big_kevin420> external editors are annoying
05:20 PM lcnc-relay: <big_kevin420> just copy qtvcp
05:21 PM lcnc-relay: <big_kevin420> keystick was fresh
05:21 PM lcnc-relay: <big_kevin420> i like being in the middle and working on axis
05:29 PM lcnc-relay: <satiowadahc#0> I have to many mills with too many customizable features
05:29 PM lcnc-relay: <satiowadahc#0> For axis*
05:29 PM Tom_L: gantrys?
05:30 PM Tom_L: or heavy iron
05:30 PM lcnc-relay: <satiowadahc#0> Gantry mostly.
05:32 PM lcnc-relay: <satiowadahc#0> Craziest one has two independent y axis. With 3 independent z axis on the front and 1 independent z axis on the second y axis. 2 independent b axis on two of those and 1 also has a c axis
05:32 PM lcnc-relay: <satiowadahc#0> Kinematics was fun...
05:32 PM Tom_L: i haven't been down the kins path and don't plan to
05:32 PM JT-Shop: I can't even imagine what that looks like
05:33 PM lcnc-relay: <satiowadahc#0> Using a lot of switchkins and changing the UI so they can only adjust 1 set of tooling axis at a time
05:33 PM XXCoder: sounds fun
05:33 PM Tom_L: so a 2 gantry mill independent of each other?
05:34 PM XXCoder: I always wanted to print robot arm but I have compleyely no usecase for it so eh
05:34 PM * JT-Shop calls it a night
05:34 PM Tom_L: xx, edu is reason enough
05:35 PM lcnc-relay: <satiowadahc#0> Pretty much.
05:35 PM Tom_L: my kid runs a big dual gantry with 3 heads
05:35 PM Tom_L: not independent though
05:36 PM Tom_L: the gantries are but not the heads
05:37 PM lcnc-relay: <satiowadahc#0> https://jauriarts.org/_matrix/media/v1/download/jauriarts.org/fbvzCugbCNgWHxBZWcQHSRUm
05:38 PM Tom_L: for cutting what?
05:38 PM XXCoder: I suppose but then I always lack energy unfortunately. maube in future.
05:38 PM lcnc-relay: <satiowadahc#0> Apparently I only have videos but not with the entire thing. You can see the three z on the far side. And y axis on the close side.
05:39 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/cincinnati/Cincinnati_1.jpg
05:39 PM XXCoder: I ran large machines, but it was something like a61 cell. largest "open air" I ran was that fairly crappy cnc router. I could park car on it, but very tight fit and only if gantry was removed
05:40 PM Tom_L: you could park 2 semis on this thing
05:40 PM XXCoder: man guy sure griped about that router. it supposely come with 3 hp spindle, but they lied and inside was 1 hp
05:41 PM lcnc-relay: <satiowadahc#0> These ones are for drywall and foam. One semi long for the reasons of you can't move parts after
05:41 PM roycroft: i just ran amuck
05:41 PM Tom_L: interesting
05:41 PM XXCoder: interesting
05:41 PM Tom_L: there was a guy here that designed drywall mfg equipment
05:42 PM Tom_L: haven't seen him around here for a while
05:42 PM lcnc-relay: <satiowadahc#0> I mean I used to be a lot more active. We have 4 mills as product lines for drywall
05:43 PM XXCoder: that machine was interesting yeah. it was 5 axis and could cut off foam at various angles and depths
05:44 PM lcnc-relay: <satiowadahc#0> The first cuts drywall fancy. Next one that places drywall on steel and screws down. Then this crazy contraption for the architects to play with. Then a 5 axis for painting.
05:46 PM JT-Cave: all right between satiowadach and chris I have two clues to solve the problem
05:46 PM JT-Cave: https://www.imdb.com/title/tt0077372/
05:47 PM JT-Cave: that was the movie we watched at the club get together today
05:47 PM Tom_L: :)
05:48 PM Tom_L: well i bet you solve it before me
05:48 PM Tom_L: i'm still half confused
05:48 PM XXCoder: solve race time ;)
05:48 PM JT-Cave: I'm fully cornfused and tired to boot
05:48 PM Tom_L: may nap and look but maybe not
05:48 PM JT-Cave: time to don the sweats and get a lap full of cats
05:48 PM Tom_L: nap for sure
05:48 PM JT-Cave: too late for a nap
05:49 PM Tom_L: mmm, yeah maybe
06:30 PM lcnc-relay: <big_kevin420> "<XXCoder> I always wanted to print robot arm but I have compleyely no usecase for it so eh"
06:30 PM lcnc-relay: <big_kevin420> why let that stop you
06:32 PM lcnc-relay: <big_kevin420> can you use math suctions inside an ini/hal file?
06:32 PM XXCoder: lol