#linuxcnc Logs

Jan 10 2024

#linuxcnc Calendar

04:40 AM travis_farmer: Morning
05:06 AM JT-Cave: morning
06:11 AM JT-Cave: I hate freezing rain
06:44 AM JT-Cave: going to be a cold weekend here
07:09 AM JT-Cave: Mesa CT now can do a 7i97T configuration... on to making a working BP config
07:12 AM Tom_L: yippee!
07:14 AM pcw-home: Important settings on the 7I97, 7I97T: both must use "offset" mode PWM
07:16 AM pcw-home: Also PWM rates: 75 KHz, and "dither" mode set
07:17 AM JT-Cave: setp hm2_[MESA](BOARD).0.pwmgen.02.output-type 1 #PWM pin0
07:17 AM JT-Cave: setp hm2_[MESA](BOARD).0.pwmgen.02.offset-mode 1 # offset mode so 50% = 0
07:17 AM JT-Cave: setp hm2_[MESA](BOARD).0.pwmgen.02.scale [JOINT_0]SCALE
07:18 AM JT-Cave: setp [HMOT](CARD0).pwmgen.pwm_frequency 48000
07:18 AM JT-Cave: hmm missed that one... is it correct?
07:18 AM JT-Cave: it's from the sample config
07:18 AM pcw-home: Dither only for 7I97T currently (most 7I97 firmware doesn't support it yet)
07:18 AM JT-Cave: how to set dither?
07:19 AM pcw-home: So actually best is 48 KHz no dither setting for 7I97 and 75 KHz Dither set true on 7I97T
07:19 AM JT-Cave: ok thanks
07:22 AM pcw-home: setp hm2_[MESA](BOARD).0.pwmgen.02.dither true
07:24 AM pcw-home: (only on 7I97T and LinuxCNC 2.9.1 and >) The dither parameter would not be there otherwise
07:25 AM JT-Cave: I'm running 2.9.2 but don't see a dither pin
07:26 AM pcw-home: its a parameter
07:29 AM JT-Cave: https://paste.debian.net/1303621/
07:29 AM JT-Cave: that's all the parameters for pwmgen 0
07:30 AM JT-Cave: sorry wrong file
07:31 AM JT-Cave: nope it's the 7i97t
07:31 AM JT-Cave: I have too many files open...
07:33 AM pcw-home: It might be that the firmware on the card doesn't have dither (it needs a version 1 PWM gen, which is shown in the .pin file)
07:34 AM JT-Cave: let me look
07:34 AM pcw-home: (the version of the modules is shown)
07:35 AM pcw-home: should look like:
07:35 AM pcw-home: Module: PWM
07:35 AM pcw-home: There are 6 of PWM in configuration
07:35 AM pcw-home: Version: 1
07:35 AM pcw-home: Registers: 5
07:35 AM pcw-home: BaseAddress: 4100
07:35 AM pcw-home: ClockFrequency: 160.000 MHz
07:35 AM pcw-home: Register Stride: 256 bytes
07:35 AM pcw-home: Instance Stride: 4 bytes
07:35 AM JT-Cave: Module: PWM
07:35 AM JT-Cave: There are 6 of PWM in configuration
07:35 AM JT-Cave: Version: 1
07:35 AM JT-Cave: Registers: 5
07:35 AM JT-Cave: BaseAddress: 4100
07:35 AM JT-Cave: ClockFrequency: 160.000 MHz
07:35 AM JT-Cave: Register Stride: 256 bytes
07:35 AM JT-Cave: Instance Stride: 4 bytes
07:36 AM JT-Cave: verify return fail so maybe I need to flash it
07:36 AM JT-Cave: Module: PWM
07:36 AM JT-Cave: There are 6 of PWM in configuration
07:36 AM JT-Cave: Version: 1
07:36 AM JT-Cave: Registers: 5
07:36 AM JT-Cave: BaseAddress: 4100
07:36 AM JT-Cave: ClockFrequency: 160.000 MHz
07:36 AM JT-Cave: Register Stride: 256 bytes
07:36 AM JT-Cave: Instance Stride: 4 bytes
07:36 AM JT-Cave: Verify Firmware
07:36 AM JT-Cave: Returned: Failed
07:36 AM JT-Cave: Checking file... OK
07:36 AM JT-Cave: File type: Efinix bin file
07:36 AM JT-Cave: Verifying FLASH memory sectors starting from 0x100000...
07:37 AM JT-Cave: |
07:37 AM JT-Cave: Error at 0x10004E expected: 0xA but read: 0x16
07:38 AM pcw-home: If its a version 1 pwmgen, the driver should create a dither pin so that's a mystery
07:40 AM JT-Cave: did you have some other firmware on that card?
07:40 AM JT-Cave: Verifying 7i97t_7i74d.bin on 7i97t yep
07:41 AM JT-Cave: it has that firmware
07:41 AM JT-Cave: Verifying 7i97t_d.bin on 7i97t
07:42 AM JT-Cave: now dither shows up
07:42 AM JT-Cave: so dither is not in 7i97t_7i74d.bin
07:43 AM pcw-home: (it should be ) if the PWMgen is version 1 it has dither if version 0 it does not
07:45 AM JT-Cave: hmm I should have just read the hmid to see the version
07:45 AM JT-Cave: but too late now :)
07:48 AM pcw-home: I was just afraid that LinuxCNC had somehow regressed and lost the dither support
07:49 AM pcw-home: but it seems OK
07:52 AM JT-Cave: yup I think that the board you sent me had version 0
07:54 AM pcw-home: the 7i97t_7i74 bin file might be wrong as well, I can't check anymore :-)
07:54 AM pcw-home: well, until we get our production 7I97Ts
08:02 AM JT-Cave: I can check it in a bit... time to start my chicken day
08:04 AM JT-Cave: Module: PWM
08:04 AM JT-Cave: There are 6 of PWM in configuration
08:04 AM JT-Cave: Version: 0
08:04 AM JT-Cave: Registers: 5
08:04 AM JT-Cave: BaseAddress: 4100
08:04 AM JT-Cave: ClockFrequency: 175.000 MHz
08:04 AM JT-Cave: Register Stride: 256 bytes
08:04 AM JT-Cave: Instance Stride: 4 bytes
08:04 AM JT-Cave: 7i97t_7i74 bin file
08:04 AM JT-Cave: err pin file anyway
08:06 AM JT-Cave: yup just flashed 7i97t_7i74d.bin and read the hmid and got
08:06 AM JT-Cave: Module: PWM
08:06 AM JT-Cave: There are 6 of PWM in configuration
08:06 AM JT-Cave: Version: 0
08:06 AM JT-Cave: Registers: 5
08:06 AM JT-Cave: BaseAddress: 4100
08:06 AM JT-Cave: ClockFrequency: 175.000 MHz
08:06 AM JT-Cave: Register Stride: 256 bytes
08:06 AM JT-Cave: Instance Stride: 4 bytes
08:06 AM pcw-home: OK I will fix that
08:06 AM JT-Cave: thanks for all your help
08:07 AM pcw-home: Thank you!
08:33 AM Tom_L: is 'offset mode' pwm like a phase shift pwm?
08:48 AM pcw-home: No, its just a 50% offset (so a commanded PWM of 0 = 50% duty cycle. -1 = 0 %, +1 = 100%
08:50 AM pcw-home: basically a simple way of getting a bipolar analog out with just PWM (no direction)
08:50 AM Tom_L: ok
10:46 AM JT-Cave: pcw-home, 7i97t_5abobd.bin Module: PWM There are 7 of PWM in configuration Version: 0
10:47 AM pcw-home: OK I'll fix the version on that one also
10:47 AM JT-Cave: 7i97t_7i76d.bin Module: PWM There are 6 of PWM in configuration Version: 0
10:48 AM JT-Cave: 7i97t_7i78d.bin Module: PWM There are 7 of PWM in configuration Version: 0
10:49 AM JT-Cave: 7i97t_7i85d.bin Module: PWM There are 6 of PWM in configuration Version: 0
10:50 AM JT-Cave: 7i97t_7i85sd.bin Module: PWM There are 6 of PWM in configuration Version: 0
10:51 AM JT-Cave: I've checked all the firmware I have here
10:51 AM JT-Cave: looks like all but 7i97t_d.bin have version 0
11:03 AM pcw-home: I should get those fixed by tomorrow
11:06 AM JT-Shop__ is now known as JT-Shop
11:06 AM JT-Shop: ok
11:08 AM jfsimon1981_c is now known as jfsimon
11:31 AM solarwind_ is now known as solarwind
11:32 AM solarwind: XXCoder can you please unban veegee lol I'm losing track of my accounts
12:19 PM travis_farmer: broke 9 shear-pins just trying to clear out the end of the driveway with the snow-blower... the snow is just too wet and heavy for the 23HP JD tractor... had to call in a guy with a plow to finish the driveway, and he won't be able to do it until late...
12:31 PM roycroft: eek
12:31 PM roycroft: speaking of snow, we no have 11.5cm of snow in the forecast for saturday
12:33 PM roycroft: it will also be the coldest day of the season son ar
12:33 PM roycroft: so far, rather
12:41 PM Tom_L: solarwind, veegee was a bad bad boy
12:58 PM Rab: solarwind, see: https://www.milwaukeetool.com/products/2101-22
01:01 PM Rab: 200/600 RPM, clutch, 2-position grip, very compact. High speed is critical for a cordless screwdriver IMO, I won't accept less than 600 RPM. I've used Milwaukee's three generations of that screwdriver for almost 30 years.
01:02 PM Rab: No gyro feature; I've used a gyro screwdriver and found it not to my taste. But I haven't tried the DeWalt.
01:06 PM KREYREN: We have this thing https://github.com/base48/cnc-ng and trying to figure out how to make it move now.. http://store.mesanet.com/index.php?route=product/product&product_id=290&search=7i76e and http://store.mesanet.com/index.php?route=product/product&product_id=58 are out of stock are there any other/better/ideally OSHW variants?
01:06 PM KREYREN: there is an old PC with a https://www.supermicro.com/products/archive/motherboard/x8sti-f this mobo to control it atm
01:06 PM KREYREN: that we wanted to put linux-rt with linuxcnc
01:08 PM Tom_L: not a very stable platform
01:09 PM KREYREN: Tom_L, it's just one side designed the other is mirrored
01:10 PM KREYREN: it's not 20kg gantry held just by one point
01:15 PM KREYREN: Tom_L, so it looks like this in reality https://i.imgur.com/8nbaF41.png
01:16 PM KREYREN: but ye it's a prototype it will have more engineering done
01:49 PM lcnc-relay: <JT (@jt-shop:matrix.org)> Yo
01:49 PM XXCoder: hmm springs come up a lot lately for some reason. clickspring just made a spring video
01:49 PM XXCoder: in clips
01:53 PM XXCoder: well its made in usual clickspring standards lol
01:57 PM lcnc-relay: <JT (@jt-shop:matrix.org)> https://matrix.org/_matrix/media/v1/download/matrix.org/WKYiQnjnPFmLMdFVOalDygCz
01:57 PM lcnc-relay: <JT (@jt-shop:matrix.org)> 400 day clock spring
01:59 PM XXCoder: wow pretty large
02:00 PM XXCoder: insane amount of work https://youtu.be/-9R2SWSL9VI
02:59 PM Unterhaus_ is now known as Unterhausen
03:00 PM Unterhausen: I replaced a microcontroller and programmed the firmware in-circuit for the first time. I was suffering some stress, tbh
03:02 PM roycroft: try patching a running kernel with adb when there are over 200 users logged into the machine :)
03:03 PM * roycroft definintely felt the heat then
03:14 PM Tom_L: <JT (@jt-shop:matrix.org)> Yo yourself
03:15 PM Tom_L: don't let that spring loose
03:16 PM Tom_L: here's one for roycroft https://www.youtube.com/watch?v=-jOnmA6NXZw
03:17 PM Tom_L: he may not like it though
03:18 PM XXCoder: saw that one. interesting but yeah
03:19 PM Tom_L: https://www.youtube.com/watch?v=Yg3Bt591Gg0
03:21 PM Tom_L: KREYREN, plasma table?
03:24 PM KREYREN: Tom_L, the CNC i am working on is a router atm but i want to make it do laser too later
03:25 PM Unterhausen: I have a slab that split in half because of bark. There is one section I need to replace, because it's a big hole
03:26 PM Unterhausen: I'm going to inlay some maple, I think, no epoxy
04:11 PM Tom_L: KREYREN, 7i96s
04:14 PM Tom_L: KREYREN, 7i96s
04:16 PM Tom_L: http://store.mesanet.com/index.php?route=product/product&product_id=374
04:16 PM Tom_L: or
04:16 PM Tom_L: https://mesaus.com/product/7i96s/
04:29 PM KREYREN: Tom_L, sorry libera's tor node is crashing
04:29 PM KREYREN: that looks usable, but i would still prefer something open-source
04:35 PM JT-Cave: good luck
04:54 PM Tom_L: ice cleared from the drive
04:54 PM JT-Shop: looks like we get some sunday
04:59 PM Tom_L: hope it's done here
05:39 PM roycroft: we're still on for a whole lotta rain on friday, followed by a significant amount (for us) of snow on saturday
05:39 PM CaptHindsight: our forecast is for ~10 inches (25cm) snow this Friday
05:40 PM roycroft: it's going to be a very wet week no matter what
05:40 PM CaptHindsight: then we get the below zero F temps next week
05:40 PM sync_ is now known as Sync
05:40 PM CaptHindsight: -23C Sunday night
05:41 PM Tom_L: negative temps here over the weekend too
05:42 PM CaptHindsight: we got a few inches of wet snow yesterday, it settled at maybe 1" on the grass
05:42 PM CaptHindsight: slush everywhere
05:43 PM XXCoder: what is "snow"?
05:43 PM XXCoder: ;)
05:44 PM XXCoder: its been bit colder but still no rain. fri and sat may be very cold but no snow
05:45 PM * JT-Cave calls it a night
05:47 PM CaptHindsight: we have had a pretty mild winter up until now, but the temps average out so now it's time to pay the piper
05:47 PM XXCoder: it sucks that 2023 blew the record hottest year by pretty good mirgin
05:48 PM XXCoder: i hope 2024 will be cooler, but I doubt it
05:50 PM roycroft: it's been a mild winter here as well, but we're going to get some real winter weather soon
05:51 PM roycroft: sunday could be the first day this winter where the daytime high is below freezing
05:51 PM roycroft: it looksl like we'll be back to warmer than average temps by tueseday, though
05:51 PM roycroft: so maybe winter will only last a couple or three days this year
05:56 PM Tom_L: https://www.youtube.com/watch?v=WXtYBkWMLTs
06:21 PM XXCoder: roy yep
06:22 PM XXCoder: "you can do it tv" lol yeah sure I can make 20 million turbines
06:22 PM XXCoder: 20m dollars that is
06:22 PM Tom_L: i think stuff like that is interesting sometimes
06:22 PM XXCoder: yup
06:23 PM XXCoder: I loved how make it tv series
06:25 PM XXCoder: one thing I wonder is grinder attachment. how do it adjust size as its decreasing
06:44 PM XXCoder: well that was interesting watch
07:42 PM Unterhaus_ is now known as Unterhausen