#linuxcnc Logs
Jun 27 2024
#linuxcnc Calendar
01:15 AM Deejay: moin
01:39 AM lcnc-relay: <simonbasil> Morning yall!
01:39 AM lcnc-relay: A bit of a update, I have got the spindle motor running and the speed is correct etc.
01:39 AM lcnc-relay: A few questions:
01:39 AM lcnc-relay: It looks like the spindle is not doing a controlled deceleration as the the time to go from 0 to max RPM is different to the max RPM to 0, Do i need to define a deceleration?
01:39 AM lcnc-relay: I now need to add the spindle encoder (a simple hall switch emitting 1 pulse per rev). I know I have encoder on the servo that is significantly better but I just need to get this lathe moving and making parts at the moment as I am a bit behind. I have added what I think is correct at the bottom of the hal file but have not tested this yet, does this look correct?
01:39 AM lcnc-relay: Is it possible to add spindle orient with a single pulse encoder so I can put a M19 at the end of my code to make it easier to get the chuck key hole TDC?
01:39 AM lcnc-relay: I have looked at https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m19
01:39 AM lcnc-relay: Hal:
01:39 AM lcnc-relay: https://paste.debian.net/1321635/
01:39 AM lcnc-relay: Ini:
01:42 AM lcnc-relay: <simonbasil> Morning yall!
01:42 AM lcnc-relay: A bit of a update, I have got the spindle motor running and the speed is correct etc.
01:42 AM lcnc-relay: A few questions:
01:42 AM lcnc-relay: It looks like the spindle is not doing a controlled deceleration as the the time to go from 0 to max RPM is different to the max RPM to 0, Do i need to define a deceleration?
01:43 AM lcnc-relay: I now need to add the spindle encoder (a simple hall switch emitting 1 pulse per rev). I know I have encoder on the servo that is significantly better but I just need to get this lathe moving and making parts at the moment as I am a bit behind.
01:43 AM lcnc-relay: I have added what I think is correct at the bottom of the hal file but have not tested this yet, does this look correct?
01:43 AM lcnc-relay: Is it possible to add spindle orient with a single pulse encoder so I can put a M19 at the end of my code to make it easier to get the chuck key hole TDC?
01:43 AM lcnc-relay: I have looked at https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m19. Is there a idiots guide to implement this?
01:43 AM lcnc-relay: Hal:
01:43 AM lcnc-relay: https://paste.debian.net/1321635/
01:43 AM lcnc-relay: Ini:
01:43 AM lcnc-relay: https://paste.debian.net/1321637/
01:43 AM lcnc-relay: Finally I wanna say thanks to all of you for the help you have provided it really is appreciated!
01:43 AM xxcoder: try to not edit :) as irc people gets a full copy each time
01:44 AM lcnc-relay: <simonbasil> Got it, I did delete and resend but im assuming the outcome is the same to the people on irc
01:44 AM xxcoder: yeah :D
02:12 AM CaptHindsight: spindle braking is also a factor of how the power generated by the spindle gets dumped
02:13 AM CaptHindsight: what is powering the spindle?
02:14 AM CaptHindsight: simonbasil: ^^
02:17 AM lcnc-relay: <simonbasil> I am running a 750w delta servo in step dir and a stepgen in velocity mode
02:19 AM lcnc-relay: <simonbasil> Since the motor is on the bench at the moment and with zero load it is stopping fine but I imagine once I fit it to the machine it will trip the servo drive due to the momentum (not the right word) in the system
04:08 AM JT-Cave: morning
04:41 AM Tom_L: morning
04:51 AM lcnc-relay: <vibram> Hello
05:59 AM lcnc-relay: <die_limonade> I have a similar Servo running my Lathe Spindle and i didnt had problems with the Servo coming to a sudden stop. But my lathspindle is very lightweight...
06:00 AM lcnc-relay: <die_limonade> but defenitly not good for the hardware
06:01 AM lcnc-relay: <die_limonade> I have a similar Servo running my Lathe Spindle and i didnt had problems with the Servo coming to a sudden stop. But my lathespindle is very lightweight...
06:36 AM Tom_L: JT-Cave, estop on, power on, home all, MDI S100 still enables run program etc with no file loaded
06:45 AM onceloved: How do I configure the m19 spindle orientation in the ethercat servo spindle? Is there any related routine?
07:20 AM lcnc-relay: <simonbasil> I'll see how it goes when I mount it. My spindle is a 160mm chuck with the headstock having 32mm through hole so not massively heavy but at 2500rpm will have a fair bit of energy
07:22 AM lcnc-relay: <die_limonade> I had my stiffnes-ratio tuned, which helped a lot. That was a autotuning process on my drive
07:22 AM lcnc-relay: <simonbasil> I can't help with any of this but here is the link for orient on the wiki https://linuxcnc.org/docs/html/gcode/m-code.html#mcode:m19
07:27 AM lcnc-relay: <simonbasil> Got ya the autotune on the delta looks pretty easy so I'm going to do that before I control it as a spindle
08:59 AM lcnc-relay: <amanker> Hi
09:00 AM lcnc-relay: <amanker> Can anyone help me. Using Estop on pendant to activate machine and estop in GUI. I am using remora-spi
09:00 AM JT-Cave: Tom_L, so does any mdi command
09:21 AM * JT-Cave needs a small cheap servo + drive that takes +-10v and has encoder pass through
09:23 AM lcnc-relay: <skunkworks8841> well.. An AMC drive and a random servo would work..
09:52 AM JT-Shop: hmm I don't have any random servos... anyway this is just for testing analog mesa boards on the bench
09:54 AM JT-Shop: a search for amc servo comes up with https://www.a-m-c.com/
09:59 AM lcnc-relay: <skunkworks8841> I was thinking more like
09:59 AM lcnc-relay: <skunkworks8841>...
09:59 AM lcnc-relay: ... https://www.ebay.com/itm/352986292077?itmmeta=01J1D2XZ2QCNJYDV8FB2AMM1B3&hash=item522f9f5f6d:g:DPYAAOSwwz9eWUGt&itmprp=enc%3AAQAJAAAAwLvhM5yAiLNqyH23YmARGOlTn3NpdgifyNJpOErmuJgUl5aJl7ohXddx%2BE5UWBPR%2BkVRab4cJgFG37dkdh0pm6GdLnNyEE--8a6xEEzVSe0TBL5b7fq1fkqpevJLRVU5M522a34vhQtd2fNHJMmw6w3tr9d%2FayYSoXZbRLtqjSqsuj1EGQciDZp8dOBeHZeTq2a2xOuXF8%2FRmIzBFvv38CrsN79ORnoQaxjcj0rVAAk%2FabqQAsq%2F19IjtBE3TQeijg%3D%3D%7Ctkp%3ABk9SR8zx96KLZA
10:00 AM lcnc-relay: <skunkworks8841> 12 amp 60v
10:00 AM JT-Shop: https://www.ebay.com/itm/352986292077?itmmeta=01J1D2XZ2QCNJYDV8FB2AMM1B3
10:01 AM JT-Shop: that's cheap enough
10:01 AM lcnc-relay: <roguish> skunkworks8841: good morning. just got on here. what are ya'll talking about AMC drives? I use digital ones with my brushed DC motors. have a few analog ones also.
10:01 AM JT-Shop: I do have a tiny brushless motor of some kind but no encoder on it
10:02 AM JT-Shop: roguish got up a bit early today and did 20 miles
10:02 AM * JT-Shop goes to clean chicken poop
10:02 AM lcnc-relay: <roguish> JT-Shop: good on ya guy.
10:02 AM lcnc-relay: <roguish> i have a few smallish brushless motor with encoders. want them?
10:02 AM lcnc-relay: <roguish> could be free
10:03 AM lcnc-relay: <roguish> and a pair of Mesa brushless drives....
10:04 AM lcnc-relay: <roguish> skunkworks8841: I like AMC drives
10:11 AM lcnc-relay: <roguish> dang. gotta reboot. just did a few driver changes. back in few.
10:42 AM JT-Shop: rouguish if you want to donate a motor and drive to the Mesa CT project I'll be happy to send you a shipping label
10:43 AM lcnc-relay: <roguish> JT-Shop: so, what exactly do you need? i'll see if I have it, or let you know what the closest thing is that I do have
10:43 AM lcnc-relay: <roguish> yes, i would definitely help ya out.
10:44 AM lcnc-relay: <roguish> it's the least I can do
10:44 AM JT-Shop: any servo drive that takes +- 10vdc input and has pass through encoder
10:44 AM JT-Shop: size doesn't matter... well not too big LOL
10:45 AM JT-Shop: so anything I can connect to a 7i97t or 7i77 and test Mesa CT
10:46 AM lcnc-relay: <roguish> ok, I'll check exactly what I have and put up a list..... you choose.
10:46 AM JT-Shop: ok thanks
10:47 AM lcnc-relay: <roguish> I have a bunch of little dc motors with encoders..... not big enough for a machine, but definitely good enough for testing...
10:47 AM lcnc-relay: <roguish> HP encoders
10:51 AM JT-Shop: if I can drive them from an analog mesa card that's all I need
10:51 AM lcnc-relay: <skunkworks8841> With most of the older amc drives like I posted - the encoder doesn't go to the drive - only hal
10:51 AM lcnc-relay: <skunkworks8841> (if brushless)
10:51 AM JT-Shop: might hook up a screw with limit switches and home switch
10:51 AM lcnc-relay: <skunkworks8841> the encoder would go directly to linuxcnc)
10:51 AM JT-Shop: ok
10:52 AM lcnc-relay: <skunkworks8841> you would run the drive in current mode or such.
10:59 AM JT-Shop: lunch time here
11:03 AM CaptHindsight: heh worked on a LCNC router last night, the PC has had terrible jitter for a decade and they used it anyway
11:04 AM CaptHindsight: i don't know how it even cut straight with 250,000uS jitter
11:04 AM CaptHindsight: over a LPT port
11:56 AM JT-Cave: FedSex has delivered my package and scared the deer off
11:56 AM onceloved: How do I configure the m19 spindle orientation in the ethercat servo spindle? Is there any related routine?
12:11 PM Unterhaus_ is now known as unterhausen
12:11 PM unterhausen: there is a gentoo binary? Checking for other signs of the end times
12:26 PM pcw--home: Do you have a video card? I think the on card graphics with Core Duos have issues with modern OS's
12:29 PM Guest72: i do yes an ati card, didnt think that would be an issue ill uninstall it and try again
12:30 PM Guest72: thankyou
12:31 PM Guest72: did you mean the onboard graphics causes problems/
12:32 PM pcw--home: The issue I had was that the on card graphics are not supported by later graphic interfaces
12:32 PM pcw--home: What issue do you have when installing?
12:40 PM Guest72: on card as in add in card not onboard? i was having trouble on a dell optiplex 980, tom suggested i download a clean install image from debian.org with the rtai kernel the modules and linuxcnc 2.9.2, so i did that and installed it on the 980, it worked flawlessly, so the 780 which was running my machine previously,(not great latency because i
12:40 PM Guest72: kept breaking the install trying to install the rtai kernel as it has preempt rt kernel on deb 10 buster 2.8.4) i wanted to use as a backup and because my latency is so low on the 980 i thought id try it on the 780, install from the debian 12 bookworm image fine, get into the OS, install GDEBI to install the 3 packages, install the packages and
12:40 PM Guest72: reboot into rtai kernel, linuxcnc, the latency test ect just take forever to load, like 5 mins and get errors when they do, tried installing 4 times this morning with the same result
12:43 PM Guest72: also when i try to shut down it lock on the screen with all the writing before shutdown
12:43 PM pcw--home: I don't have any recent experience with RTAI
12:44 PM Guest72: i mean idk wether its the rtai kernel or the card thats causing it, i can remove the graphics card and try again to eliinate that as a cause i suppose, only spent 7 hrs on it lol whats another 2 or 3
12:47 PM Guest72: i was sceptical to use d12 bookworm but the latency on the 980 is at 6-7 thousand on the base thread when trying to overload the cpu, and the newer features on lcnc 2.9.2 if i can get it to work
01:20 PM unterhausen: I assume there is some kernel setting that doesn't work well on the processor in that computer and rebuilding is the only solution
01:21 PM unterhausen: It's a bit daunting to do that though
02:43 PM roycroft: i have been liberated from my wrist brace!
02:43 PM roycroft: and my doctor says i'm healing remarkably well
02:44 PM xxcoder: awesome
02:46 PM roycroft: yeah
02:47 PM xxcoder: looking up storage options ugh
02:48 PM roycroft: he says i should wear the brace for another month when i'm doing something strenuous with my left arm, but otherwise i don't need to wear it, and i don't need to wear it when i'm sleeping any more
02:48 PM xxcoder: no more clubbing yourself in head eh
02:50 PM roycroft: what's really important is that the country fair is coming up soon, and i'll want to be braceless for that, for the most part, and right now my let forearm is almost alabaster white, while the rest of my arms and most of my body have a decent tan
02:50 PM xxcoder: tell them that it was recently regrown ;)
02:50 PM roycroft: it looks really funny when i have the brace off, but now i should have time to get some sun on my arm before the fair
03:06 PM CaptHindsight: roycroft: \0/
03:31 PM JT-Shop: wow a sharp blade on the benchtop bandsaw makes a huge difference
03:31 PM JT-Shop: I think the one's I had were 25 years old
03:32 PM CloudEvil: :)
03:44 PM rdtsc2: had good luck with bladeserpent.com
03:44 PM lcnc-relay: <skunkworks8841> lol..
03:54 PM Connor: So, in the FreeCAD CAM Discord room, we're having some discussion about a Masso controller. The way T# M6 works vs M6 T#
03:54 PM Connor: As far as I know lcnc, considers them both the same?
03:57 PM Connor: They're saying in large machines.. Issuing the T# first, allows for the tool to prep. then M6 does the tool change.. at least, i think that's what they're saying..
03:57 PM Connor: https://www.masso.com.au/tool-change-commands/
04:05 PM lcnc-relay: <captainhindsight_.> Masso controller https://www.masso.com.au/product/masso-g3-cnc-controller/ US $890.00. US $1,290.00 with touchscreen https://www.masso.com.au/product/masso-g3-touch-cnc-controller/
04:08 PM lcnc-relay: <captainhindsight_.> someone posted the CPU they use, can't find the link right now
04:27 PM Connor: So, yea, MASSO is saying, T2 M6, preps tool 2, then loads it..
04:28 PM Connor: Whiles M6 T2 will load the previous prepped tool, and preps T2 for the next load..
04:28 PM Connor: Is this common on other controllers?
04:51 PM lcnc-relay: <roguish> JT-Shop: yeah. good blade makes a world of difference. I use a bi-metallic skip tooth, I think it's called. also last a long time...
04:52 PM JT-Shop: on my big bandsaw I use a wood slicer for resawing
04:53 PM JT-Shop: on the metal bandsaw I use lenox bi-metal blades, last time I bought one was 22
04:55 PM lcnc-relay: <roguish> could be time for a replacement......lol
04:55 PM JT-Shop: the little bandsaw my dad had is the one I was using for some fine work
04:55 PM JT-Shop: so long as it's sharp I'm good
04:55 PM lcnc-relay: <roguish> hey, i'm thrifty tooo
04:56 PM JT-Shop: I used to buy the often when I was building a lot of machines
04:57 PM JT-Shop: it's not about being thrifty if it ain't broke don't fix it
05:00 PM roycroft: i've always liked starrett variable pitch blades for my metal bandsaws
05:02 PM JT-Shop: I found the Lenox blades last longer in a production environment like I used to have
05:05 PM JT-Shop: I stand corrected the blade in the metal bandsaw is dated 10/2020
05:47 PM * JT-Shop calls it a night
05:56 PM CaptHindsight: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/5783/XCN23009.pdf
05:57 PM CaptHindsight: Product Discontinuation Notice for XC9500XL, CoolRunner XPLA3, CoolRunner II, Spartan II and
05:57 PM CaptHindsight: Spartan 3, 3A, 3AN, 3E, 3ADSP Product Families
05:57 PM CaptHindsight: good thing Mesa did many redesigns using other vendors
06:40 PM lcnc-relay: <roguish> CaptHindsight: Peter is a very smart guy....
07:28 PM skunkworks: Connor: the way linuxcnc would work - if you have it setup this way - Calling a T2
07:28 PM skunkworks: would pre-select tool number 2
07:28 PM skunkworks: The M6 would be the physical tool change
07:29 PM Connor: Yea. For a Rack tool changer, or a carousel tool changer (That doesn't use a tool change arm) It doesn't matter, as we're not prepping the tool.
07:29 PM skunkworks: So - you could do a M6T2 - linuxcnc would fetch and change to T2. Then on the next line - you could do a T3 and linuxcnc would fetch T3
07:30 PM skunkworks: then later you could do an M6 and it would switch out T2 with T3
07:31 PM Connor: Right. They're working with the post-processor in FreeCAD.. They're just doing M6 T# across the board.. no preloads or anything.
07:31 PM lcnc-relay: <skunkworks8841> The messo way is not a very good way of doing it..
07:31 PM lcnc-relay: <skunkworks8841> Did I put the T and M in the right order?
07:31 PM lcnc-relay: <skunkworks8841> whilst different lines is more of a gcode way.
07:32 PM lcnc-relay: <skunkworks8841> (order on a gcode line should not and normally doesn't matter)
07:32 PM xxcoder: yeah thankfully. lol
07:33 PM Connor: T# preloads tool. M6 Changes it.. So, fist tool T2 M6 on the first line.. then Do T3 next line.. do some cutting, while cutting, machine is prepping T3 for the next M6 command
07:33 PM Connor: that's how masso is saying it works.
07:33 PM lcnc-relay: <skunkworks8841> oh - that sounds right
07:33 PM Connor: But, that only matters if you have a tool changer that can prep the tool.
07:34 PM lcnc-relay: <skunkworks8841> That is how the K&T does it. I call a T way before I need it as the tool chain is rather large
07:34 PM lcnc-relay: <skunkworks8841> right
07:34 PM Connor: and I'm guessing for lcnc, you would need to remap T command to something so you could prep the tool..
07:34 PM lcnc-relay: <skunkworks8841> No
07:34 PM lcnc-relay: <skunkworks8841> T and M6 are 2 separate things. You have too prepare and tool change..
07:34 PM lcnc-relay: <skunkworks8841> tool
07:34 PM lcnc-relay: <skunkworks8841> but the machine hal loops would have to be setup correctly
07:35 PM Connor: Okay. Well.. I'll go back to the FreeCAD folks and see if we can get the lcnc post processor (along with masso) doing T# then M6 and a look ahead for larger machines..
07:36 PM lcnc-relay: <skunkworks8841> https://www.youtube.com/watch?v=39q6kvrSBSk
07:36 PM lcnc-relay: <skunkworks8841> I am calling the next tool after the tool change so it is 'almost realdy' for the next tool
07:37 PM Connor: So, how does lcnc prep the tool via hal?
07:37 PM lcnc-relay: <skunkworks8841> ^that is a good example
07:38 PM lcnc-relay: <satiowadahc> https://linuxcnc.org/docs/2.8/html/config/iov2.html
07:38 PM lcnc-relay: <satiowadahc> Via iov2
07:38 PM lcnc-relay: <skunkworks8841> or https://linuxcnc.org/docs/stable/html/man/man1/io.1.html
07:38 PM lcnc-relay: <skunkworks8841> Via iov1
07:38 PM lcnc-relay: <skunkworks8841> lol
07:40 PM Connor: Well.. I got my answer.. I'll see about getting the post processor updated..
07:40 PM lcnc-relay: <satiowadahc> Correct if I'm wrong M6 T2 will still prep tool 2 before changing to tool 2? I want to go test this now
07:41 PM lcnc-relay: <satiowadahc> ... and my laptops dead. Damn. Maybe in a few minutes then
07:43 PM Connor: It will prep it, but it does it all in one shot. So, your having to wait for it to get the tool, then change it. If you had issues the T2 way back before you needed it, then only issue the M6 command, it'll be waiting on you.
07:43 PM Connor: when you issue the M6 command..
07:43 PM Connor: and as soon as you issue your M6 command, go ahead and do your next tool number on the next line..
07:44 PM Connor: so, it's being prepped for the next change..
07:51 PM xxcoder: any of you ever bought co2 injector for drinks device? if so, how long do co2 bottle last?
08:05 PM rdtsc_away is now known as rdtsc
08:10 PM rdtsc: @xxcoder hmm if the cylinder is say, twice the size of a nomal bottle and a 2,000psi, then that should spread out to 100psi over about 20 bottles. Unsure how correct that back-of-the-napkin is, but sounds logical.
08:11 PM xxcoder: hold on a sec
08:11 PM rdtsc: I know that some of the gas dissolves into the drink
08:11 PM xxcoder: https://www.amazon.com/Sodastream-Exchange-Carbonator-receive-Amazon-com/dp/B082DM585M/
08:11 PM xxcoder: this is bottles
08:11 PM xxcoder: 60l
08:12 PM xxcoder: apparently it says it can make 60 liters of co2 water
08:12 PM xxcoder: dont think it was even stated at main device info
08:29 PM rdtsc: I think Nile Red has a sodastream as well. :) https://www.youtube.com/watch?v=NIVkBs7oWDI
08:30 PM xxcoder: lol yeah I remember that video
10:03 PM rdtsc is now known as rdtsc_away
11:33 PM lcnc-relay: <captainhindsight_.> xxcoder: I got us a whole setup from a bar that closed down off CL. Had several lines for syrup and a 100 cu ft CO2 tank for $150.
11:34 PM xxcoder: lol thats a whole lot of co2 drinks if its food safe