#flex-dev Logs
Feb 14 2025
#flex-dev Calendar
04:24 AM Tom_L: morning
04:47 AM JT-Cave: morning
06:16 AM JT-Cave: damn I had to go outside and reset the sat and it's damn cold outside
07:01 AM Tom_L: not as bad as it was yesterday here... 18F
07:09 AM JT-Cave: 25°F with a flood watch for tonight through sat night
07:31 AM Tom_L: early weekend here
07:49 AM JT-Cave: here too, mine started yesterday when I got home
07:56 AM Tom_L: same
07:57 AM Tom_L: last paste <radius> #<radius>
07:57 AM Tom_L: on 12
08:04 AM JT-Cave: https://paste.debian.net/1349806/ ?
08:04 AM JT-Cave: ah ok
08:05 AM JT-Cave: https://paste.debian.net/1349983/
08:05 AM JT-Cave: current state
08:06 AM JT-Cave: almost got touch screen tool change sorted out
08:10 AM Tom_L: cool
08:12 AM Tom_L: does M6 T#1021 G43 call a toolchange comp even if it's the current tool?
08:12 AM Tom_L: but sets G43
08:15 AM JT-Cave: I'm not sure the tool change is initiated by iocontrol.0.tool-change going true
08:18 AM JT-Cave: you might test to see if it changes when the tool number is the same
08:19 AM Tom_L: ok
08:19 AM Tom_L: i'm fiddling with mine a bit this morning as well
08:19 AM Tom_L: seems to work
08:29 AM Tom_L: if #1021 = 1 and tool = 0 it calls the toolchange comp
08:30 AM Tom_L: if #1021 = 1 and tool = 1 it doesn't
08:36 AM Tom_L: if #1021 = 2 and tool = 1 it calls the toolchange comp
08:36 AM Tom_L: if #1021 = 2 and tool = 2 it doesn't
09:07 AM * JT-Shop gets some fires going
09:07 AM JT-Shop: one problem I used to have with tool change is not knowing when iocontrol.0.tool-change changed state
09:08 AM JT-Shop: but now I can monitor that and use that to either enable a tool change done button or popup a tool change done thing
09:08 AM Tom_L: yeah
09:08 AM JT-Shop: the popup is appealing because no matter what tab your on it shows up when a tool change is requested by code or mdi
09:09 AM Tom_L: i don't have a tool option on my op settings
09:09 AM Tom_L: but it's interesting how different codes do the same thing... i'll post what i've been testing
09:10 AM Tom_L: i'm not using X in the cycle
09:10 AM Tom_L: since it's already there the angle moves it to the next hole
09:11 AM Tom_dev: https://paste.debian.net/1349993/
09:12 AM Tom_L: i was testing your tool thing at the top
09:13 AM Tom_L: and i mislabelled angle.. it should be count
09:14 AM JT-Shop: I think 40 should be ahead of 39
09:15 AM Tom_L: it goes back to the original hole center there
09:16 AM Tom_L: then retracts
09:16 AM JT-Woodshop: not if you cancel the g92 before
09:16 AM Tom_L: it does, it goes back to G54 X0 Y0
09:17 AM Tom_L: it's already at G92 X0 Y0
09:19 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/hole_pattern1.png
09:20 AM Tom_L: or you can leave it and retract at the last hole, just personal preference there
09:20 AM JT-Woodshop: if x start is 2 and y start is 2 you move to x2y2 then set g92 x0 y0?
09:20 AM Tom_L: yes
09:20 AM JT-Woodshop: if you cancel g92 then you move back to the origin
09:20 AM JT-Woodshop: if that's what you want
09:20 AM Tom_L: right
09:21 AM Tom_L: i start at the pattern center and end there
09:21 AM Tom_L: but during the cycles it doesn't go back there now
09:23 AM JT-Shop: so you use x0 y0 as the start?
09:24 AM Tom_L: i still use the angle reference to start, that way i can start some place other than 0 deg
09:24 AM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/hole_pattern2.png
09:24 AM Tom_L: shown there
09:24 AM Tom_L: if you use coordinates you can't shift the angle
09:25 AM Tom_L: LN 23
09:25 AM JT-Shop: sure you can you just have to set the center to X0 Y0 with G92
09:25 AM Tom_L: i still do that
09:28 AM Tom_L: i haven't tested it without using G92 but it may not be needed now
09:30 AM JT-Cave: you could get a surprise if you started at XY not 0 if you wanted it to stay centered over the part
09:31 AM Tom_L: that's true
09:31 AM Tom_L: i tested it with X0 Y0 and G92 commented out and it worked
09:31 AM Tom_L: but like you say, if you use an offset it won't
09:33 AM Tom_L: yeah for that you do need it
09:33 AM Tom_L: just tested :)
09:35 AM JT-Cave: if you're doing bolt holes from a drawing most likely X0 is left edge of part and Y0 is the back edge at least for me that's how I usually do it
09:35 AM Tom_L: true
09:36 AM Tom_L: that should still work with G92 in place
09:38 AM JT-Shop: that's where g92 is a good fit when doing polar
09:38 AM Tom_L: yup
09:39 AM JT-Shop: did you notice the special comment in my code?
09:39 AM Tom_L: learning as i go
09:39 AM Tom_L: where?
09:39 AM JT-Shop: it's not in the docs :(
09:39 AM JT-Shop: in the tool section
09:39 AM Tom_L: no
09:40 AM Tom_L: lately i've been trying to sleep this cold off as much as i can
09:40 AM Tom_L: been kinda lax in my job :)
09:44 AM JT-Cave: https://paste.debian.net/1349998/
09:44 AM JT-Cave: I've been pasting up the wrong file lol
09:45 AM Tom_L: heh
09:45 AM Tom_L: what am i looking for?
09:45 AM JT-Cave: 9
09:45 AM JT-Cave: line 9
09:45 AM Tom_L: you didn't notice i used that already :)
09:46 AM Tom_L: 3
09:46 AM JT-Cave: nope
09:46 AM Tom_L: https://paste.debian.net/1349993/
09:46 AM Tom_L: abort
09:46 AM JT-Cave: see it now
09:46 AM Tom_L: like i said, learning as i go :)
09:46 AM JT-Cave: did you find that in the docs?
09:46 AM Tom_L: somewhat
09:47 AM Tom_L: do a search for abort and a couple mention it
09:47 AM JT-Cave: I found a reply from Andy on the forum but not found it in the docs anywhere
09:47 AM Tom_L: http://linuxcnc.org/docs/2.4/html/gui_halui.html
09:47 AM Tom_L: that refers to a pin though
09:48 AM Tom_L: https://linuxcnc.org/docs/html/config/iov2.html
09:48 AM Tom_L: makes reference to it regarding tool change
09:50 AM Tom_L: https://linuxcnc.org/docs/2.6/html/code/Code_Notes.html#_abort
09:50 AM Tom_L: that seems to be the best reference to it
09:50 AM JT-Shop: yup saw that but it doesn't say how to issue an abort
09:51 AM JT-Shop: http://linuxcnc.org/docs/stable/html/gcode/overview.html#gcode:comments
09:51 AM JT-Shop: it should be there
09:51 AM Tom_L: yeah
09:51 AM * JT-Shop goes to fill the deer feeder
09:52 AM Tom_L: i wouldn't have known about it otherwise
09:52 AM Tom_L: with my code you can use both coordinate offset and angular combined
09:53 AM Tom_L: i can't really test yours
09:53 AM Tom_L: without adding or changing the vars
09:53 AM JT-Shop: yeah we use different vars
09:54 AM Tom_L: i started out there with the probe stuff and just stayed in that range
09:54 AM Tom_L: i figured it should be high enough to be out of everybody else's way
09:56 AM JT-Shop: it's always local to your gui
10:12 AM Tom_L: even if somebody used some ops in their flex gui?
10:13 AM Tom_L: anyway, that was my reasoning
10:14 AM JT-Shop: if they used your subs they would need to use the same vars or change them
10:16 AM Tom_L: i meant some of their own
10:18 AM JT-Shop: it doesn't matter they would have to coordinate the var numbers from all
10:19 AM Tom_L: true
10:19 AM JT-Shop: the main thing is they have a bullet proof pattern and they can use what ever vars they want
10:20 AM * JT-Shop heads out for some corn
10:29 AM Tom_L: later i may try modding the countersink & rigid tap ops to start on hole 1
11:05 AM lcnc-relay: <roguish> good morning ......well,m 4.1 inches of rain yesterday..... that's a lot for here...
11:35 AM JT-Shop: we might get a lot of rain tonight and tomorrow
11:39 AM lcnc-relay: <roguish> it was a deluge here.... lite rain most of the day, with periodic dumps....
11:47 AM Tom_L: JT-Shop, can you do a normal angular move with ^ ?
11:50 AM JT-Shop: about the origin yes
11:53 AM Tom_L: without a drill cycle?
11:53 AM JT-Shop: if your not in a canned cycle you are specifying the angle to move to
11:53 AM Tom_L: ok i'll work on it some more
12:01 PM JT-Shop: or if you are in incremental it moves ^more each time
12:02 PM Tom_L: ok i think i might have it
12:02 PM Tom_L: or getting closer a step at a time
12:02 PM * JT-Shop prepares to depart
12:02 PM Tom_L: i think i can figure it out
12:16 PM JT-Cave: https://ibb.co/8np6R7ct
12:16 PM JT-Cave: that's after setting g91
12:34 PM Tom_L: yay they all work now
12:35 PM Tom_L: i needed to use G90 since this sub calls 2 others that need it so i just added the angle as i go
12:36 PM Tom_L: angle offset works as well
12:37 PM Tom_L: found a bug
03:47 PM Tom_dev: JT-Cave, https://paste.debian.net/1350029/
03:51 PM Tom_L: remove the Z0 on Ln 11 it's not needed now
04:40 PM Tom_L: just figured out you can do it all in the while loop too
04:40 PM Tom_L: so the first hole call isn't needed. once i'm sure i'll post that version
05:12 PM Tom_dev: trimmed down version witout the first hole calls: https://paste.debian.net/1350037/
05:13 PM Tom_L: all in the while loop
05:31 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/hole_pattern.mkv