#linuxcnc Logs
Jan 14 2025
#linuxcnc Calendar
01:53 AM Deejay: moin
02:13 AM lcnc-relay: <meisterdippel@> moin
05:33 AM memleak: rdtsc, unfortunately i can't use dd for this instance lol
05:33 AM memleak: going to use a different usb drive
05:34 AM memleak: and f2fs
05:54 AM memleak: https://github.com/NTULINUX/gentoo_backup/blob/linuxcnc/installer.sh -- asks about partition sizes, filesystem type, etc. with dd you can't let the user customize anything
06:24 AM lcnc-relay: <vibram@> hello
06:24 AM memleak: hey vibram!
10:42 AM -!- #linuxcnc mode set to +v by ChanServ
11:31 AM lcnc-relay: <voiditswarranty@> is there a way to modify the absolute position of a machine without a homing cycle? on this one grinder I have the home position of the vertical axis entirely depends on what's mounted on the tool head. I've got it to use the absolute encoder option and storing the location in the positions.txt file, but I sometimes wish I could change the absolute position (as opposed to the G5x position) occasionally. Not finding an...
11:31 AM lcnc-relay: ... appropriate gcode, but maybe I'm blind
11:44 AM lcnc-relay: <voiditswarranty@> is there a way to modify the absolute position of a machine without a homing cycle? on this one grinder I have the home position of the vertical axis entirely depends on what's mounted on the tool head. I've got it to use the absolute encoder option and storing the location in the positions.txt file, but I sometimes wish I could change the absolute position (as opposed to the G5x position) occasionally. Mostly when tuning...
11:44 AM lcnc-relay: ... linuxcnc than actually using the machine, but it still would be handy on occasion. Not finding an appropriate gcode, but maybe I'm blind. Right now I'm moving the axis to a known position, unhooking the STEP wire from the driver, telling linuxcnc to move to the position I want it to read as, and then reconnecting the wire. Not ideal.
11:45 AM lcnc-relay: <voiditswarranty@> is there a way to modify the absolute position of a machine without a homing cycle? on this one grinder I have the home position of the vertical axis entirely depends on what's mounted on the tool head. I've got it to use the absolute encoder option and storing the location in the positions.txt file, but I sometimes wish I could change the absolute position (as opposed to the G5x position) occasionally. Mostly when tuning...
11:45 AM lcnc-relay: ... linuxcnc than actually using the machine, but it still would be handy on occasion. Not finding an appropriate gcode, but maybe I'm blind. Right now I'm moving the axis to a known position, unhooking the STEP wire from the driver, telling linuxcnc to move to the position I want it to read as, and then reconnecting the wire. Not ideal. Would be useful on another small mill that doesn't have end stops, but so far on that one I pretend to...
11:45 AM lcnc-relay: ... home it with another home mode, pushing the machine to it's stops with the power off and then homing everything to zero.
11:45 AM lcnc-relay: <voiditswarranty@> +Can't push the vertical head on the grinder around though.
11:49 AM Tom_L: would G92 work for you?
11:50 AM Tom_L: sets a new temporary position
11:52 AM Tom_L: ie: move to the position you want then: G92 X0 Y0 and maybe Z0 and that becomes the new zero offset until you issue a G92.1
11:53 AM Tom_L: it's not an absolute position but rather a temporary offset
11:53 AM lcnc-relay: <voiditswarranty@> hhmm, why did I think that wouldn't work? I forget now, maybe it would
11:54 AM Tom_L: pretty handy for what it does
11:55 AM Tom_L: or G92.2 will reset it but keep the parameters
11:55 AM Tom_L: opposed to G92.1
11:56 AM Tom_L: http://linuxcnc.org/docs/stable/html/gcode/g-code.html#gcode:g92.1-g92.2
11:56 AM lcnc-relay: <voiditswarranty@> I think maybe I'm confused between that and G5x offsets. If I wanted to say, G54, then go back to that G92 later, the temporaryness has me worried. But maybe that's what G92.2 solves
11:56 AM Tom_L: yes
11:56 AM lcnc-relay: <voiditswarranty@> does the G5X get applied on top of the G92 or from the absolute position?
11:56 AM Tom_L: no
11:57 AM Tom_L: g92 is like a temporary G54
11:58 AM Tom_L: or G5x
11:58 AM lcnc-relay: <voiditswarranty@> oh, maybe that's why it wasn't going to work, my dressing point is stored in a G5X offset, so I need to move the absolute position when I stick a new wheel on so the G54 is in the right spot
11:58 AM lcnc-relay: <voiditswarranty@> ooorrr, I'm doing things the hard way and I should stop doing that 😄
11:59 AM Tom_L: if you need G54 to dress the stone just issue a G92.2 and you're back in G54 coordinates
11:59 AM Tom_L: with that, keep in mind G90 and G91 behave different
11:59 AM lcnc-relay: <voiditswarranty@> but G54 is an offset based on the absolute position, right?
11:59 AM Tom_L: yes
12:00 PM Tom_L: G92 X0 Y0 becomes the new zero wherever the machine was at when called
12:01 PM Tom_L: then G92.2 returns to G54 but if you were X2 Y2 when you called G92 that's where G54 will show you
12:01 PM Tom_L: and that's why i mentioned G90 G91
12:02 PM Tom_L: one moves absolute and the other moves from the point you're at
12:02 PM lcnc-relay: <xxcoder@> voiditswarranty@: Please don't edit your text here
12:02 PM Tom_L: it's logged
12:02 PM Tom_L: oh
12:02 PM lcnc-relay: <voiditswarranty@> oh right, I forgot, sorry!
12:02 PM lcnc-relay: <xxcoder@> no problem 😄
12:02 PM lcnc-relay: <voiditswarranty@> Tom_L: ooohhhh one is moving absolute. ok then that might work!
12:02 PM Tom_L: i bet you can get that combination to work gloriously for you
12:03 PM Tom_L: i did that on some subroutines i wrote and it's fantastic
12:03 PM lcnc-relay: <voiditswarranty@> Ideally, I change wheels, change the absolute Y for the new wheel, and then I don't need to update my G54 position at all, it just works
12:03 PM Tom_L: also mind you don't have to use all the axis when calling G92
12:03 PM Tom_L: i call G92 x y but not z on some routines
12:04 PM Tom_L: so it only affects the axis you call
12:04 PM lcnc-relay: <voiditswarranty@> super helpful, thank you!
12:05 PM Tom_L: just relocate your new Y and call G92 Y0
12:05 PM Tom_L: and that will be your new Y0 offset
12:06 PM Tom_L: you could do the same thing i think with G54 G55 G56 etc
12:06 PM Tom_L: but your code would have to reflect which offset you needed
12:07 PM lcnc-relay: <voiditswarranty@> but G54/55/56 aren't offset from each other, they're offset from the G92 position, right?
12:07 PM Tom_L: no
12:08 PM Tom_L: they are offsets from world coordinate zero
12:08 PM Tom_L: or machine zero
12:08 PM Tom_L: whatever terminology works best for you
12:09 PM Tom_L: alot of times they are used for multiple fixtures offset say 6" from each other etc
12:09 PM lcnc-relay: <voiditswarranty@> ah yes ok, so to sumarize, G92, G54, G55, etc... they are all offset from the world coordinate zero
12:09 PM Tom_L: you could say that yes
12:10 PM Tom_L: G92 is a bit special
12:10 PM Tom_L: i can move to G54 X1 Y1 and call G92 X2 Y2 and it will be offset 2"
12:10 PM Tom_L: instead of zero
12:10 PM Tom_L: not to confuse you
12:10 PM lcnc-relay: <voiditswarranty@> haha
12:11 PM lcnc-relay: <voiditswarranty@> gonna have to boot up a sim and play, but it the distinctions helped a lot
12:11 PM Tom_L: i feel pretty confident it will do what you want
12:15 PM Tom_L: voiditswarranty, watch this about halfway thru and you'll see how the G92 shifts: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/video/hole_drill_counterbore.mkv
12:15 PM Tom_L: i didn't need it for drilling the holes
12:16 PM Tom_L: so they are done using G54
12:16 PM Tom_L: so basically the counterbore sees X0 Y0
01:14 PM lcnc-relay: <voiditswarranty@> ok yup, G92 shifts the offsets of all work coordinate systems by the same amount. Doesn't get around the problem of the machine physical limits changing, but that's ok I think
01:42 PM lcnc-relay: <voiditswarranty@> Another question that's proving difficult to google for.
01:42 PM lcnc-relay: in the ini file, COORDINATES = X Y Z,
01:42 PM lcnc-relay: A surface grinder is more like a horizontal mill, Z being parallel to the primary spindle axis, so the table left and right is X, forward and backward is Z, and up and down is Y.
01:42 PM lcnc-relay: I know I can change the primary plane using G18 to make it X Z, is it beneficial to also reorder the coordinates so the joint numbers are in a different order? Or is it more common to setup a horizontal mill with COORDINATES in the standard order, and just use G18?
01:48 PM lcnc-relay: <voiditswarranty@> it seems that at least some UI's draw the plot based on the COORDINATES order, so maybe that's the answer
03:50 PM JT-Shop: I think all the gui's use the same plotter
04:13 PM xxcoder: shoot me
04:13 PM xxcoder: I hate how with my health is, fairly simple task tires me out
06:26 PM -!- #linuxcnc mode set to +v by ChanServ
06:34 PM xxcoder: https://www.cbc.ca/news/canada/prince-edward-island/pei-charlottetown-meteorite-strike-first-audio-1.7430018?utm_source=flipboard&utm_medium=activitypub
06:34 PM xxcoder: insane. double lucky
07:07 PM rdtsc: 200km/h is 3333m/s... if it were the size of a marble, it would've done about as much damage as any large-caliber round... ouch!
07:33 PM roycroft: i got primer on my window casing, and now it looks unbalanced
07:33 PM roycroft: i'll see how it looks after color, but i may need to put a cap board above the frieze
07:34 PM roycroft: i was hoping to avoid that, as the ceiling is low on that wall and i want to put a shelf up above the window
07:34 PM xxcoder: plan to put in awnings?
07:34 PM xxcoder: its very effective on lessening heat of summers
07:34 PM Tom_L: how to push a tag to a repo?
07:35 PM roycroft: no, especially on that wall - it's too close to the property line
07:35 PM roycroft: i have venetian blinds for all the windows, though, and i can keep the sun out with them
07:38 PM * roycroft gueses git tag; git commit; git push repro branch
07:38 PM Tom_L: pushing with the url doesn't work with tag i'm told
07:44 PM roycroft: yeah, i just tried pushing a tag with ssh and it did not work
07:46 PM Tom_L: i've never used tags
07:46 PM roycroft: they are supposed to be mostly for local use
07:46 PM Tom_L: trying to figure out how to with ssh
07:46 PM roycroft: i have the tiniest bit of experience with them, and i don't think i've ever tried to push one to a repository
07:47 PM Tom_L: how do you flag versions so you can revert to a certain version?
07:47 PM Tom_L: in code
07:48 PM roycroft: aah
07:49 PM roycroft: git -a tagname -m 'message'
07:49 PM roycroft: git push origin tag tagname
07:49 PM roycroft: bob's your uncle
07:49 PM xxcoder: 😲
07:51 PM roycroft: and this is the bad thing about forced air heating
07:51 PM roycroft: the primer i put on the window casing is an oil-based primer
07:51 PM roycroft: when i painted i the room smelled like paint
07:51 PM roycroft: now the whole house smells like paint
07:51 PM roycroft: not very strongly, thank goodness
08:10 PM Tom_L: he was set for http not ssh git@github
08:42 PM roycroft: both should work
09:14 PM memleak: just curious, how would you guys go about making a fidget spinner spin at thousands of RPMs?
09:14 PM xxcoder: air pressure
09:14 PM xxcoder: saw a video on it
09:15 PM memleak: ahhhh alright! yeah because there's not really a good way of mechanically gripping it
09:16 PM memleak: what if you had to do it with hardware? :P
09:17 PM xxcoder: rubber wheel?
09:18 PM memleak: good idea!!
09:23 PM memleak: github doesn't allow pushes via https btw, has to be ssh
09:23 PM memleak: they did that as a security measure a few years ago.
09:27 PM roycroft: it's easier and faster with ssh anyway
11:55 PM memleak: i kind of miss being able to just copy the url from the browser and drop it into the terminal personally
11:56 PM memleak: now i have to hit clone, then switch https to ssh, then copy that link
11:57 PM roycroft: i don't use github very often
11:57 PM roycroft: i have a gitlab server in-house and use that to manage most of my stuff