#linuxcnc Logs
Dec 17 2024
#linuxcnc Calendar
12:21 AM -!- #linuxcnc mode set to +v by ChanServ
01:47 AM Deejay: moin
04:18 AM Tom_L: morning
04:33 AM Centurion_Dan1 is now known as Centurion_Dan
04:46 AM JT-Cave: morning
05:13 AM Centurion_Dan1 is now known as Centurion_Dan
07:17 AM rdtsc-w: morning gents and germs
07:35 AM JT-Cave: I just created a 198MB gcode file and flex opens and runs it as long as you don't have a plotter or gcode viewer
07:38 AM Tom_L: what about axis?
07:39 AM JT-Cave: axis errors out
07:40 AM Tom_L: i wonder what the limit is before it errors
07:41 AM Tom_L: would likely be the same for flex
07:42 AM JT-Cave: it?
07:42 AM Tom_L: i probably have some large files here somewhere but dunno where
07:43 AM Tom_L: it being axis
07:43 AM JT-Cave: https://paste.debian.net/1340246/
07:43 AM Tom_L: they both have buffers for reading the gcode
07:43 AM JT-Cave: that will create a 198MB file
07:44 AM rdtsc-w: oh, could the plotter auto-disable in that case? ;)
07:44 AM JT-Cave: hmm
07:44 AM Tom_L: still errors with the gcode viewer
07:44 AM JT-Cave: axis?
07:44 AM Tom_L: no flex
07:45 AM Tom_L: that's what you said
07:45 AM rdtsc-w: if (filesize > bignumber) then disablePlotter = True :)
07:45 AM JT-Cave: flex will open the 198MB file if you don't have the gcode viewer and plotter
07:46 AM JT-Cave: can you test to see what bignumber is?
07:46 AM Tom_L: increment 'end' and test various sizes
07:46 AM JT-Cave: yup
07:46 AM Tom_L: or 'increment'
07:47 AM rdtsc-w: 'bignumber' likely varies - gonna be smaller on a 2GB Rpi for example
07:47 AM JT-Cave: even more puzzling
07:47 AM Tom_L: memory allocation for the buffer
07:48 AM JT-Cave: right now flex is running the 198MB file and is on line 350k
07:48 AM Tom_L: some crap text editors will do that too
07:50 AM Tom_L: early ones had a limit of 65535
07:51 AM Tom_L: need a fifo buffer
07:54 AM JT-Cave: https://pasteboard.co/8bAnXBtRSfj3.png
07:54 AM JT-Cave: that 655165 number is the line number
07:55 AM Tom_L: of how many?
07:55 AM JT-Cave: no clue, I'm not going to try and open it with a text editor
07:55 AM Tom_L: heh
07:56 AM rdtsc-w: could make a python tool to parse it and count the newlines :)
07:57 AM JT-Cave: aww it just errored out on line 800002 would exceed joint 0 positive limit
07:57 AM Tom_L: that was gonna be my next question
07:57 AM rdtsc-w: but did it physically attempt to move past the end?
07:57 AM Tom_L: so count up a to x then back down to 0
07:58 AM JT-Cave: I just increased the limit from 8 to 30
08:00 AM rdtsc-w: Today class, we're trying to break LinuxCNC! Watch as JT attempts to let the magic smoke out. ;)
08:01 AM JT-Cave: lol
08:01 AM Tom_L: he's trying to take over my job!
08:01 AM JT-Cave: well I'm going to let that file run and see how long it takes and how many lines it has
08:02 AM rdtsc-w: coffee time
08:02 AM Tom_L: if it limit errors, try counting up then back down to the file
08:02 AM Tom_L: so it reverses direction
08:03 AM JT-Cave: 10,000,001 lines
08:03 AM JT-Cave: I made python count them
08:04 AM Tom_L: it's the 0,000,001 one that breaks it :)
08:04 AM rdtsc-w: "that ought to be good enough for anybody"
08:04 AM Tom_L: we had some rather large files cutting surfaces
08:04 AM Tom_L: on one machine we had to spoon feed it
08:04 AM Tom_L: (DNC)
08:05 AM Tom_L: then he learned to order them with extra memory
08:07 AM * JT-Cave starts his chicken day
08:24 AM rdtsc-w: https://i.chzbgr.com/full/6403320064/h74C35086/i-gotta-get-an-endorsement-deal
08:35 AM JT-Cave: up to 1715k line
08:36 AM JT-Cave: I think I'm going to hit the limit before it's done because it's up to 17"
08:38 AM JT-Cave: Error
08:38 AM JT-Cave: File ended with no percent sign or program end
08:39 AM JT-Cave: might be a file size limit in linuxcnc
08:43 AM Tom_L: https://forum.linuxcnc.org/20-g-code/27639-how-big-can-the-g-code-be
08:44 AM Tom_L: https://forum.linuxcnc.org/20-g-code/633-g-code-file-size-limit
08:44 AM Tom_L: all machines have a limit then you start drip feeding them
08:44 AM Tom_L: or break the file up
08:44 AM Tom_L: i don't think linuxcnc has that ability
08:45 AM Tom_L: to DNC
08:45 AM skunkworks: normally the limit is the preview.. Axis as fuctionallity to turn off the preview with 'gcode'
08:45 AM skunkworks: *has
08:50 AM JT-Cave: the preview and the gcode viewer both drag the program to a slow craw so in Flex you don't have to have either one :)
08:57 AM mrec: drip feeding works quite well here with the Mitsubishi machine. I wonder if that can be achieved with LinuxCNC too (the question would be if look ahead works with it=
08:58 AM mrec: the mitsubishi machine I'm working with has a special interface for DNC (it's not limited to slow rs232 DNC)
11:32 AM JT-Cave: the file with 7,500,002 lines finished running without errors
11:49 AM bjorkintosh: I sincerely hope you didn't type all that, JT-Cave.
11:50 AM JT-Cave: I did type the python part
12:40 PM -!- #linuxcnc mode set to +v by ChanServ
02:01 PM rdtsc-w: hmm thinking out loud... if ya coded a python app to output individual G1 moves, in tenths, about a 1in circle, which is 3.141592in circumference, that would generate 31415 lines of code per revolution... would take 239 rotations to exceed 7.5M lines
02:04 PM bjorkintosh: why would you do it that way when a loop would suffice?
02:12 PM rdtsc-w: dunno; JT was testing large file support
02:13 PM bjorkintosh: ah.
02:15 PM rdtsc-w: this has got me thinking of how something like a 10ft telescope mirror would be rough-cut... as a surface the file would be huge; however add an A axis and suddenly a little loop could do it all
02:17 PM xxcoder: interesting https://youtu.be/udI2dWmwMUE he comes up with better air engine
02:26 PM Tom_L: lathe job
02:26 PM Tom_L: big one
02:27 PM xxcoder: how big? machine lifted into huge lathe?
02:28 PM Tom_L: the mirror thing
02:29 PM bjorkintosh: aren't radios better?
02:33 PM xxcoder: ahh I missed earlier text lol
02:47 PM Tom_L: mmm.. spin casting
02:48 PM Tom_L: https://mirrorlab.arizona.edu/
03:05 PM rdtsc-w: aah that's right... remember reading about a liquid mercury mirror which was focused by changing the rotation rate
03:08 PM xxcoder: yeah but mirrors can be also made in same way, it just have melted glass in spinning container
03:09 PM xxcoder: hubble one was famously made that way, at wrong speed
03:09 PM xxcoder: so it was very slightly wrong shape curve. they added glasses to camera to fix it
04:18 PM Tom_L: JT-Cave, geany opened large.ngc with no issues :)
04:19 PM JT-Shop: pluma struggled a bit with it
04:19 PM JT-Shop: 2 more days and I'm off till next year and they want an 80% invoice before the end of the year
04:20 PM Tom_L: have you been back since they did the drainage project?
04:20 PM JT-Shop: yup that only took them 2 days to complete
04:20 PM Tom_L: you should be getting close
04:21 PM JT-Shop: connecting the dots now
04:21 PM Tom_L: flex opened it too but it took a while
04:22 PM JT-Shop: you have to remove the plotter and gcode viewer
04:22 PM Tom_L: no
04:22 PM Tom_L: it's running with both here
04:22 PM Tom_L: zipping right thru the file
04:23 PM JT-Shop: but it took a while to load?
04:23 PM Tom_L: a few sec yes
04:23 PM JT-Shop: interesting
04:23 PM Tom_L: i'll see if it makes it to M2
04:24 PM Tom_L: or limits out
04:24 PM JT-Shop: the one I did this morning made it M2
04:24 PM Tom_L: it might make it as i have a fair size work area
04:24 PM Tom_L: plot it moving slowly
04:25 PM Tom_L: doesn't appear to have an issue
04:25 PM Tom_L: yet.
04:25 PM JT-Shop: is the dro updating quickly
04:25 PM Tom_L: like watching grass grow
04:26 PM Tom_L: yup
04:26 PM Tom_L: if it makes it, i'll do a video
04:26 PM JT-Shop: cool
04:27 PM Tom_L: but that could crash it too
04:27 PM JT-Shop: use your phone lol
04:27 PM Tom_L: i can't tell what line it's on since my counters aren't that wide
04:28 PM JT-Shop: one day you will learn how to use layouts
04:28 PM Tom_L: maybe
04:29 PM Tom_L: i should but the ones i've done start out as test beds and 'pretty' wasn't a concern
04:29 PM JT-Shop: understand
04:29 PM Tom_L: i do like tp3 though
04:30 PM Tom_L: i think i'll reset X0 Y0 and start it again, i'm pretty sure it will limit out
04:31 PM JT-Shop: I set x and y limits to 100
04:31 PM Tom_L: pause, resume and step work :)
04:31 PM JT-Shop: cool
04:36 PM Tom_L: i made the counter wider too
04:36 PM JT-Shop: at least I can finish up the C3 while I'm off
04:38 PM Tom_L: 1:13 to load
04:38 PM JT-Shop: without the gcode viewer and plotter it loads in a second
04:39 PM bjorkintosh: JT-Shop: could the viewer and plotter be surprised until loading is done?
04:39 PM bjorkintosh: *surpressed
04:39 PM bjorkintosh: or ... surprised :-D
04:40 PM JT-Shop: not sure what you mean
04:40 PM JT-Shop: I'm sure I can surprise something somehow lol
04:41 PM JT-Shop: so I wonder if it's possible to just load that part of the gcode that is seen in the viewer?
04:42 PM bjorkintosh: JT-Shop: as in, file loading happens in the background until it's done.
04:42 PM Tom_L: it still has to buffer it
04:42 PM bjorkintosh: hmm I see.
04:43 PM Tom_L: and if the viewer is only buffering what it sees it will get really sluggish
04:43 PM JT-Shop: well there are three things that happen if you have a plotter and gcode viewer
04:43 PM Tom_L: i have a feeling
04:43 PM JT-Shop: linuxcnc loads the file, the plotter loads the file and the viewer loads the file
04:44 PM JT-Shop: if I can spawn another process to load the gcode file into the viewer it "could" be a lot faster
04:45 PM Tom_L: keep a copy of what you have just in case :)
04:47 PM Tom_L: screen capturing...
04:48 PM JT-Shop: https://forum.linuxcnc.org/41-guis/54737-large-file-memory
04:48 PM Tom_L: 100k lines so far
04:48 PM JT-Shop: sweet
04:50 PM Tom_L: i can validate what you said about loading 3x as after the gcode loaded it took more time before i got the button control back. i'm betting the plotter was still buffering
04:51 PM Tom_L: 230k
04:51 PM JT-Shop: one way to tell is to remove the plotter then remove the viewer
04:51 PM Tom_L: even the large CNCs would take a while to load a large file
04:52 PM Tom_L: and most of them don't plot
04:52 PM Tom_L: i'm guessing though, the bottleneck there would be the rs232
04:52 PM Tom_L: 350k
04:53 PM bjorkintosh: <JT-Shop> one way to tell is to remove the plotter then remove the viewer <-- what I meant by 'surprised' :-D
04:55 PM Tom_L: 500k
04:56 PM JT-Shop: marching along :)
04:59 PM Tom_L: 700k
05:00 PM Tom_L: gonna be a long video :)
05:00 PM Tom_L: it's only moved 7.9"
05:18 PM mrec: .. finally we received our Microsoft Developer Account status (which we applied for 3 months ago...) I wrote the driver within 2 weeks .. getting the development status is very difficult
05:35 PM Tom_L: 2g
05:36 PM Tom_L: err 2m?
05:39 PM JT-Shop: cool
05:43 PM Tom_L: 3.2
05:43 PM Tom_L: i'll probably cut the middle out of the video
05:43 PM Tom_L: unless you really wanna watch the whole thing
05:44 PM JT-Shop: some fast forward might be goo
05:44 PM JT-Shop: d
05:47 PM Tom_L: 3.4
05:48 PM Tom_L: what was the final x y location?
05:49 PM Tom_L: it's at 35.7 atm
05:49 PM JT-Shop: depends on the end location
05:50 PM Tom_L: i didn't look at the file that close
05:50 PM * JT-Shop calls it a night
05:53 PM * Tom_L wonders if run from line works here
06:23 PM roycroft: the rain just stopped, but it's too late to go pull the axle from my pickup today - i'll try to do that tomorrow
06:24 PM roycroft: i'm going into town tomorrow, so if i can get it pulled before i go i might be able to pick up parts while i'm there
06:24 PM * roycroft would like his pickup back on the road very soon
06:24 PM roycroft: especially since my car needs to go into the shop for a few days
06:46 PM xxcoder: forever washing a ton rain here
06:47 PM xxcoder: I was out for hour and half, and it stayed heavily raining whole time lol
06:47 PM roycroft: well i've been working on my studio these past couple days
06:48 PM roycroft: there is not a room in my house that is finished - they all need some kind of remodeling/repair work
06:48 PM roycroft: the studio is the farthest along, as it was my project before i broke my wrist
06:49 PM roycroft: i just need to install some door casings and window casings, and paint the door jams and window sill, and it will be done for now, other than finding the cabinet hardware and reinstalling the cabinet doors
06:49 PM roycroft: i've decided to work on that when it's raining too hard to do other things
06:49 PM xxcoder: sounds like good strats
06:49 PM roycroft: but tomorrow we are supposed to have sunny breaks and no rain, so i'm hopeful to get that axle pulled then
06:50 PM roycroft: yeah, and i'm going to be working on my laser enclosure too - finishing that up, although i may end up rebuilding it mostly from scratch
06:50 PM roycroft: i'm still unhappy with the paint on it, but i could live with that
06:51 PM roycroft: what's causing a rethink is a video i watched about air flow in a laser enclosure
06:51 PM roycroft: and from the testing that was done in the video, it seems that a downdraft flow keeps the parts and laser head the cleanest
06:51 PM roycroft: which makes sense
06:52 PM Tom_L: your list of projects keeps growing and your list of finished ones doesn't seem to be shrinking much
06:52 PM roycroft: i got the rotary attachment for the laser, and was already going to build an undercabinet to hold that
06:52 PM roycroft: i'm thinking i should move the fan down below
06:52 PM roycroft: actually, my list of projects is pretty much the same
06:52 PM roycroft: it's been a big list for a long time
06:52 PM roycroft: but the finished list is definitely not shrinking much
06:53 PM roycroft: and that concerns me
06:53 PM xxcoder: growing?
06:55 PM Tom_L: growing... must be the left coast rain
07:55 PM Unterhausen: we have graduation and a college football playoff game this weekend. I'm going to go hide in the basement on friday and not come out until monday
08:00 PM xxcoder: finally got pot and soil for it
08:01 PM xxcoder: my avocodo tree seed growing glass vase fell and broke and I had to put plant in my restroom sink as short term
08:01 PM xxcoder: it can finally be transferred to proper soil
08:07 PM bjorkintosh: ah. you will be unter der haus!
08:08 PM xxcoder: 😂
08:24 PM * roycroft just cleared off an armchair in his living room that has had boxes piled on it since june
08:24 PM xxcoder: finally, can sit
08:24 PM roycroft: well, i've been using the sofa all along
08:24 PM roycroft: but it's time to unpack things and put them away
08:25 PM roycroft: while i was still hauling boxes up here every week it was hard to do that
08:25 PM xxcoder: got delivery, and picture shows nice and gray house lol
08:26 PM xxcoder: so its correct
08:29 PM roycroft: and now that chair is full of cats
08:29 PM roycroft: so i can't sit on it after all
08:30 PM xxcoder: cats rsvp
08:54 PM rdtsc: rsvp... rejects sitting virtually perfectly?
09:07 PM Tom_L: run from line works too but it takes about 2 min for the buffer to catch up with the line
09:07 PM Tom_L: on that 10,000,000 line file
09:07 PM xxcoder: talking about reservations, my restroom sink is finally open for business
09:07 PM xxcoder: avocodo tree have been potted. hope it dont die from shock
09:17 PM Tom_L: will you get fruit with just one tree?
09:19 PM Tom_L: You can expect to wait three to four years for fruit from a planted tree, or 13 years or more if you start with a seed.
09:19 PM Tom_L: hope you're not in a hurry
09:21 PM xxcoder: thats not in my plans
09:22 PM xxcoder: its just for enterainment
09:22 PM xxcoder: if I get fruit then amazing
09:22 PM xxcoder: otherwise whatever
09:22 PM Tom_L: what did you start with?
09:22 PM Tom_L: a seed?
09:22 PM xxcoder: seed
09:22 PM Tom_L: cool
09:22 PM xxcoder: steps was pretty simple but quite lengthy
09:23 PM xxcoder: soak seed in water for 2 days, it makes getting cover off easy
09:24 PM xxcoder: then use paper towel wrap it in it, then water it just a little so towel is wet but not soaked. put it in ziploc and leave it for few weeks, ensuring water is still there
09:24 PM xxcoder: then use special vise to hold seed and plenty of water
09:24 PM xxcoder: it getting beyond inch or so takes months
09:25 PM xxcoder: my tree is 8 months old now or so
09:25 PM xxcoder: and its finally growing 4th and 5th leaves lol its bit over foot tall
09:25 PM Tom_L: cool
09:25 PM xxcoder: yeah. its one lazy plant lol
09:26 PM Tom_L: oak trees grow real slow
09:26 PM xxcoder: avocodo trees seem to grow very slowly also
09:26 PM Tom_L: some trees are faster than others
09:26 PM xxcoder: lol some trees you plant it, and lean back before it grows up to your eye ;)
09:27 PM Tom_L: i planted a maple in the yard when my oldest was 1 and now it's a full grown tree
09:28 PM xxcoder: nice!
09:29 PM Tom_L: lost a major branch a few years back and it's fully recovered
09:30 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/patio/patio19.jpg
09:31 PM Tom_L: only pic i can find of it just beyond the roof corner
09:31 PM Tom_L: patio roof
09:31 PM xxcoder: big tree indeed
09:33 PM xxcoder: I remember when we planted 4 evergreen trees
09:33 PM xxcoder: only 2 lived, one just died, and other pulled out of ground by some vandal
09:33 PM xxcoder: last I saw of those was last year, and trees was really big
09:34 PM xxcoder: 3-4 times taller than house we lived at
09:36 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/temp/house/2.jpg
09:36 PM Tom_L: same location behind the truck but a tree that was there prior to the one i planted
09:36 PM Tom_L: it was too close to the fence/power lines
09:36 PM xxcoder: yeah? ahh was about to ask if it died or something lol
09:37 PM Tom_L: and the patio wasn't there
09:37 PM Tom_L: the one i planted i moved in the property a few feet more
09:37 PM xxcoder: good plan
09:39 PM xxcoder: had to laugh https://www.reddit.com/r/KitchenConfidential/comments/1hgbraq/reminds_me_of_a_new_prep_chef_from_back_in_the/
09:40 PM Tom_L: duh
09:40 PM xxcoder: that face near end lol
09:42 PM xxcoder: its olviously faked, but I have same feelings about coworkers when I was dishwasher
09:42 PM xxcoder: someone was washing plates using that blue organic dissolving chemical. its not soap.
09:43 PM xxcoder: its for filling bin of spoons, forks etc so food dissolves off it before its sent though washer
09:46 PM xxcoder: (it was third time, I already told guy its not for that for 2 times)
09:47 PM xxcoder: can lead horse to water and all that
09:47 PM Tom_L: no
09:47 PM Tom_L: 'you can't fix stupid'
09:48 PM xxcoder: I had so many "adventures" there across 3.5 years
09:49 PM xxcoder: at worse times, it was almost like worker entered, got interviewed, work for a day then walk out of back door never to be seen again
09:49 PM xxcoder: that blue chemical washer was fired when manager saw what he was doing
09:53 PM xxcoder: thankfully everything went though machine anyway lol
11:52 PM -!- #linuxcnc mode set to +v by ChanServ