#linuxcnc Logs

Sep 13 2023

#linuxcnc Calendar

03:27 AM rmu: anybody tried controlling the amps of a mig welder with the spindle output (pot-type) of a mesa card? (connected to foot pedal input of welder)
03:39 AM travis_farmer: Morning :-)
03:50 AM -!- #linuxcnc mode set to +v by ChanServ
04:00 AM Tom_L: morning
04:04 AM JT-Cave: morning
05:40 AM JT-Cave: hmm I have to install 2.10 to test the 7i95T
06:11 AM JT-Cave: damn pulled a jumper off and it went flying off somewhere
06:41 AM JT-Cave: rooster jut crowed
06:57 AM Tom_L: JT-Cave, 2.10 of what?
06:58 AM JT-Cave: emc
06:58 AM travis_farmer: LCNC
06:58 AM Tom_L: doesn't work under 2.9?
06:59 AM Tom_L: must be some real bleeding edge hardware
06:59 AM Tom_L: cloudy all day.. hi 77
07:00 AM JT-Cave: no
07:00 AM JT-Cave: I also need a newer mesaflash I think
07:00 AM Tom_L: should have the latest...
07:01 AM travis_farmer: 65F/71F rain, with a tropical storm pointed at my weekend
07:01 AM Tom_L: i was thinking about the tooledit... maybe have some option boxes to pick the columns to display then pass that out to the cmd
07:02 AM Tom_L: pretty sure i installed 3.4.6
07:03 AM Tom_L: but no 7i95t to test
07:04 AM JT-Cave: crap
07:04 AM JT-Cave: Makefile:56: *** "pkg-config can't find libpci". Stop.
07:04 AM JT-Cave: john@cave:~/mesaflash$ sudo apt install libpci
07:04 AM JT-Cave: Reading package lists... Done
07:04 AM JT-Cave: Building dependency tree... Done
07:04 AM JT-Cave: Reading state information... Done
07:04 AM JT-Cave: E: Unable to locate package libpci
07:04 AM Tom_L: yeah you gotta install that
07:04 AM Tom_L: 2 libs you add for mesaflash
07:05 AM JT-Cave: yup but apt can't find it...
07:05 AM Tom_L: what os?
07:05 AM Tom_L: i have it on bookworm
07:06 AM JT-Cave: sudo apt install libpci-dev libmd-dev pkg-config build-essential git
07:06 AM JT-Cave: forgot that...
07:08 AM Tom_L: need to build again?
07:10 AM JT-Cave: need to sort out the 7i95t and why mesaflash does not find it
07:10 AM JT-Cave: john@cave:~$ mesaflash --device 7i95t
07:10 AM JT-Cave: No 7I95T board found
07:10 AM JT-Cave: john@cave:~$ ping 10.10.10.10
07:10 AM JT-Cave: PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
07:10 AM JT-Cave: 64 bytes from 10.10.10.10: icmp_seq=1 ttl=64 time=0.149 ms
07:10 AM JT-Cave: john@cave:~$ mesaflash --device 7i95 --addr 10.10.10.10
07:10 AM JT-Cave: No 7I95 board found
07:11 AM Tom_L: i have 3.4.8 on the rpi
07:12 AM Tom_L: must have bumped version when i wasn't looking
07:15 AM JT-Cave: john@cave:~$ mesaflash --device 7i95T --addr 10.10.10.10
07:15 AM JT-Cave: ETH device 7I95T at ip=10.10.10.10
07:15 AM JT-Cave: crap it uses a T and not a t
07:16 AM Tom_L: :)
07:16 AM Tom_L: and I for 7i95
07:17 AM JT-Cave: and it uses 7i95 for hal pins... so much fun I'm going to Wolf Creek for an hour of PT
07:17 AM Tom_L: heh
07:18 AM JT-Cave: Personal Torture
07:18 AM Tom_L: what'd foxy need?
07:19 AM JT-Cave: wtf now this works
07:19 AM JT-Cave: john@cave:~$ mesaflash --device 7i95t --addr 10.10.10.10
07:19 AM JT-Cave: ETH device 7I95T at ip=10.10.10.10
07:19 AM Tom_L: solar flares
07:19 AM JT-Cave: one of the valves were sticking and I used some used valves so I brought them all of the valves so they could get it to run... if that fails then I'll order new valves
07:19 AM JT-Cave: must be
07:40 AM pcw---home: mesaflash doesn't care about device name case (but it needs the complete name)
07:42 AM pcw---home: but it does report the built in name exactly (and have always been upper case on all cards)
09:00 AM Deejay: hi
09:08 AM rigid: jitter difference of stepgen + GPIO with default CPU affinity (all threads on highest core) and each thred on it's own CPU: https://coderdu.de/share/2023-09-13-15-29-56-062.mp4
09:08 AM rigid: *thread
10:27 AM skunkworks: rigid: what does your grub kernel line look like?
10:33 AM rigid: skunkworks: console=tty1 root=PARTUUID=2f33b825-02 rootfstype=ext4 fsck.repair=yes rootwait sdhci_bcm2708.enable_llm=0 rcu_nocb_poll rcu_nocbs=1-3 kthread_cpus=0 irqaffinity=0 isolcpus=nohz,domain,1-3 nohz=on nohz_full=1-3 tsc=reliable mce=off
10:33 AM rigid: but it's a few settings that were necessary to achieve that
10:33 AM skunkworks: rigid: thanks! what hardware is this?
10:34 AM rigid: skunkworks: rpi4
10:34 AM skunkworks: ah!
10:34 AM rigid: skunkworks: https://github.com/heeplr/linuxcncpi has all the settings
10:35 AM rigid: and it's linuxcnc without GUI support compiled in. X not running
10:36 AM rigid: i use this, to distribute the threads on CPU 4,3 and 2:
10:36 AM rigid: n=2 ; taskset -a -c -p $(pgrep rtapi_app) | tail -n +2 | while IFS= read -r line ; do p="${line%%"'"*}" ; pid="${p#pid *}" ; sudo taskset -p 0x"${n}" $pid ; n=$[n*2] ; done
10:36 AM skunkworks: what latency are you gettting in linuxcnc? I think the best I ever got was 60us or so.. (but was perfectly fine for mesa)
10:36 AM skunkworks: ah
10:36 AM rigid: i can't really get latency benchmarks since this is without X
10:37 AM skunkworks: right
10:38 AM rigid: i found these settings to be the optimal compromise high speed + low latency: period1=9000 period2=25000
10:40 AM rigid: i thought about patching https://github.com/LinuxCNC/linuxcnc/blob/master/src/rtapi/uspace_rtapi_app.cc#L1051 but I don't dare touching it :)
10:42 AM rigid: btw, there is "latency-histogram --nox" to run without GUI. Ironically X still needs to run for this to work :-(
10:43 AM rigid: oh, no i was wrong. I just forgot rip-environment
10:47 AM rigid: sadly I can't reset the min/max then, so I get readings from when I didn't run taskset, yet (like first 4s of the video). But after that, values stay pretty solid:
10:47 AM rigid: 232 s servo min: -17.000 us max: 16.600 us sdev: 0.100 us
10:47 AM rigid: 234 s base min: -6.200 us max: 11.600 us sdev: 0.200 us
11:55 AM roycroft: vectric 11.55 was just released
12:26 PM CaptHindsight: "Vectric CNC software is designed to make cutting parts on a CNC an enjoyable and productive experience"
01:20 PM Tom_L: JT-Cave, what about the 7i95T requires 2.10? did he update hostmot2?
01:24 PM travis_farmer: now that my machine is nearing production, if even on a small scale, i am thinking about compiling some documentation, schematics, setup notes, etc into paper copies in some 3-ring binders... not just for me, but when i am dead and gone, somebody else will want to figure out how to make this machine work...
01:25 PM Unterhaus__ is now known as Unterhausen
01:25 PM Unterhausen: I want a bambu labs 3d printer, is that so wrong?
01:26 PM Unterhausen: they have been shipping the wrong printer lately, mildly amusing to watch the outrage
01:26 PM skunkworks: Ben heck did an hour review of one of their printers..
01:27 PM skunkworks: I think I pretty much watched the whole thing.
01:28 PM Tom_L: skunkworks, what lcnc version are you running on the lathe?
01:29 PM skunkworks: The one I am goofing around in the basement - I am running bookworm with whatever is in the debian repository.. And master.
01:29 PM skunkworks: 2.9 something and master
01:29 PM Tom_L: is master 2.10 now?
01:29 PM skunkworks: yes
01:30 PM Tom_L: is 2.9 in the bookworm repo yet?
01:31 PM skunkworks: it is in the repo - but it is a pretty old version. I think andy is trying to get a the latest snapshot in to debian but I don't know if that is going to happen.
01:32 PM Tom_L: yeah i noticed that the other day that's why i wondered if it ever made it
01:32 PM skunkworks: I have not heard - and afraid to ask as I think it is all on andy.
01:32 PM Tom_L: seems like it
01:39 PM Tom_L: any idea what gauge wire parport cables typically are? 22?
01:39 PM Tom_L: 24?
01:39 PM travis_farmer: dang windows update... rebooted without asking me... :-(
01:39 PM Tom_L: it doesn't need your permission. it own's yer arse
01:40 PM travis_farmer: apparently...
01:40 PM Unterhausen: I assume it's not a pro version? Mine always asks and lets me set the time. Then it turns out I'm awake at 330 am when I told it to update
01:40 PM CaptHindsight: LPT cables vary, I have some with fat cords but thin conductors, some advertise the gauge
01:41 PM skunkworks: Unterhausen: https://www.youtube.com/watch?v=hHx2H-IPeBw
01:41 PM skunkworks: it is pretty random
01:41 PM Unterhausen: I just scheduled the update for 3:04 tomorrow morning. Hopefully I can get to bed before then
01:42 PM CaptHindsight: "Sadly they force you to use their own slicer."
01:42 PM Unterhausen: it's a closed system, which is bad
01:42 PM Unterhausen: wonder if they are using klipper under the hood
01:42 PM CaptHindsight: easy enough to swap controllers and drivers :)
01:43 PM Unterhausen: it's really fast though, probably hard to make it work as well with another controller
01:43 PM CaptHindsight: unter: what is the attraction to their models?
01:43 PM Unterhausen: speed
01:43 PM skunkworks: He wasn't too impressed with the speeds. But I think he liked it.
01:44 PM CaptHindsight: "The X1 has so many things I dont want to like and so many things I do like. If it weren't for their firmware/cloud nonsense...."
01:44 PM Unterhausen: is there something else that is fast for the same price?
01:44 PM Unterhausen: maybe my delta :)
01:44 PM skunkworks: lol - every so often I drive by the mach groups..
01:44 PM skunkworks: https://www.youtube.com/watch?v=hHx2H-IPeBw
01:44 PM skunkworks: oops
01:45 PM skunkworks: that
01:45 PM skunkworks: https://groups.io/g/MachCNC/topic/lathe_g_code_question_issue/98835085?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,98835085,previd%3D9223372036854775807,nextid%3D1662828674277077564&previd=9223372036854775807&nextid=1662828674277077564
01:46 PM skunkworks: 2 lines of gcode.. 2
01:46 PM Unterhausen: I would really rather not use klipper for my delta
01:48 PM skunkworks: Ben also did a video on klipper. I had never heard of it. I must live under a rock.
01:49 PM Unterhausen: it's pretty nice. Input shaping and speed.
01:49 PM skunkworks: yah - I saw that. I could probably convert my ender 3 - but not sure about my monoprice mini
01:50 PM Unterhausen: I have thought about using it on my mini
01:50 PM Unterhausen: it is possible, but I'm not sure it's wise
01:50 PM skunkworks: is your delta a monoprice?
01:50 PM Unterhausen: nope, it's made by Unterhausen Industries
01:50 PM skunkworks: lol - cool!
01:51 PM Unterhausen: still not finished
01:51 PM skunkworks: If was was to build a 3d printer - I was always going to do a delta..
01:52 PM skunkworks: Don't really know why.. Probably just looks cool.. :)
01:55 PM CaptHindsight: https://ko-fi.com/koconnor originally wrote Klipper, he also wrote seabios
02:13 PM Unterhausen: I'm trying to remember the packages that are like klipper
02:16 PM Unterhausen: I really like my delta. Misumi makes extrusions that have the perfect shape for a triangular structure
02:16 PM Unterhausen: the problem is actually turning it into a 3d printer.
04:15 PM travis_farmer: man, it is absolutly POURING rain right now...
05:12 PM Unterhausen: I suspect we were in that rainstorm yesterday. Made the classic beginner mistake of driving to a place where it was about to start raining.
05:48 PM memleak: This is all a work-in-progress but I have a wiki page now for my Gentoo PREEMPT_RT image for LinuxCNC: https://openlunchbox.com/mw19/index.php/HOWTO:_Gentoo_for_LinuxCNC
05:49 PM Tom_L: nice
05:49 PM memleak: I haven't tested this on Debian bookworm, I'm not sure if Debian's automounting will break the script
05:49 PM memleak: https://github.com/NTULINUX/gentoo_backup/blob/linuxcnc/installer.sh
05:54 PM memleak: It will definitely work with systemrescue but it will also be possible to wipe the wrong drive by accident if you select the unintended block device.
05:56 PM memleak: It's a heavily tuned and optimized Gentoo image for x86_64-v2 processors (SSE4.2 for example is required) with PREEMPT_RT good to go, you install LinuxCNC yourself after the install and you reboot into Gentoo, but it's as easy as sudo emerge --sync && sudo emerge linuxcnc
05:57 PM memleak: You log out, log back in, and you're good to go.
05:57 PM memleak: The installer takes 99% of the work out of Gentoo lol
05:58 PM memleak: It works off flash drives, MMC, SDHC cards, AHCI and NVMe controllers.
05:59 PM memleak: Not every single ATA controller has been included but I grabbed all the usual suspects.
06:01 PM memleak: Most of the common NICs are included, realtek, atheros, broadcom, intel, and ralink
06:02 PM memleak: Over time, whatever is missing will work it's way into the image/kernel if there's any demand for it.
06:03 PM memleak: so USB wifi cards for example shouldn't be a problem
06:05 PM memleak: I thought the ability to test Gentoo + PREEMPT_RT off a USB drive would be a pretty cool feat so I made sure it all worked.
06:06 PM memleak: Not everyone has spare hard drives or SSDs but pretty much everybody has a throw-away flash drive :)
06:29 PM memleak: Oh, and the display never turns off by default :)
06:30 PM memleak: Ships with LXQt and XFCE
06:32 PM skunkworks: https://www.youtube.com/watch?v=ZYMcPxqabAo
06:35 PM Tom_L: skunkworks, you home to the end of the lathe for zero?
06:36 PM Tom_L: no sound so who knows what you're yammering about.. :)
06:37 PM skunkworks: lol - no one needs to hear me..
06:37 PM skunkworks: yes - I usually home away from the chuck
06:38 PM Tom_L: not used to doing it that way on a lathe
06:38 PM skunkworks: Actual 0 can be anywhere.. but I normally just use it as is with work offsets.. (and tool offsets)
06:38 PM Tom_L: i know
06:39 PM Tom_L: iirc when i ran the okuma i homed off either the chuck or end of the work piece
06:39 PM Tom_L: that's been quite some time back...
06:39 PM skunkworks: I am used to the K&T having only positive numbers from the original control..
06:39 PM skunkworks: sure
06:40 PM Tom_L: it had soft stops you could set too so the tool never hit the chuck
06:41 PM skunkworks: neat! the one lathe we have homes the same way - x away from the chuck - z away from the chuck
06:42 PM Tom_L: i don't remember alot about it since my bud only had the one lathe and we didn't run alot of lathe parts
06:42 PM Tom_L: i do still have the quick reference for it
06:51 PM skunkworks: I am figuring on putting a 
06:53 PM skunkworks: sorry - laptop acted stupid with the internet
06:57 PM Tom_L: you were saying?
07:14 PM skunkworks: I was figuring on putting a microswitch on the tail stock so if I try to home it with the tail stock mounted it would estop
07:38 PM memleak: LMFAOOOO
07:58 PM sinned691500 is now known as sinned69150
08:52 PM Unterhausen: the ben heck review convinced me I didn't want to spend my own money on a bambu labs
08:52 PM Tom_L: heh
08:53 PM XXCoder: its pretty good for its price, but I wouldnt buy due to few reasons
08:54 PM XXCoder: company middle manager denies all warranties. guy blamed "lack of maintance" for olvious milling failure
08:56 PM Unterhausen: that was pretty ugly. How much can it cost them to replace a couple of rods. Or a complete printer for that matter
08:58 PM XXCoder: indeed
08:58 PM XXCoder: funny how one guy is destroying company atm
08:58 PM XXCoder: they better fire the guy before company dies
09:19 PM Unterhausen: I doubt it will have a noticeable effect, unfortunately. Hopefully they will do the right thing just to make it stop though