#linuxcnc Logs

Jun 25 2024

#linuxcnc Calendar

01:00 AM -!- #linuxcnc mode set to +v by ChanServ
04:09 AM JT-Cave: morning
04:10 AM * JT-Cave reads back
04:10 AM lcnc-relay: <Travis Farmer> Morning
04:34 AM Tom_L: morning
04:38 AM Tom_L: rfl works
04:40 AM Tom_L: only 99F today
05:29 AM lcnc-relay: <simonbasil> Morning all, could someone let me know why am getting "pin 'spindle.0.speed-out-rps' does not exist"
05:29 AM lcnc-relay: It is for a spindle running in step dir and the stepgen is setup for velocity mode
05:30 AM lcnc-relay: <simonbasil> https://jauriarts.org/_matrix/media/v3/download/jauriarts.org/EwwmXbpOspVtDZoHHWyCIgwA/20240625_112343.jpg
05:30 AM lcnc-relay: <simonbasil> https://jauriarts.org/_matrix/media/v3/download/jauriarts.org/xhylErJvZrGycCgbPacmwkVt/20240625_112335.jpg
05:32 AM lcnc-relay: <simonbasil> https://jauriarts.org/_matrix/media/v3/download/jauriarts.org/GwypdeONYrCCyUIzwfWvRKcq/rn_image_picker_lib_temp_853a63b5-be07-4c9e-9780-82dc1ab468c8.jpg
05:33 AM JT-Cave: because you have it in your hal file somewhere and it does not exist
05:35 AM JT-Cave: and that's odd because it seems to be there
05:35 AM JT-Cave: pastbin is much better than screenshots
05:36 AM JT-Cave: https://paste.debian.net/
05:41 AM JT-Cave: sunrise in 9 minutes and off I go
05:45 AM lcnc-relay: <simonbasil> Ok will use pastebin thanks
05:46 AM lcnc-relay: <simonbasil> Could it have something to do with the -sec mot in the debug file?
05:47 AM JT-Cave: yes that -sec is odd
05:47 AM JT-Cave: anyway looks like your using ubuntu rtai which is something I don't use anymore
05:48 AM * JT-Cave heads out for a ride before it gets hot
05:49 AM lcnc-relay: <simonbasil> Haha I feel that
06:01 AM JT-Shop__: you might get a list of pins and see what's being loaded using a bare config
06:01 AM JT-Shop__: https://paste.debian.net/1321423/
06:01 AM JT-Shop__: this ^^ is my notes on doing that
06:01 AM -!- #linuxcnc mode set to +v by ChanServ
06:13 AM lcnc-relay: <simonbasil> Thanks unfortunately it is saying cannot find module hostmod2
06:16 AM rdtsc_away is now known as rdtsc
06:16 AM lcnc-relay: <simonbasil> And when running hm2_pci it gives me the error "error inserting '/usr/ etc etc' : -1 unknown symbol in module
06:23 AM lcnc-relay: <simonbasil> Hal File: https://paste.debian.net/1321427/
06:25 AM lcnc-relay: <simonbasil> ini: https://paste.debian.net/1321428/
06:43 AM lcnc-relay: <simonbasil> Just realised I am using 2.5, I will download and install 2.9. Could this be a potential cause of the problem?
06:45 AM Tom_L: from 2.5 to 2.9 you will need to make some config edits
06:45 AM Tom_L: things like spindle and joint vs axis changed
06:49 AM lcnc-relay: <simonbasil> Ok I'll have a go
06:51 AM Tom_L: motion.spindle went to spindle_x, axis went to joint
06:52 AM Tom_L: there may be a couple others
06:53 AM Tom_L: are you running RTAI or preempt-rt?
06:53 AM Tom_L: there is that too
06:56 AM lcnc-relay: <simonbasil> Thanks and I don't know what rtai or preempt-rt mean haha
06:57 AM Tom_L: type of realtime kernel
06:57 AM Tom_L: generally older hardware would use RTAI and newer use PREEMPT-RT
06:58 AM Tom_L: figure that out before you upgrade
06:59 AM Tom_L: http://linuxcnc.org/downloads/ the bottom of the page has a newer RTAI install and requires all 3 files
06:59 AM Tom_L: do some reading first
07:00 AM Tom_L: and make backups
07:00 AM Tom_L: and now i must get ready to leave
07:02 AM Tom_L: uname -a in a terminal will help you figure that out
07:15 AM lcnc-relay: <simonbasil> Oh I was going to download and Redo the system with debian 12
07:15 AM Tom_L: i know
07:15 AM Tom_L: if it's old hardware, preempt-rt may have poor latency on it
07:15 AM Tom_L: if so, you can try running the RTAI i pointed you to
07:15 AM lcnc-relay: <simonbasil> Aaa thanks
07:15 AM Tom_L: i ran that on an old D525 mb
07:15 AM Tom_L: that originally had wheezy on it
07:15 AM lcnc-relay: <simonbasil> Thanks so much for the help
07:15 AM Tom_L: Debian 8 iirc
07:15 AM Tom_L: it may not just be a simple upgrade
07:15 AM lcnc-relay: <Travis Farmer> if i may pick a brain or two... just took my new-to-me cheap car for a drive, and the check-engine, AT oil temp, Airbag, and Hill-start(?) lamps all came on when climbing a hill... suspecting a bad ground, but what do you folks think?
07:15 AM Tom_L: run
08:02 AM rdtsc is now known as rdtsc_away
08:20 AM faheus2 is now known as faheus
08:28 AM lcnc-relay: <captainhindsight_.> https://www.youtube.com/watch?v=CoO1kakF6jQ don't throw that old worn out Bridgeport away, it can become a work holding device (near end of video)
09:19 AM lcnc-relay: <simonbasil> does anyone know what spindle.0.speed-out-rps would be on v2.5?
09:20 AM JT-Cave: are you running a parallel port or a mesa card?
09:21 AM lcnc-relay: <simonbasil> parallel port
09:21 AM JT-Cave: motion.spindle-speed-out-rps OUT float
09:21 AM JT-Cave: Desired spindle speed in rotations per second
09:22 AM lcnc-relay: <simonbasil> ok thanks
09:22 AM JT-Cave: create your config in 2.5 with the stepconf tool
09:22 AM JT-Cave: http://linuxcnc.org/docs/2.5/html/man/man9/motion.9.html
09:24 AM lcnc-relay: <simonbasil> im going to not mess with it, download speed in the workshop is painfully slow and i want to tinker haha
09:43 AM JT-Cave: if you're running 2.5 then the stepconf tool is already on your pc
09:49 AM * JT-Cave goes back to cleaning chicken poop
09:50 AM JT-Cave: Tom_L, I don't think feed hold does anything useful
10:45 AM lcnc-relay: <perry_j1987> morning
10:51 AM pcw-home: Always thought the nightshade weeds we have around here were poisonous, turns out the fruit are edible and pretty good...
10:52 AM JT-Shop: nice
10:53 AM JT-Shop: I did 17 miles again this morning on the road bike
10:54 AM pcw-home: The berries taste like really sweet tomatoes
10:54 AM JT-Shop: I don't think we have anything like that here
10:55 AM pcw-home: I have not ridden my bicycle much since I had a bad fall (many years ago)
10:55 AM JT-Shop: falling scares the shit out of me
10:56 AM * JT-Shop goes to cut one more part out before lunch
10:56 AM pcw-home: Broke my collarbone (compression into many pieces so have a cupfull of Titanium screws)
11:03 AM JT-Shop: ouch
11:08 AM CaptHindsight: anyone have a 4005 ballscrew ~2000mm long? (40mm dia, 5mm pitch) or similar
11:10 AM lcnc-relay: <roguish> JT-Shop: good ride JT.
11:20 AM lcnc-relay: <Travis Farmer> camera angle is better, but too high, just a smidge... https://youtu.be/PxCFSYZwv2w
11:26 AM JT-Cave: roguish, I "think" I got the derailleur index working right but it's a tad slow shifting to a higher gear so I cleaned and lubed the derailleur
11:27 AM JT-Cave: the new 50t chain ring has some rivits that hit the chain when I'm in the 11t so going to put the orig one back on
11:53 AM * JT-Cave hears a nap calling his name
12:47 PM Tom_L: JT-Cave, somebody thought feed hold was useful enough to put it in lcnc
12:47 PM Tom_L: sure wasn't me
12:58 PM rdtsc2: is there a difference between feed hold and pause?
12:59 PM Tom_L: the end result is the same
12:59 PM rdtsc2: I wonder if "feed hold" is old-school, and "pause" is new-school. :)
12:59 PM Tom_L: except feed hold can (supposedly) be controlled from the gcode file
01:00 PM Tom_L: http://linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m53
01:02 PM Tom_L: then there's this: http://linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m0-m1
01:02 PM Tom_L: also can be switch controlled
01:02 PM rdtsc2: https://duckduckgo.com/?q=gcode+feed+hold looks like interpretation varies; spindle may or may not restart automatically
01:03 PM Tom_L: i don't think either one stops the spindle
01:03 PM Tom_L: just the feed
01:04 PM Tom_L: when i use M0, i have a macro in my post that stops the spindle, issues an M0 and restarts the spindle after it continues
01:04 PM Tom_L: for part orientation etc
01:05 PM rdtsc2: Looks nice and easy in Flex (MDI from buttons that is)
01:05 PM Tom_L: yeah
01:06 PM Tom_L: or a hal button could be used to call a subroutine from MDI_COMMAND in the ini
01:08 PM Tom_L: it's ready enough you could cut parts with it but still has a few quirks to iron out
01:12 PM JT-Cave: feed hold enable can be controlled from M53 but the python feed hold does nothing
01:13 PM Tom_L: did you remove the _lb as well as the button?
01:13 PM JT-Cave: hmm I think I forgot the lb
01:14 PM Tom_L: oh.. did you fix 'file reload' during program run?
01:16 PM Tom_L: doesn't look like it
01:16 PM JT-Cave: what was the issue?
01:17 PM Tom_L: you're able to reload the gcode file while the program is running ;)\
01:17 PM JT-Cave: oh
01:17 PM Tom_L: makes for some interesting results
01:18 PM -!- #linuxcnc mode set to +v by ChanServ
01:18 PM Tom_dev: Error
01:18 PM Tom_dev: can't do that (EMC_TASK_PLAN_CLOSE) in auto mode with the interpreter waiting
01:18 PM Tom_dev: Error
01:18 PM Tom_dev: can't do that (EMC_TASK_PLAN_OPEN) in auto mode with the interpreter waiting
01:19 PM Tom_L: throws that error too
01:19 PM Tom_L: and a synch error
01:20 PM Tom_dev: actually throws a series of errors: http://paste.debian.net/1321474/
01:21 PM Tom_L: the action for that should be disabled as well as any button
01:22 PM Tom_L: reload_pb
01:23 PM Tom_L: ok. salad for lunch... nap time
03:39 PM Tom_L: reload works better
03:46 PM JT-Cave: yippee
03:49 PM Tom_L: did you try anything with that halui and the spindle button?
03:50 PM Tom_L: with the default spindle speed at 1.0
03:50 PM JT-Cave: flex has no idea about halui it's not in the python interface
03:50 PM Tom_L: wonder how to get around the spindle button on a pendant
03:51 PM Tom_L: what was that ini constant for that? do you recall?
03:52 PM Tom_L: maybe if i set that, it will at least start there
03:55 PM JT-Shop: DEFAULT_SPINDLE_SPEED = 100 - The default spindle RPM when the spindle is started in manual mode. If this setting is not present, this defaults to 1 RPM for AXIS and 300 RPM for GMOCCAPY.
03:55 PM JT-Shop: deprecated - use the [SPINDLE_n] section instead
03:56 PM JT-Shop: LOL it's deprecated but no replacement was provided
03:56 PM Tom_L: not appreciated that it was depreciated.
03:59 PM JT-Shop: so I found out today that you can take the valve core out of a presta valve the flats are just tiny and hard to see
04:01 PM Tom_L: you got a core remover?
04:01 PM Tom_L: or do you need one?
04:01 PM Tom_L: i have one screwed to an automotove valve core in that tool box
04:01 PM pcw-home: Thought they only used presta on skinny tire road bikes...
04:01 PM JT-Shop: they make a tool but it's just a couple of flats
04:02 PM JT-Shop: my mtb has presta valves and I was surprised that they didn't use schrader valves
04:03 PM Tom_L: ahh. i set that default spindle speed in the ini yesterday but never got around to testing it.
04:05 PM Tom_L: well let's go see how hot it is out
04:05 PM lcnc-relay: <JT> https://jauriarts.org/_matrix/media/v3/download/matrix.org/LyLHimoaJzRkaRCDmMkwVYSq/20240625_155835_4074944567004260484.jpg
04:05 PM lcnc-relay: <JT> https://jauriarts.org/_matrix/media/v3/download/matrix.org/TSBFoQbQyidytdlVqkhUMOxd/20240625_155925_279953982865980597.jpg
04:06 PM * Tom_L grabs the flex update first
04:07 PM Tom_L: ahh yeah i had an old bike that had those
04:08 PM JT-Shop: hmm I don't see the flats that he showed me on the valve core... must have missed something
04:09 PM Tom_L: i was thinking on the spindle speed spin box about using that to set the S word with mdi. then it would start at the indicated speed
04:11 PM Tom_L: i don't see that it would affect anything else
04:12 PM JT-Shop: I'd have to ponder that a while... kinda don't want to do surprises on folks
04:16 PM -!- #linuxcnc mode set to +v by ChanServ
04:18 PM JT-Shop: spindle(direction: int, speed: float=0, spindle: int=0, wait_for_speed: int=0)
04:18 PM JT-Shop: Direction: [SPINDLE_FORWARD, SPINDLE_REVERSE, SPINDLE_OFF, SPINDLE_INCREASE, SPINDLE_DECREASE, or SPINDLE_CONSTANT]
04:18 PM JT-Shop: Speed: Speed in RPM, defaults to 0.
04:18 PM JT-Shop: Spindle: Spindle number to command defaults to 0.
04:18 PM JT-Shop: Wait_for_speed: if 1 motion will wait for speed before continuing, defaults to not.
04:18 PM JT-Shop: Warning
04:18 PM JT-Shop: MDI commands will ignore this. "S1000" after this will turn the spindle off.
04:20 PM Tom_dev: ok even axis won't read DEFAULT_SPINDLE_SPEED until you move it to [SPINDLE_0]
04:21 PM Tom_dev: then it does
04:21 PM JT-Shop: so it's missing from the docs?
04:21 PM Tom_dev: yes
04:21 PM Tom_dev: everything else in that section is xxx_velocity
04:21 PM JT-Shop: good find, I'll start using it from spindle 0
04:22 PM Tom_dev: [SPINDLE_0]
04:22 PM Tom_dev: DEFAULT_SPINDLE_SPEED = 1000
04:22 PM Tom_dev: MIN_FORWARD_VELOCITY = 0
04:22 PM Tom_dev: MAX_FORWARD_VELOCITY = 5500
04:22 PM Tom_dev: INCREMENT = 100
04:22 PM Tom_dev: flex ignores it from my pendant
04:23 PM Tom_dev: wait a sec...
04:23 PM JT-Shop: flex does not know about your pendant
04:25 PM Tom_dev: i had it listed in both places so axis still reads it from [DISPLAY]
04:25 PM JT-Shop: did you delete it from spindle 0?
04:27 PM Tom_dev: yes
04:29 PM Tom_dev: yeah i was wrong about that. it's still read from DISPLAY
04:30 PM Tom_dev: and flex ignores both
04:30 PM JT-Shop: flex "should" use the one in display
04:30 PM Tom_dev: it doesn't
04:30 PM JT-Shop: it does for me...
04:30 PM Tom_dev: DEFAULT_SPINDLE_SPEED = 1000
04:31 PM Tom_dev: hang on
04:32 PM Tom_dev: yeah it does
04:32 PM Tom_dev: i had that ini set to 500 and the spindle rpm spin box defaulted to 500 so i thought it was pulling from there
04:33 PM Tom_dev: but it still ignores it from the pendant even after it's been run fwd with the button
04:34 PM Tom_dev: i can turn it off with the pendant button but when i go to turn it back on it reverts to 1.0 rpm
04:35 PM Tom_dev: when i set the mdi S1000 the pendant button works
04:42 PM Tom_L: JT-Shop, where was that ^^ warning from?
04:48 PM Tom_dev: so my default spindle speed in the ini is 500 and the spinbox defaults to that and pushing the button starts the spindle at 500. if i mdi S1000, my penant button starts the spindle at 1000 and stops it. if i then push the flex spindle button it starts at 500 again.
04:48 PM Tom_dev: ignoring the set S1000
04:48 PM lcnc-relay: <roguish> Tom_dev: sure am glad you're wringing out all those problems...
04:49 PM JT-Cave: yup, I'll have to ponder spindle speed set from the S word
04:49 PM Tom_dev: JT-Shop, what i'm wondering is if you can mdi the spinbox value as an S word that way both will see the same value
04:50 PM Tom_dev: and if there is an S word set, ignore the default spindle speed in the ini and override it with the Sword as it should
04:50 PM Tom_dev: then it would work with the flex button as well as a pendant button using halui
04:51 PM JT-Cave: how would I know the s word is set?
04:51 PM * JT-Cave wanders up to the shop
04:51 PM Tom_dev: is it stored in the var file?
04:51 PM Tom_dev: it must be able to be read somewhere
04:51 PM Tom_dev: i'll head back in and do some looking
04:55 PM Tom_L: https://linuxcnc.org/docs/2.8/html/config/python-interface.html#_the_code_spindle_code_dictionary_a_id_sec_the_spindle_dictionary_a
04:55 PM JT-Shop: open emc status from axis and change the s word
04:55 PM Tom_L: speed
04:55 PM Tom_L: (returns float) - spindle speed value, rpm, > 0: clockwise, < 0: counterclockwise
04:55 PM JT-Shop: and I see something called settings change
04:55 PM Tom_L: i dunno if that's 'live' or not
04:55 PM JT-Shop: http://linuxcnc.org/docs/stable/html/config/python-interface.html
04:56 PM JT-Shop: that bit above is from ^^
04:56 PM JT-Shop: settings
04:56 PM JT-Shop: (returns tuple of floats) - current interpreter settings. settings[0] = sequence number, settings[1] = feed rate, settings[2] = speed, settings[3] = G64 P blend tolerance, settings[4] = G64 Q naive CAM tolerance.
04:56 PM JT-Shop: well I can monitor it after all
04:57 PM Tom_L: was booting the indoor test pc.. lemme catch up
04:57 PM JT-Shop: [2] = speed, settings
04:57 PM Tom_L: will that show from a terminal?
04:58 PM JT-Shop: just start emc status from axis
04:58 PM JT-Shop: or linuxcnc status if you prefer
04:58 PM JT-Shop: scroll down to settings
04:58 PM Tom_L: it will be sim.. is that ok?
04:58 PM JT-Shop: then change the s word
04:58 PM JT-Shop: don't matter
04:59 PM JT-Shop: turns out none of my presta valves are removable except the last one I got
04:59 PM Tom_L: ok i see speed in the spindle dictionary
04:59 PM Tom_L: is that what you mean?
04:59 PM JT-Shop: no
05:01 PM Tom_L: ok i started an emc sim
05:01 PM Tom_L: where do i find it?
05:01 PM JT-Shop: Machine > Show Linuxcnc status
05:01 PM Tom_L: oh
05:02 PM -!- #linuxcnc mode set to +v by ChanServ
05:04 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/status_window.png
05:04 PM Tom_L: it shows the 1000 at the top but not at the speed
05:04 PM Tom_L: settings
05:07 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/status_window2.png
05:08 PM Tom_L: settings is where you see the change
05:09 PM Tom_L: i dunno what the first one is, the 2nd one is feed, the 3rd one is spindle speed
05:10 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/status_window3.png
05:10 PM Tom_L: shows the feed change
05:12 PM Tom_L: ok i found where you saw that
05:13 PM Tom_L: took a min..
05:13 PM Tom_L: and it's a live update value
05:13 PM JT-Shop: the spindle speed is the current commanded speed and has nothing to do with the S word
05:14 PM JT-Shop: other than if you just did a M3/4
05:14 PM Tom_L: could be but the S word may update it
05:14 PM JT-Shop: it?
05:14 PM Tom_L: the commanded speed
05:14 PM JT-Shop: starting the spindle updates the spindle speed
05:15 PM JT-Shop: ettings 0.0000 0.0000 250.0000 0.0010 0.0000
05:15 PM JT-Shop: spindle 0 brake 0
05:15 PM JT-Shop: 0 direction 1
05:15 PM JT-Shop: 0 enabled 0
05:15 PM JT-Shop: 0 override_enabled True
05:15 PM JT-Shop: 0 speed 0.0
05:15 PM Tom_L: right but that settings tuple is updated live
05:15 PM JT-Shop: yes
05:16 PM JT-Shop: settings speed is updated when you change the s word
05:17 PM Tom_L: brb
05:38 PM Tom_L: too many interruptions
06:07 PM lcnc-relay: <roguish> well, well. forecast 86 today. topped out at 94.5
06:09 PM JT-Shop: I guess I can change out the 50t chainring in the morning while it rains
06:09 PM * JT-Shop calls it a day
06:10 PM lcnc-relay: <roguish> had 2 good rides over the weekend. along the coast of north San Diego county. 25 Sat, 32 Sun. gorgeous
06:10 PM lcnc-relay: <roguish> right along the beach. sand all over the roadway
06:24 PM Tom_L: didn't quite hit 100 here.. just 99
06:43 PM rdtsc_away is now known as rdtsc
09:32 PM CaptHindsight: anyone have a source for rolled 4005 ballscrews in North America?
09:33 PM CaptHindsight: NOS, overstock, over runs etc etc
09:49 PM Tom_L: google says thomson linear
09:50 PM Tom_L: maedler north america
10:23 PM rdtsc is now known as rdtsc_away
10:59 PM lcnc-relay: <big_kevin420> https://www.amazon.ca/Ballscrew-Screw-Machined-Machine-Printer/dp/B0BXDGXT9X?th=1
11:00 PM xxcoder: fancy and expensive for 3d printer lol
11:00 PM lcnc-relay: <big_kevin420> and big
11:01 PM lcnc-relay: <big_kevin420> capt, buy from my korean homies. i buy so much shit from these guys
11:01 PM lcnc-relay: <big_kevin420> https://www.ebay.ca/itm/191963504563
11:01 PM lcnc-relay: <big_kevin420> thats a bit overkill for what you want
11:02 PM xxcoder: 1k isnt too bad for ground screws if I recall right
11:04 PM lcnc-relay: <big_kevin420> for that size, c3, id wager its a good price
11:10 PM -!- #linuxcnc mode set to +v by ChanServ
11:29 PM -!- #linuxcnc mode set to +v by ChanServ
11:29 PM -!- #linuxcnc mode set to +v by ChanServ
11:52 PM -!- #linuxcnc mode set to +v by ChanServ
11:52 PM -!- #linuxcnc mode set to +v by ChanServ