#flex-dev Logs
Feb 23 2025
#flex-dev Calendar
04:34 AM Tom_L: morning
05:08 AM JT-Cave: morning
06:47 AM JT-Cave: my parts went back to Cape Girardeau again and have departed there for some unknown place
08:25 AM Tom_L: roll the dice
09:04 AM JT-Shop: finally fixed task_mode stuck in MODE_MDI from mdi commands that don't cause any motion
09:05 AM Tom_L: i saw that... i'll build right after a shower
09:27 AM Tom_L: PR #277
09:37 AM Tom_L: most of the snow is melted except in the shade
10:09 AM JT-Shop: we still have quite a bit of snow on areas that are in the shade or somewhat insulated from the ground
11:30 AM Tom_L: 67F tomorrow 71F Tuesday
11:50 AM JT-Shop: nothing below freezing after tonight
03:29 PM lcnc-relay: <ccatlett1984@> @ JT take a look at this config when you get the chance.
03:29 PM lcnc-relay: https://github.com/ccatlett1984/LinuxCNC_configs
03:29 PM lcnc-relay: it's the first generated one for the 7c80. I'm not getting any movement at all when attempting to home. Also, doesn't seem to support me setting the alarm pins for each axis (closed loop stepper drivers)
03:32 PM Tom_L: did you load the spi driver?
03:32 PM Tom_L: i see hostmot2
03:33 PM Tom_L: loadrt hm2_rpspi
03:34 PM Tom_L: it loads below the hostmot2 one
03:34 PM Tom_L: # hostmot2 driver loadrt hostmot2
03:34 PM Tom_L: # hm2_rpspi for spi
03:34 PM Tom_L: # loadrt hm2_rpspi
03:35 PM lcnc-relay: <ccatlett1984@> should be using spix
03:35 PM Tom_L: well load that one then
03:35 PM Tom_L: you still need both i'm pretty sure
03:35 PM lcnc-relay: <ccatlett1984@> trying to get mesaCT to do this 😉
03:35 PM lcnc-relay: <ccatlett1984@> apparrently, i've missed a thing
03:36 PM Tom_L: i don't see it
03:37 PM lcnc-relay: <ccatlett1984@> the ini is specifying hm2_spix for the driver, and i think that populates in to main.hal
03:37 PM Tom_L: loadrt [HM2](DRIVER)
03:37 PM Tom_L: possibly there
03:38 PM lcnc-relay: <ccatlett1984@> from ini
03:38 PM lcnc-relay: [HM2]
03:38 PM lcnc-relay: DRIVER = hm2_spix
03:38 PM Tom_L: yeah
03:38 PM Tom_L: rpi5?
03:39 PM Tom_L: it has to load on the 1st spi port i'm pretty sure
03:39 PM Tom_L: someone had issues there once
03:39 PM Tom_L: what's halshow look like?
03:40 PM lcnc-relay: <ccatlett1984@> https://github.com/jethornton/mesact/pull/135/files here is my PR so far.
03:40 PM lcnc-relay: lemme go grab a halshow from the mill
03:40 PM lcnc-relay: <ccatlett1984@> _really should setup VNC_
03:40 PM Tom_L: see if it shows any board pins
03:41 PM Tom_L: i dunno what they look like on that but it should be clear
03:41 PM lcnc-relay: <ccatlett1984@> does linuxcnc need to be open when i run it, i assume?
03:43 PM Tom_L: yes
03:43 PM lcnc-relay: <ccatlett1984@> kk
03:43 PM Tom_L: if you're running axis it's on the menu
03:46 PM Tom_L: you could also run linuxcnc from a terminal and look at the output
03:46 PM Tom_L: make sure things are loading right
03:51 PM lcnc-relay: <ccatlett1984@> lots of pins, pushed a txt file to the repo with it
03:51 PM JT-Shop: https://paste.debian.net/1354357/
03:51 PM JT-Shop: ccat
03:52 PM lcnc-relay: <ccatlett1984@> that works
03:52 PM Tom_L: yeah it's loading
03:53 PM Tom_L: the 7c80 io are there
04:22 PM lcnc-relay: <ccatlett1984@> does everything look alright in the hal? this is the first one i've generated with my additions to mesaCT
04:24 PM JT-Shop: I took a quick look and didn't spot anything but testing is the key
04:38 PM lcnc-relay: <ccatlett1984@> welp, i can't get any movement at all
04:40 PM JT-Shop: open up halshow and setup a watch window for the signals used to move the axis
04:40 PM lcnc-relay: <ccatlett1984@> https://cdn.discordapp.com/attachments/970073721291292702/1343349596511801344/image.png?ex=67bcf34e&is=67bba1ce&hm=339efdad32a93093d8a970455164c350e10a3479274d6accf174cba364d6fa3c&
04:42 PM lcnc-relay: <ccatlett1984@> motors are cool, no buzzing/humming when i command to home
04:43 PM JT-Shop: steppers?
04:43 PM lcnc-relay: <ccatlett1984@> closed loop steppers
04:44 PM JT-Shop: do the steppers turn freely when powered up
04:44 PM lcnc-relay: <ccatlett1984@> walking down to the mill, sec
04:53 PM lcnc-relay: <ccatlett1984@> motors spin freely, so they are not getting enabled
04:53 PM JT-Shop: stepper drivers usually have a disable pin not an enable pin so check that
04:56 PM lcnc-relay: <ccatlett1984@> so, invert that pin?
04:56 PM JT-Shop: typically yes
04:56 PM lcnc-relay: <ccatlett1984@> i'm coming from fdm land, and all those drivers are enable, not disable
04:57 PM lcnc-relay: <ccatlett1984@> how do i invert this in mesaCT? I suppose I should do it manually first
04:58 PM JT-Shop: if you're using an output then there is an invert box if supported, check the hal pins to see if it is
04:58 PM lcnc-relay: <ccatlett1984@> i'm configuring it unser drive 0 - 2
04:58 PM lcnc-relay: <ccatlett1984@> under
04:59 PM lcnc-relay: <ccatlett1984@> no separate output pins
04:59 PM lcnc-relay: <ccatlett1984@> assuming the +5V pin on the stepgen header is being told it's the enable pin
05:08 PM lcnc-relay: <ccatlett1984@> https://photos.app.goo.gl/8Apjwme8LkDGGJNZA
05:08 PM lcnc-relay: <ccatlett1984@> that's how i have them wired up
05:12 PM JT-Shop: I'm not familiar with the rpi boards
05:13 PM JT-Shop: do your drives have an enable or disable input that is where I'd start
05:14 PM JT-Shop: next I'd verify that I'm supplying the correct signal to the drives to enable them
05:14 PM lcnc-relay: <ccatlett1984@> according to the silkscreen on the drivers, in the album i linked. there is an ENA+ and ENA-
05:14 PM JT-Shop: on the mesa board or the stepper drive
05:15 PM lcnc-relay: <ccatlett1984@> stepper driver
05:15 PM lcnc-relay: <ccatlett1984@> i also have a printout of the mesa pinouts in that album
05:15 PM JT-Shop: that sounds like the drive wants an enable but what does the manual say?
05:16 PM lcnc-relay: <ccatlett1984@> don't have a manual for them
05:17 PM lcnc-relay: <ccatlett1984@> didn't come with the DMC kit
05:17 PM JT-Shop: that sucks
05:17 PM JT-Shop: what does a multimeter show on ena when powered up
05:18 PM lcnc-relay: <ccatlett1984@> as in, when linuxcnc is running and power is enabled?
05:18 PM JT-Shop: just guessing here without docs you don't even know what voltage the ena is wanting
05:19 PM JT-Shop: is it 5v or 24v...
05:19 PM JT-Shop: can you find the manual for the drives online?
05:20 PM lcnc-relay: <ccatlett1984@> steppers themselves are 36v, it's wired for 5v for the enable (since that's what the mesa card outputs)
05:20 PM lcnc-relay: <ccatlett1984@> let me go see if the mesa card is actually outputing anything on that pin
05:20 PM JT-Shop: that's a good start to check the output of the mesa card
05:23 PM lcnc-relay: <ccatlett1984@> i'm getting 0v out on the 5v+ pin on the mesa card
05:23 PM lcnc-relay: <ccatlett1984@> for all 3 drives
05:24 PM JT-Shop: so now you need to figure out what hal pin turns that on
05:24 PM JT-Shop: in show hal you can toggle unconnected pins
05:27 PM lcnc-relay: <ccatlett1984@> FALSE hm2_7c80.0.stepgen.00.enable
05:28 PM Tom_L: JT-Shop, PR #278
05:28 PM JT-Shop: thakns
05:29 PM Tom_L: C3 at a standstill until the lost come home?
05:35 PM lcnc-relay: <ccatlett1984@> JT, setting that pin in halshow, still doesn't give me 5v out on those pins
05:35 PM lcnc-relay: <ccatlett1984@> I'm going to email mesa and ask
05:51 PM JT-Shop: Tom_L, yup
05:54 PM JT-Shop: taking the torqueometer back to my friend tomorrow
06:04 PM * JT-Shop calls it a night
06:05 PM Tom_L: later
08:48 PM lcnc-relay: <ccatlett1984@> JT, so config was missing literally ALL the stepgen stuff