#linuxcnc Logs
May 26 2022
#linuxcnc Calendar
12:13 AM roycroft: i'm liking this time of year
12:22 AM roycroft: i set up my fabrication shop as a finishing room, and i can finish 6 drawer bottoms at a time
12:22 AM roycroft: a week ago it would have taken me two days per group of six
12:22 AM roycroft: today i was able to do it in one day
12:47 AM MrSunshine_ is now known as MrSunshine
02:15 AM Deejay: moin
03:25 AM travis_farmer853: G'Morning ☕
04:53 AM Tom_L: morning
05:11 AM JT-Cave: morning
06:16 AM gloops is now known as gloops`
06:17 AM gloops`: ,
06:17 AM gloops`: this is the place for auto electricians
06:17 AM travis_farmer853: ???
06:18 AM gloops`: electricians anyway
06:19 AM gloops`: so, winscreen washer - works when ignition is turned on (but engine not running) dead when engine is running
06:19 AM gloops`: any pointers
06:19 AM travis_farmer853: this is for LinuxCNC users...
06:20 AM gloops`: yeah i know, i use linuxcnc, built a machine with the help of the people here
06:20 AM travis_farmer853: ...?
06:21 AM gloops`: there were electric minded people here, so..while im mulling this snag over with a cup of tea
06:21 AM gloops`: i thought id ask
06:21 AM travis_farmer853: oh, i see
06:28 AM gloops`: seems like ground issue
06:30 AM travis_farmer853: that was my first thought, but i was distracted by watching the news
06:32 AM gloops`: yeah, will check it in a bit
07:01 AM gloops`: think was wires to pump, went to pull jack off to look, wires fell out, adios
08:02 AM JT-Cave: wonderful, you can't even get a windblows 7 python3 installer any more
08:05 AM travis_farmer853: Just received my Mesa 7i80HD-25 from mesaus.com 😁 packed very well, Thank You very much!
08:06 AM JT-Cave: your welcome
08:37 AM JT-Shop: love this email "hellow which mesa board do I need to control a cnc machine with linuxcnc"
08:38 AM travis_farmer853: LMAO
09:24 AM CaptHindsight[m]: travis_farmer: this channel goes off on tangents all the time
09:28 AM CaptHindsight[m]: serious discussions are mostly on the forums
09:31 AM CaptHindsight[m]: for a while QtPyVPC channel had more LCNC discussion than here
09:53 AM ZincBoy[CAON]066: Pn159 and Pn160 on your drive are the gain and offset settings for the analog input. Using them you can configure the drive to be 0-10V with 0 as full reverse, 5V as zero speed. and 10V as full forward. These drives are very configurable but you really need to read and understand about all of the registers to get the most out of it.
11:31 AM unterhaus: they have big rolls of ethernet cable for $15 at salvage
11:32 AM JT-Cave: lunch minute is up... I wonder if I have enough time to get a couple more rails up before the rains come?
11:44 AM Thorhian7490[m]: Hey Tom_L and pcw---home, what HAL or INI config do I use to configure the "max_limit" and "max_scale"? I can't seem to find anything in my INI file under the spindle section that configures this. I have "[SPINDLE_0]" section in my pregenerated ini, but there doesn't seem to be info in the 2.8 docs about that section in the ini docs?
11:52 AM pcw---home: If you used pncconf and setup the spindle you should have something like:
11:52 AM pcw---home: OUTPUT_SCALE = 2000
11:52 AM pcw---home: OUTPUT_MIN_LIMIT = -2000
11:52 AM pcw---home: OUTPUT_MAX_LIMIT = 2000
11:53 AM Thorhian7490[m]: Are those numbers in RPM?
11:54 AM Thorhian7490[m]: Also, no, those aren't there. I must not have configured Spindle RPMs. Also, why aren't these in the ini docs lol?
11:57 AM pcw---home: ini files can use arbitrary names so they are basically unique to a configuration
11:58 AM pcw---home: And yes, those numbers are in RPM (which is the scaling LinuxCNC uses to export commanded spindle speeds)
12:02 PM Thorhian7490[m]: I see. I'm just a little confused I guess, since pretty much everything in my ini file is documented except for the spindle parameter. Looking at the generated HAL file, it looks like the spindle parameters from the ini file are being fed to the pid hal module. I have a "MAX_OUTPUT" and that is being sent to "pid.s.maxoutput". Guess I need to figure out what "pid.s" pins params need to be fed using the scale, min limit, and max limit
12:02 PM Thorhian7490[m]: ini params.
12:03 PM pcw---home: Yep, those ini file settings are no-ops unless they are referenced in the hal file
12:04 PM pcw---home: The ini file is being used as a way to separate setup constants from the hal file
12:04 PM Thorhian7490[m]: Makes sense.
12:07 PM pcw---home: By separating setup constants, the hal file can be more portable
12:08 PM Thorhian7490[m]: Yeah. Now I'm just trying to read the PID component docs so I can figure out how to limit the analog output going to my servo driver to 10V lol.
12:11 PM Thorhian7490[m]: Do you have any recomendations?
12:12 PM pcw---home: You can limit it with the MAX_LIMIT
12:12 PM pcw---home: assuming you have the default pncconf spindle setup
12:13 PM Thorhian7490[m]: Which I don't because I forgot to configure the spindle part of it...
12:13 PM pcw---home: If you did not setup the spindle in pncconf these may be missing:
12:13 PM pcw---home: #*******************
12:13 PM pcw---home: # SPINDLE
12:13 PM pcw---home: #*******************
12:13 PM pcw---home: setp pid.s.Pgain [SPINDLE_0]P
12:13 PM pcw---home: setp pid.s.Igain [SPINDLE_0]I
12:13 PM pcw---home: setp pid.s.Dgain [SPINDLE_0]D
12:14 PM pcw---home: setp pid.s.bias [SPINDLE_0]BIAS
12:14 PM pcw---home: setp pid.s.FF0 [SPINDLE_0]FF0
12:14 PM pcw---home: setp pid.s.FF1 [SPINDLE_0]FF1
12:14 PM pcw---home: setp pid.s.FF2 [SPINDLE_0]FF2
12:14 PM pcw---home: setp pid.s.deadband [SPINDLE_0]DEADBAND
12:14 PM pcw---home: setp pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT
12:14 PM pcw---home: setp pid.s.error-previous-target true
12:14 PM pcw---home: net spindle-index-enable <=> pid.s.index-enable
12:14 PM pcw---home: net spindle-enable => pid.s.enable
12:14 PM pcw---home: net spindle-vel-cmd-rpm => pid.s.command
12:14 PM pcw---home: net spindle-vel-fb-rpm => pid.s.feedback
12:14 PM pcw---home: net spindle-output <= pid.s.output
12:14 PM pcw---home: # ---digital potentiometer output signals/setup---
12:14 PM pcw---home: setp hm2_5i25.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
12:14 PM pcw---home: setp hm2_5i25.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
12:14 PM pcw---home: setp hm2_5i25.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE
12:14 PM pcw---home: net spindle-output => hm2_5i25.0.7i76.0.0.spinout
12:14 PM pcw---home: net spindle-enable => hm2_5i25.0.7i76.0.0.spinena
12:14 PM pcw---home: net spindle-ccw => hm2_5i25.0.7i76.0.0.spindir
12:15 PM Thorhian7490[m]: Oh nice, those last few lines (the setp hm2 lines) are what I'm missing lol.
12:15 PM pcw---home: you can just run pncconf again (first backing up/moving your current config files)
12:16 PM pcw---home: to get a copy of the spindle ini and hal file boilerplate
12:16 PM pcw---home: thats what I just did to get that hals file section
12:18 PM Thorhian7490[m]: I was kind of nervous to do that since I couldn't remember if I was dumb enough to modify the hal file manually and not use a custom.hal when I first started this project. Most of my work is in custom.hal though. Those hal pins are what I needed though, thank you :)
12:19 PM Tom_L: also fwiw: http://linuxcnc.org/docs/stable/html/man/man9/motion.9.html#SPINDLE%20PINS
12:21 PM Thorhian7490[m]: Ah yes, I had to edit the hal file. PNCConf didn't have an option for the Pi4 and the 7c81 at the time.
12:29 PM Thorhian7490[m]: One more question if you are willing pcw---home, what is the spinout-scalemax value supposed to be? Been trying to find docs on it but no luck searching the man pages.
12:52 PM XXCoder: JT-Cave: you in?
12:57 PM JT-Shop: I'm up here watching it rain
12:58 PM * Tom_L pushes it a bit further east
12:59 PM JT-Shop: I made the correct call a while ago to just pick up all my tools
01:00 PM JT-Shop: I'm right on the edge of it
01:00 PM Tom_L: i've been in the middle of it for a few days. glad to share
01:01 PM XXCoder: nice. hey jt I wonder if you could update the communty page at linuxcnc
01:01 PM XXCoder: discord link need to be updated
01:01 PM JT-Shop: I can do that downstairs
01:02 PM JT-Shop: I wonder why linuxcnc disappeared from element
01:03 PM XXCoder: new discord link is https://discord.gg/SbskPKPJc6
01:03 PM XXCoder: dunno, dont use element
01:04 PM Tom_L: Thorhian7490[m], http://linuxcnc.org/docs/ja/html/man/man9/sserial.9.html
01:04 PM Tom_L: look under 7i76
01:04 PM Tom_L: (float rw) .7i76.0.0.spinout-scalemax: The spindle speed scaling. This is the speed request which would correspond to full-scale output from the spindle control pin. For example with a 10V drive voltage and a 10000rpm scalemax a value of 10,000 rpm on the spinout pin would produce 10V output. However, if spinout-maxlim were set to 5,000 rpm then no voltage above 5V would be output.
01:10 PM travis_farmer853: i may be slow, but at least i am stupid... 🤣
01:10 PM travis_farmer853: it just occurred to me that all the JT users were the same person, but at different locations... 🤣
01:11 PM XXCoder: at same time yes ;)
01:11 PM travis_farmer853: lol
01:12 PM Tom_L: JT-Shop, i still have linuxcnc in element
01:13 PM roguish[m]: JT-Shop: I'm running through Element right now....
01:14 PM JT[m]: There it is
01:15 PM JT-Shop: now to find my printer which gets a new ip every time the power blinks
01:15 PM CaptHindsight[m]: must be some local to JT thing
01:15 PM * Tom_L energises JT[m]'s decoder ring
01:16 PM Tom_L: once in a great while my dynamic ip will change but hardly ever
01:16 PM Tom_L: then i have to fix my server link...
01:17 PM JT-Shop: the printer is usually .51 or .52 but I just us angry ip to find it
01:18 PM cradek: a dhcp server can be told to give the same ip every time to a certain ethernet hardware address
01:18 PM Tom_L: mine is wireless so i seldom have an issue with it
01:18 PM travis_farmer853: sounds like a PITA... i just reserve static IPs on my router for things like printers ad servers...
01:25 PM JT-Cave: interesting I can no longer log into the forum as root to do maintenance
01:26 PM travis_farmer853: must be the Russians fault 😉
01:27 PM JT-Cave: XXCoder, what do you need changing?
01:27 PM XXCoder: discord link, change to https://discord.gg/SbskPKPJc6
01:31 PM JT-Cave: done, give it a few to get published
01:31 PM XXCoder: thanks
01:32 PM Tom_L: i should take all this test code out of my config and make it all nice n pretty
01:33 PM travis_farmer853: while your in there, can you change it to say i am the CEO? ... (kidding) 😉
01:33 PM Tom_L: or try it again now that i have a different spindle
01:33 PM Tom_L: no because i already am
01:33 PM Tom_L: :)
01:33 PM XXCoder: im the cfo
01:33 PM travis_farmer853: lol
01:33 PM Tom_L: ceo cfo coo ....
01:33 PM Thorhian7490[m]: Thank you Tom :)
01:33 PM JT-Cave: I'm the CCO
01:34 PM Tom_L: i've tried to get fired and it's damn near impossible
01:34 PM travis_farmer853: what about CUO? (chief useless officer) 😉
01:35 PM Tom_L: so how come element doesn't have a 32bit client?
01:35 PM Thorhian7490[m]: So the 7i76 has a positive and negative pin out for spinena. Do I need to connect the negative terminal to anything while I use the positive terminal?
01:36 PM Tom_L: it is in the directions that came with the board
01:36 PM Tom_L: but i think so
01:36 PM tcurdt: is there a way to set the IOs of the mesa via command line somehow? mainly just for testing
01:36 PM Thorhian7490[m]: Element is an electron application. If you managed to compile electron for 32-but you could probably run it.
01:37 PM Tom_L: not worth the effort
01:37 PM JT-Shop: tcurdt, yes use setp
01:37 PM JT-Shop: what board?
01:37 PM tcurdt: JT-Shop 7i92
01:38 PM travis_farmer853: so that's a no on me being named the CUO? i guess, by the lack of response 😉
01:38 PM Thorhian7490[m]: Also, it says the spinena pin is fully isolated, and can be used for pull up or pull down, maybe that’s why there is a positive and negative terminal Tom_L?
01:38 PM Tom_L: i believe so. it's been a while since i set mine up
01:40 PM Thorhian7490[m]: So do I just hook up the spindle enable cable to the positive terminal or do I need to hook up positive to my 12V supply and the negative to the spindle driver enable pin?
01:40 PM JT-Cave: tcurdt, GPIO or a daughter card I/O?
01:40 PM Tom_L: Thorhian7490[m], is it rated for a 12v swing?
01:40 PM Tom_L: i'm not sure... i thought it was 10v
01:41 PM tcurdt: JT-Shop the 2x17 pins on P1 and P2 ... no official daughter cards with smart serial ... if that was the question?
01:41 PM Thorhian7490[m]: Nah, I’m talking about the spinena pin, not the analog output pin for controlling the speed. The manual says it can switch up to 100V DC lol
01:42 PM Tom_L: wouldn't that go to an IO pin?
01:42 PM JT-Cave: no, the question was do you have a 7i76 or similar plugged in but you answered my question
01:42 PM Tom_L: so you can switch it in software
01:42 PM JT-Cave: one moment
01:44 PM Tom_L: Thorhian7490[m], take a look at IO16..19 in my wiring chart: http://tom-itx.no-ip.biz:81/~webpage/cnc/configs/NEW_MILL_SHOP_2.8.2/New_Mill_IO_Pinout.pdf
01:44 PM Thorhian7490[m]: Tom_L that’s what I thought. However, the spinena pin is connected to the spinout pin in some way according to the manual. Even when I turn spinena on in software my analog voltage on spinout doesn’t change. So, I figured maybe spinena needs to actually be hooked up for it to fully engage spinout.
01:44 PM Tom_L: bottom of page 1
01:44 PM JT-Cave: halrun
01:44 PM JT-Cave: loadrt hostmot2
01:44 PM JT-Cave: loadrt hm2_eth board_ip=10.10.10.10 config="num_stepgens=0 num_encoders=0 num_pwmgens=0"
01:45 PM Tom_L: Thorhian7490[m], it may not be exactly the same but it's the same chip
01:45 PM JT-Cave: open a second terminal and do halcmd show
01:45 PM Thorhian7490[m]: You are running a 7i47S though?
01:45 PM Tom_L: yes
01:46 PM Tom_L: the analog thing is the same
01:46 PM Tom_L: pins may be different but the signals should be there
01:47 PM tcurdt: JT-Cave the halrun instructions are for me?
01:47 PM Tom_L: tcurdt, yes
01:47 PM tcurdt: ah ... ok :)
01:47 PM * Thorhian7490[m] posted a file: (320KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/pdRSxNPSkIXsDDwxWixVnFJN/7i76man.pdf >
01:47 PM Thorhian7490[m]: Here is the manual. I’ve been reading the operations section about the spindle interface.
01:48 PM tcurdt: the halrun/loadrt etc are commands that come with linuxcnc? (don't have the machine in front of me to check)
01:48 PM JT-Cave: yes
01:49 PM Tom_L: Thorhian7490[m], GND it
01:49 PM Tom_L: the enable
01:49 PM tcurdt: JT-Cave a they are available in a normal terminal shell?
01:49 PM Thorhian7490[m]: Which one lol?
01:49 PM roycroft: well, the rain is returning earlier than forecast
01:49 PM Tom_L: the /ENA signal
01:49 PM roycroft: like within the next few minutes
01:49 PM Tom_L: :)
01:50 PM JT-Cave: tcurdt, all pins will be inputs unless you set them as outputs with hm2_7i92.0.gpio.000.is_output
01:50 PM Thorhian7490[m]: ENA has a positive and negative pin on the board Tom.
01:50 PM Tom_L: the negative one
01:50 PM tcurdt: JT-Cave ok ... that sounds like this needs a config inside linuxcnc
01:51 PM Tom_L: Thorhian7490[m], take a look how i did it
01:51 PM Tom_L: IO 18
01:51 PM tcurdt: I think it makes more sense I'll get back once I have that in front of me
01:51 PM Tom_L: Thorhian7490[m], you ground it then drive the other pin high to enable it
01:51 PM tcurdt: but thx for now! I am sure I'll come with more questions later :)
01:51 PM Thorhian7490[m]: I’ll try it. I don’t know how that makes it work in my head but I’ll try it.
01:52 PM Tom_L: it's 2 ends of an opto isolator
01:52 PM Tom_L: if that helps
01:52 PM Tom_L: one is gnd the other is the +v
01:52 PM Tom_L: you can drive it either way
01:52 PM Tom_L: tie the + high and drive the - low with an IO or vise versa
01:52 PM Tom_L: which ever your setup requires
01:53 PM pcw-home: The 7I76 analog output needs spinena true, 5V to 15V on SPI+ relative to SPIN- (it does not care about the ENA external connections)
01:54 PM Tom_L: the name is confusing... i see SPIxxx and think of SPI
01:54 PM pcw-home: Sorry SPIN+
01:54 PM Tom_L: i know :)
02:01 PM Tom_L: pcw-home, the one on the 7I76 works the same as the one on the 7I47S right?
02:01 PM Tom_L: or is it a little different?
02:01 PM Thorhian7490[m]: Yeah, I have Spin- and Spin+ hooked up already. Problem is that when I set spinena to true in HAL and try to increase the RPM of the spindle the analog voltage stays at ground. I was using a regular GPIO pin to tell the spindle to turn on, and not spinena+ and spinena-
02:01 PM pcw-home: Electrically the same software wise a bit different
02:01 PM Tom_L: so maybe he needs to drive the SPIN- signal instead
02:01 PM Thorhian7490[m]: Spin- is already hooked up to ground. Spin+ is hooked to 12V.
02:01 PM pcw-home: the way to check is toi look at the spinena/spinout pins and spinout-scalemax parameters live with halshow
02:03 PM Thorhian7490[m]: PCW, I’ll go and figure out halshow to double check if I was just seeing things. I’ll be back.
02:06 PM * Tom_L goes afk
02:06 PM pcw-home: No! 5 and 6 are outputs
02:06 PM Tom_L: they are?
02:06 PM pcw-home: yes
02:08 PM Tom_L: so if you used SPNIDLE ENA+ would you ground SPINDLE ENA- ?
02:08 PM Tom_L: or leave it open?
02:08 PM pcw-home: make sure the spinout maxlim is set (to the maximum RPM at 10V)
02:09 PM pcw-home: If the VFD has active low ENA, you ground (common) ENA- and connect ENA+ to the drives RUN pin
02:13 PM Tom_L: and it's driven with motion.spindle.on or in 2.8.x spindle.x.on
02:13 PM Tom_L: ?
02:13 PM pcw-home: if spinout-maxlim is not set its default is 100
02:13 PM Tom_L: seems rather important to set that
02:14 PM pcw-home: yes normally you would connect hm2xxxxxx.spinena to spindle.on
02:15 PM pcw-home: all that stuff would normally be setup by pncconf if the spindle parameters were entered
02:16 PM Tom_L: pncconf must be getting better
02:16 PM Tom_L: i've never used it
02:17 PM * Thorhian7490[m] uploaded an image: (4008KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/KcShCvBwsOJMGfQevSDsiFrH/IMG_5969.jpg >
02:17 PM * Thorhian7490[m] uploaded an image: (1420KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/sUsepOMgULfrrDamtwEhdsXc/IMG_5970.jpg >
02:17 PM Thorhian7490[m]: So the spindle is running a bit over 25 RPM once I turn it on using output 8 on the Mesa board. Here is halshow, and the picture of the drive showing the voltage it is receiving.
02:17 PM Tom_L: Thorhian7490[m], listen to pcw on those pins!
02:18 PM Thorhian7490[m]: I’ve been reading lol.
02:18 PM Thorhian7490[m]: Maxlim is set btw ;)
02:19 PM Thorhian7490[m]: Any idea on what I’m doing wrong pcw-home?
02:19 PM Tom_L: hope you're taking good notes
02:19 PM Tom_L: <- afk
02:21 PM Thorhian7490[m]: I can send the current config too if you want to see it.
02:24 PM pcw-home: It should be about 0V out with the values in the picture
02:29 PM Thorhian7490[m]: So I just used M3 S2000. Here is the current state of halshow and the voltage reaching the Servo drive.
02:29 PM * Thorhian7490[m] uploaded an image: (4008KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/QbMubImOOfSsIlVIdxJEbQoI/IMG_5969.jpg >
02:29 PM * Thorhian7490[m] uploaded an image: (1420KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/SzTKnfJCXKsnBVYIhWdqmMaW/IMG_5970.jpg >
02:32 PM Thorhian7490[m]: I sent the wrong pics …
02:33 PM * Thorhian7490[m] uploaded an image: (4561KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/aPlkTkbWchxqgcFUcKBxpIUW/IMG_5971.jpg >
02:33 PM * Thorhian7490[m] uploaded an image: (1741KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/xUORdxEjNGNixbayIvBCDglD/IMG_5972.jpg >
02:33 PM Thorhian7490[m]: There we go
02:39 PM pcw-home: I would expect about 7 mv with those numbers (4.074*12/5809)
02:40 PM pcw-home: Is the PID setup? (FF0 should be 1.0) and is the PID maxout the RPM at 10V?
02:44 PM pcw-home: M3 S2000 should give you a spinout value of 2000, not 4.xx
02:46 PM Thorhian7490[m]: Hmmm, maxout is set to 2000. Woops. Also, let me grab the hal I have feeding spinout.
02:47 PM pcw-home: (this is complicated a bit by the fact that pncconf uses a PID even if no spindle RPM feedback is used)
02:47 PM pcw-home: This makes sense so that its easier to add feedback if desired later
02:48 PM Thorhian7490[m]: ### Spindle Config... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/3e511bcba8af07f5ed30e441f196d501eb71e193)
02:48 PM pcw-home: to get the PID component to just feed through the command input to the output
02:49 PM pcw-home: it should be setup with FF0 = 1.00 and all other parameters set to 0
02:49 PM Thorhian7490[m]: [SPINDLE_0]... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/fb4e1a9de5cc1819255983d2ac97a9a15f0686b2)
02:50 PM pcw-home: Ack, there should be no scale involved
02:50 PM pcw-home: its 1-1
02:50 PM Thorhian7490[m]: Woops
02:51 PM pcw-home: everything is in RPM
02:51 PM Thorhian7490[m]: Should I just send spindle-vel-cmd-rpm to spinout?
02:52 PM pcw-home: Yes, that will work, but you should use the absolute commanded RPM
02:52 PM Thorhian7490[m]: Okay.
02:53 PM pcw-home: should be about the same name with "abs" added
02:56 PM Thorhian7490[m]: I found it.
02:57 PM Thorhian7490[m]: It's getting it's data from spindle.0.speed-out-abs
03:03 PM Thorhian7490[m]: It's working! Thank you pcw-home!!!
03:04 PM xxcoder8265[m]: 🎉
03:07 PM travis_farmer853: i love that feeling... when something doesn't work... doesn't work... doesn't work... then it finally works!
03:07 PM Thorhian7490[m]: Indeed.
04:03 PM JT-Shop2: Thorhian7490[m]: can you pastebin your ini and hal files, I'd like to verify my Mesa Configuration Tool creates a working spindle
04:24 PM Tarehjerne1563[m: This is not really a linux question, but i found a really nice mori seiki machine that wants 31 kva, however i can only supply constant 12kva with peaks at about 18. Would this be enough? my 1.8kw motor on the manual lathe has more than enough power to do what i normally do.
04:24 PM Tarehjerne1563[m: Essentially, when the CNC moves, would it spike up to 31kva on movements?
04:44 PM Thorhian7490[m]: That would be a problem because I never used PNCConfig to configure the spindle, hence a lot of my troubles lol.
04:46 PM Tom_L: Thorhian7490[m], next time don't listen to me and you'll get it goin alot quicker :)
04:46 PM Thorhian7490[m]: XD You're fine Tom
04:48 PM Tom_L: i remember what i did now... it had been a while
04:57 PM JT-Shop2: Thorhian7490[m]: I want to look at what you did to make the spindle work
04:57 PM JT-Shop2: pncconf is confusing to me
04:57 PM Tom_L: the PID was part of it
04:57 PM Tom_L: had no values entered i think
04:58 PM Tom_L: he bypassed that i believe
04:58 PM JT-Shop2: my tool would not allow that lol
04:58 PM Tom_L: the user may not have answers to all those questions right away
04:58 PM Tom_L: some defaults would be useful
04:59 PM JT-Shop2: my tool has a default button for that
04:59 PM Tom_L: i've not looked at it
05:00 PM JT-Shop2: most things like that are one button setup in my tool
05:01 PM Tom_L: you've come up with quite a few helpful tools lately
05:04 PM JT-Shop2: just need some way to let people know that tool is out there to help them
05:05 PM Tom_L: post a tools section on the forum?
05:07 PM JT-Shop2: too many sections now lol
05:07 PM Thorhian7490[m]: @JT-Shop2 Ill see what I can do.
05:08 PM JT-Shop2: https://forum.linuxcnc.org/27-driver-boards I posted a sticky
05:08 PM JT-Shop2: Thorhian7490[m]: just pastebin the files and I'll sort it out
05:11 PM * JT-Shop2 needs to rig up a spindle for testing
05:12 PM * Thorhian7490[m] posted a file: (9KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/QgyiNXkaoLezQbBBiEMIxTqg/message.txt >
05:12 PM Thorhian7490[m]: There is the INI
05:13 PM Thorhian7490[m]: Sorry, not the ini, the .hal
05:13 PM * Thorhian7490[m] posted a file: (5KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/pcUCegcqvJMWfNfOIUEeHNHX/message.txt >
05:13 PM Tom_L: gawd that's way neater than mine :)
05:13 PM Thorhian7490[m]: This is the ini
05:13 PM Thorhian7490[m]: Let me grab the custom.hal
05:14 PM * Thorhian7490[m] posted a file: (3KiB) < https://libera.ems.host/_matrix/media/r0/download/jauriarts.org/PjLARGaaysdGGNCJtuHhmRjP/message.txt >
05:14 PM Thorhian7490[m]: There is the custom.hal
05:14 PM Thorhian7490[m]: You can read it Tom_L? Good.
05:14 PM Tom_L: mine is a mess but it works
05:15 PM Tom_L: i have alot of test code in it
05:15 PM Thorhian7490[m]: I meant the files I sent. You are on IRC aren't you?
05:15 PM Tom_L: yes
05:15 PM Tom_L: you on matrix or discord?
05:15 PM Tom_L: matrix...
05:15 PM Thorhian7490[m]: Okay good. The discord bridge sent the links to the files.
05:16 PM Thorhian7490[m]: I'm either on Discord or IRC. I have yet to really get into matrix.
05:16 PM Tom_L: i didn't know discord put the [m] on the end
05:16 PM Thorhian7490[m]: I really don't need *Yet Another Electron Application* on my computer.
05:17 PM Thorhian7490[m]: Let me know what you are up to JT-Shop2
05:18 PM JT-Shop2: I have a Mesa Configuration Tool that will create the configuration files for most Mesa cards
05:18 PM JT-Shop2: https://forum.linuxcnc.org/27-driver-boards/45994-mesa-configuration-tool-features
05:19 PM JT-Shop2: Thorhian7490[m]: thanks
05:19 PM Tom_L: JT-Shop2, were those generated with your tool?
05:20 PM JT-Shop2: no, Thorhian7490[m] used pncconf
05:20 PM Tom_L: ok
05:21 PM JT-Shop2: wow what a convoluted external estop
05:22 PM Thorhian7490[m]: Yeah I know. I left some crud in there. I just want my software estop to engage when my hard estop engages man :(
05:23 PM Thorhian7490[m]: Also, does your tool handle the 7c81?
05:23 PM JT-Shop2: I've not got to the 7c81 yet
05:23 PM Tom_L: did you make a custom SPI cable for it?
05:24 PM JT-Shop2: The Mesa Configuration Tool will create the LinuxCNC configuration files for the following:
05:24 PM JT-Shop2: 7i80HD-16, 7i80HD25, 7i80DB-16, 7i80DB25, 7i98 with optionally 7i33TA, 7i37TA, 7i48 daughter cards.
05:24 PM JT-Shop2: 5i25, 6i25, 7i92 with optionally 7i76, 7i77, 7i78 daughter cards.
05:24 PM JT-Shop2: 7i76E, 7i96, 7i96S, 7i97 all in one boards.
05:24 PM JT-Shop2: 7i64, 7i69, 7i70, 7i71, 7i72, 7i73, 7i74, 7i84, 7i87 Smart Serial Cards when used with an all in one board.
05:25 PM JT-Shop2: elif key == 'External E Stop':
05:25 PM JT-Shop2: contents.append('\n# External E-Stop\n')
05:25 PM JT-Shop2: contents.append('loadrt estop_latch\n')
05:25 PM JT-Shop2: contents.append('addf estop-latch.0 servo-thread\n')
05:25 PM JT-Shop2: contents.append('net estop-loopout iocontrol.0.emc-enable-in <= estop-latch.0.ok-out\n')
05:25 PM JT-Shop2: contents.append('net estop-loopin iocontrol.0.user-enable-out => estop-latch.0.ok-in\n')
05:25 PM JT-Shop2: contents.append('net estop-reset iocontrol.0.user-request-enable => estop-latch.0.reset\n')
05:25 PM JT-Shop2: contents.append(f'net remote-estop estop-latch.0.fault-in <= {hm2}\n')
05:25 PM JT-Shop2: hm2 = f'hm2_{parent.board}.0.{card}.0.0.input-{i:02}{invert}\n'
05:26 PM JT-Shop2: that's how I create the external e stop
05:26 PM JT-Shop2: https://github.com/jethornton/mesact/blob/master/mesact/src/libmesact/buildio.py#L144
05:27 PM Thorhian7490[m]: Yeah, so no 7C81, just like pncconf.
05:27 PM JT-Shop2: not yet, I do have one to test with but have not got to that board yet
05:27 PM JT-Shop2: but your files will help me make that happen
05:34 PM JT-Shop2: yea one side of the egg box is glued up and looks nice
05:35 PM * JT-Shop2 discovers that center pin box joints can't be just any width and work out correct
06:00 PM * JT-Shop2 listens to Ernest Tubb
06:00 PM XXCoder: hey anbuselvan[m]
06:00 PM XXCoder: andypugh:
06:06 PM JT-Shop2: last side is glued up for the egg box
06:07 PM JT-Shop2: it appears square and true so maybe I can finish it this weekend
06:09 PM JT-Shop2: Tom_L: I "think" you just need a 40 pin cable from the rpi to the 7c81
06:10 PM Tom_L: i made one when i tested spi on it i just wondered what he did
06:11 PM Tom_L: not 40 though
06:11 PM Tom_L: 26 maybe/
06:11 PM Tom_L: ?
06:11 PM Tom_L: i forget
06:11 PM JT-Shop2: I think the rpi4 is 40 pins
06:11 PM JT-Shop2: but I might be cornfused
06:12 PM Tom_L: yeah you're right
06:12 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Rpi4/Rpi4_top.jpg
06:12 PM XXCoder: rpi4 ios 150 usd too much :P
06:12 PM Tom_L: an IDC won't fit with that heatsink though
06:13 PM JT-Shop2: well that sucks, but didn't they fix the os so a fan or heat sink is not needed?
06:13 PM Tom_L: i'm not sure
06:13 PM XXCoder: or buy different cases
06:13 PM JT-Shop2: I thought I saw something a while back
06:14 PM XXCoder: theres quite a bunch of case designs
06:14 PM Tom_L: i kinda like that heatsink though
06:14 PM XXCoder: or mill it bit bigger
06:14 PM Tom_L: no room
06:14 PM JT-Shop2: I have a case with a fan but it plugs into the header so kills a idc plug
06:14 PM CaptainHindsight: I have a Rpi4 4GB that I''l let for for $100k delivered
06:14 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Rpi4/Case_top_idc.jpg
06:14 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Rpi4/Case_top2.jpg
06:14 PM XXCoder: if you guys is looking to connect normal ribbon cable like one on old PATA hard drive, it should fit already
06:14 PM JT-Shop2: you could get $150 for that right now lol
06:15 PM Tom_L: XXCoder, it would cut into the screw holes
06:15 PM XXCoder: hmm why is case so tight
06:15 PM Thorhian7490[m]: I have one of those black heat sinks. It’s just barely too big for my ribbon cable.
06:15 PM XXCoder: you mean too small for ribbon cable ;)
06:16 PM Thorhian7490[m]: Yeah
06:16 PM XXCoder: wonder if can halfway, shave off case and connector both
06:16 PM Tom_L: heh no
06:16 PM JT-Shop2: depends on how you look at it both are correct
06:16 PM XXCoder: duponts would work I guess
06:16 PM Tom_L: it works fine with ethernet
06:17 PM XXCoder: more tight clearance but dunno if theres one thats big enough
06:17 PM Tom_L: not sure where i put the SPI cable for it now
06:17 PM Thorhian7490[m]: Even though it’s a convenient option, typical ribbon cables are trouble in terms of wire size not being big enough. Also, I’ve heard from multiple people that Ethernet Mesa cards don’t play well with the RPi4.
06:18 PM Tom_L: in what way?
06:18 PM JT-Shop2: they work fine with a rpi4 but not a rpi3 because the ethernet is usb
06:19 PM Tom_L: https://www.youtube.com/watch?v=g0OLIth_cOI
06:19 PM Thorhian7490[m]: Intermittent communication failures, gets desynched. I’ve heard this from multiple RPi4 owners.
06:19 PM Tom_L: i haven't run a large file on mine
06:19 PM CaptainHindsight: Thorhian without actual names it sounds like here say
06:20 PM Tom_L: now who would do such a thing?
06:21 PM Tom_L: what's their servo thread set to?
06:21 PM JT-Shop2: sounds like they used cheap chinlee cables
06:21 PM CaptainHindsight: sounds like configration issues
06:21 PM Thorhian7490[m]: You guys are probably right.
06:21 PM CaptainHindsight: after that it's usually wiring and grounding problems
06:21 PM JT-Shop2: yup
06:22 PM Splat7847[m]: For me it was just a max speed issue with the pi4 and using the 7i76e over Ethernet
06:22 PM Tom_L: or 'i just don't wanna debug it'
06:23 PM Tom_L: Splat7847[m], do you turn your speakers up to 11 too?
06:24 PM JT-Shop2: lol
06:24 PM Tom_L: now i know JT-Shop2 does
06:24 PM * JT-Shop2 wanders inside for the night but first Tom_L must know I'm a veteran cosmic rocker
06:24 PM CaptainHindsight: look at toms wiring and it still works 🙂
06:25 PM Tom_L: :)
06:25 PM JT-Shop2: ROFLAMAO
06:25 PM Tom_L: i dare someone to mess with it!
06:26 PM JT-Shop2: my wife thought I was a good ole country boy until she got behind me in traffic and saw my I heart Pink Floyd sticker on my 81 Custom Deluxe Pickem up truck
06:27 PM Splat7847[m]: No.. but my work area is just over 1200x900mm and with the speed I could get the machine to rapid at with the pi4 it took a good minute and a half or little longer to travel to the far end and back.. with an older but full computer instead it can get up to 20 metres a minute for a full speed rapid movement
06:27 PM JT-Shop2: say goodnight Gracie
06:27 PM Tom_L: who is this Gracie gal anyway...
06:30 PM roycroft: i have a minor update on my project
06:31 PM roycroft: https://roycroft.us/New_Cabinets/08_Drawer_Bottoms_Unfinished.jpeg
06:31 PM roycroft: https://roycroft.us/New_Cabinets/09_Drawer_Bottms_Finished.jpeg
06:31 PM XXCoder: omg drawer full of drawers ;)
06:31 PM XXCoder: nice progress
06:31 PM roycroft: https://roycroft.us/New_Cabinets/10_Drawer_Sides_1.jpeg
06:32 PM roycroft: https://roycroft.us/New_Cabinets/11_Drawer_Sides_2.jpeg
06:32 PM roycroft: all the drawer sides are ripped to width now
06:32 PM Tom_L: looks like a drawer factory
06:32 PM roycroft: that's actually pretty major progress
06:33 PM roycroft: but the weather has turned into the east coast here :(
06:33 PM roycroft: warm and muggy
06:33 PM roycroft: it's not only ucomfortable to work in it, the shellac is taking a long time to dry, so i'm back to 2 days per batch of drawer bottoms, instead of being able to get a batch done in a day
06:34 PM roycroft: anyway, the next step is ripping all those drawer parts to width, then start on the joinery
06:34 PM roycroft: i decided that since i'm using plywood instead of solid wood i'll make box joints instead of dovetails
06:35 PM roycroft: plywood tears out too badly when i dovetail it, and the joints look kind of ugly even when it doesn't tear out
07:12 PM CloudEvil: https://imgur.com/gallery/0mGuqRx
07:12 PM XXCoder: lol
08:38 PM -!- #linuxcnc mode set to +v by ChanServ
10:41 PM ZincBoy[CAON]066: Like most things, it depends. If the 31kva is the nameplate power, then it is the maximum the machine will draw. This number does not tell you the power used as kva includes both real and imaginary portions. Will you be able to use a 31.5kva machine on a 12kva source? Under light cutting conditions quite likely. You may need to turn down the spindle acceleration to keep from tripping the source when starting the spindle. The
10:41 PM ZincBoy[CAON]066: axis drives should not be an issue as they would be around 2kW each on that size machine. Also, if there is a hydraulic pump that will add to the base load.