#flex-dev Logs
Sep 14 2025
#flex-dev Calendar
04:30 AM Tom_L: morning
04:51 AM JT-Cave: morning
06:31 AM JT-Cave: wow I'm in here 5 times
06:31 AM JT-Cave: improved python import code in flex
07:26 AM Tom_L: PR #346
09:44 AM JT-Cave: thabnks
10:46 AM Tom_L: did you use your circular pattern to make the c3 hub part?
10:54 AM JT-Shop: no, I did it in the 308
10:59 AM JT-Shop: https://pasteboard.co/M6hoVp3nTMUg.jpg
11:00 AM JT-Shop: https://pasteboard.co/9cirpFD3xE0F.jpg
11:02 AM Tom_L: looks like it will do the trick
11:04 AM Tom_L: i wonder what on the mill (if it is that) could be causing the probe routines to stop with no error/warnings
11:04 AM Tom_L: it has done it with 2 PCs with 2 different mesa cards now
11:05 AM JT-Shop: that's going to be a fun one to find
11:05 AM Tom_L: i'm also pinpointing the version it stops working at and then going to do a compare with it and the next version
11:05 AM Tom_L: to see what if anything stands out
11:06 AM Tom_L: i've not a clue right now
11:06 AM Tom_L: also was going to change a couple probe routines to use a different range of number vars
11:06 AM Tom_L: doesn't seem to do it in the sims
11:08 AM JT-Shop: does a regular program run fine?
11:08 AM JT-Shop: 1.3.0 on the bp probes fine
11:09 AM JT-Shop: look for clues running it in a terminal
11:13 AM Tom_L: regular programs run fine
11:13 AM Tom_L: i tried the terminal too
11:14 AM Tom_L: bbiab... running an errand
11:27 AM JT-Shop: nap time here
11:49 AM Tom_L: yeah getting to be that time
12:29 PM JT-Shop: try running it as a normal file, try setting up a watch window to see if steps are stopping etc
12:31 PM Tom_L: i'm setting up some tests then i'll go out and try
12:44 PM Tom_L: unless i keep getting distracted...
01:13 PM Tom_dev: running as a regular program i get this: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/probe%20error1.png
01:13 PM Tom_dev: maybe a clue
01:14 PM Tom_dev: this is using ver 1.2.1 ... the first version that seems to act up here
01:15 PM JT-Shop: I've seen that error before... trying to remember what sets that off
01:16 PM Tom_dev: trying with ver 1.2.0 now
01:16 PM JT-Shop: hmm trying to run something with something running
01:18 PM Tom_dev: runs fine as a program in 1.2.0
01:19 PM Tom_dev: so the change was made in 1.2.1
01:19 PM lcnc-relay: <ccatlett1984@> oh fun, regression testing
01:21 PM Tom_dev: i do get errors in 1.2.0 but it doesn't stop
01:21 PM Tom_dev: i'll post the whole error window capture
01:23 PM Tom_dev: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/probe-error1.txt
01:23 PM Tom_dev: if that helps
01:23 PM Tom_dev: that's ver 1.2.0 running as a program
01:24 PM JT-Shop: that doesn't tell me what is trying to do those things
01:24 PM Tom_dev: otherwise as a sub i get no errors
01:25 PM JT-Shop: you should not be getting those errors just running as a file
01:25 PM Tom_dev: i wonder if the probe routine switches mode when tripped
01:25 PM Tom_dev: i agree
01:25 PM JT-Shop: not that I know of
01:26 PM Tom_dev: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/p_bar.ngc
01:26 PM Tom_dev: there's the file it's running
01:28 PM JT-Shop: I get an error just trying to load that file into axis
01:28 PM Tom_dev: what sort of error?
01:29 PM Tom_dev: your vars won't be defined
01:29 PM JT-Shop: https://pasteboard.co/57saT6zGGTmS.png
01:29 PM JT-Shop: try the same file without any vars
01:29 PM Tom_dev: pretty hard to do
01:30 PM Tom_dev: F#2000
01:30 PM Tom_dev: causes that error
01:33 PM JT-Shop: are you using any watch variables?
01:33 PM JT-Shop: just change F#2000 to F2
01:33 PM Tom_dev: not currently
01:40 PM Tom_dev: near as i can tell it may be erroring when switching between G90 G91 but it's really hard to tell
01:41 PM Tom_dev: Error
01:41 PM Tom_dev: Can't switch mode while mode is AUTO and interpreter is not IDL
01:41 PM Tom_dev: it's right around the line where it switches to G90
01:42 PM JT-Shop: which one you do that 100 times :)
01:43 PM Tom_dev: move to other side
01:43 PM Tom_dev: G90 G1 Z #2021
01:43 PM Tom_dev: i slowed the feed way down to try and catch the line
01:43 PM Tom_dev: Error
01:43 PM Tom_dev: Can't switch mode while mode is AUTO and interpreter is not IDLE
01:43 PM Tom_dev: wtf
01:44 PM JT-Shop: g90/91 should not be switching modes
01:44 PM Tom_dev: that's a perfectly command
01:44 PM Tom_dev: valid*
01:48 PM Tom_dev: heading in.. too hot out here
01:59 PM Tom_L: https://forum.linuxcnc.org/qtpyvcp/57173-probing-routines-changing-mode-from-g90-to-g91
02:00 PM Tom_L: probe basic switches modes it appears
02:02 PM Tom_L: nap time
02:33 PM rdtsc: apt upgrade auto-updated Rpi5 to linuxcnc 2.9.5 & flexgui to 1.3.0; updated my cross-build scripts and all those are working fine for arm64 and amd64. both seem to work as expected on Rpi5; no immediate issues seen
03:45 PM Tom_L: that's good to know
05:53 PM JT-Shop: here comes a bit of rain
05:53 PM Tom_L: we're getting a little here too
05:55 PM Tom_L: i wonder which would be easier. programming in absolute or incremental for those routines. i'm not even sure it's possible to do some without switching
05:55 PM Tom_L: i think the interpreter should handle it but aparently it can't
05:56 PM Tom_L: i know probe basic switches modes
05:57 PM JT-Shop: page won't load for me atm
05:57 PM Tom_L: what page?
05:57 PM Tom_L: the docs don't address it
05:57 PM JT-Shop: https://forum.linuxcnc.org/qtpyvcp/57173-probing-routines-changing-mode-from-g90-to-g91
05:57 PM Tom_L: oh
05:58 PM Tom_L: was talking to my kid about it a little
05:59 PM Tom_L: they use absolute most of the time because they program off the axis center on 5+ axis
05:59 PM Tom_L: but he agreed with me about switching
06:00 PM JT-Shop: that link is just about pb probe routines not pb coding
06:00 PM Tom_L: right but it does indicate they switch back and forth
06:02 PM JT-Shop: my probe routine switches back and forth from 90 to 91 and back
06:03 PM JT-Shop: https://paste.debian.net/1396651/
06:03 PM Tom_L: can you run it as a program and see if you get the same interp errors?
06:04 PM JT-Shop: yup just have to take the sub stuff out
06:04 PM Tom_L: next i'm going to do a compare between 1.2.0 and 1.2.1 to see if anything stands out
06:04 PM JT-Shop: I don't get any errors running it from a mdi button
06:05 PM JT-Shop: actually I'm not running it as a sub
06:05 PM Tom_L: i see that
06:06 PM Tom_L: you left the parameters in the 2k range too i see
06:06 PM Tom_L: i thought you moved them
06:07 PM Tom_L: maybe that was the bolthole circle
06:07 PM JT-Shop: actually that must have been the test file, looking at the bp they are a sub
06:08 PM Tom_L: i'm not looking forward to re'doing them all i know
06:08 PM Tom_L: i shouldn't have to
06:08 PM JT-Shop: https://paste.debian.net/1396652/
06:12 PM Tom_L: if you look at lcvette's patch in the post he switches modes there
06:12 PM JT-Shop: how does he switch modes?
06:12 PM Tom_L: pretty sure the actual probe routine should be incremental
06:13 PM Tom_L: https://paste.debian.net/1396654/
06:13 PM Tom_L: Ln 2 5 8
06:13 PM JT-Shop: I would think that just depends on what you're doing
06:13 PM Tom_L: it's basically the same as what i'm doing
06:14 PM JT-Shop: I thought you meant he was switching interp modes or motion modes
06:14 PM Tom_L: i think if you defined the vars for axis it would run
06:15 PM Tom_L: no
06:15 PM JT-Shop: 90/91 should just work
06:15 PM Tom_L: and i'm not either
06:15 PM Tom_L: i agree but it appears that is what trips the errors
06:15 PM JT-Shop: I sure you can't from g code
06:16 PM Tom_L: i'm not doing anything different
06:16 PM JT-Shop: I'm doing the same switching back and forth 90-91
06:16 PM Tom_L: he's using named vars for some of them
06:16 PM Tom_L: but that also shouldn't matter
06:17 PM JT-Shop: yup
06:17 PM Tom_L: i can't see anything in the code that should cause it
06:18 PM Tom_L: not today but i'll set my axis vars up the same and run it with axis
06:18 PM Tom_L: either mdi or as a program
06:18 PM Tom_L: i can send them if you want to try
06:18 PM JT-Shop: I have them I think
06:18 PM Tom_L: just the 2k range
06:18 PM Tom_L: i've changed some of them
06:19 PM JT-Shop: I added them to axis but have to rig up a probe trip to test
06:19 PM Tom_L: i'll paste the current 2k range
06:19 PM JT-Shop: I copied them from the repo
06:20 PM Tom_dev: https://paste.debian.net/1396655/
06:21 PM Tom_L: that's just the sub range, shouldn't affect any offsets you have set
06:21 PM Tom_L: i've been testing a corner and the bar subs
06:21 PM Tom_L: both error
06:22 PM Tom_L: the bar is a 5/16 dowel iirc
06:35 PM Tom_L: i might go try axis
06:42 PM Tom_dev: ran fine in axis as well
06:43 PM Tom_dev: no errors or warnings
06:44 PM Tom_dev: http://tom-itx.no-ip.biz:443/~webpage/cnc/JT-SHOP/flexgui/axis_probetest.png