#linuxcnc Logs
Apr 01 2024
#linuxcnc Calendar
12:56 AM Deejay: moin
03:57 AM Guest39: Hello out there Linux CNC experts. Trying to find information about how to set limit switches on a simpel CNC machine with an X gantry. OX CNC style. But cannot find any good sources. Does anyone in here know good sources?
04:05 AM jpa-: http://linuxcnc.org/docs/html/man/man9/gantry.9.html simplest may be this, though it can be done directly with trivkins also
04:14 AM Tom_L: morning
04:50 AM JT-Cave: morning
06:01 AM mrec_: do you guys shield BLDC motor cables?
06:02 AM mrec_: I just noticed when getting close to the BLDC wires with some probes the oscilloscope is picking up the noise
07:02 AM Tom_L: mrec_, it would be a good idea
07:05 AM jpa-: i put the drivers close to the motors, but for longer cables shielding would be good idea
07:06 AM jpa-: also be sure to ground the motor body and the driver, otherwise you'll get a lot of common mode noise
07:07 AM Tom_L: i shielded everything on mine
07:14 AM Tom_L: T-5
07:18 AM JT-Cave: Tom_L, when you get a chance take a look at page two of enable_logic.ods
07:18 AM Tom_L: ok
07:19 AM Tom_L: where do i find that?
07:19 AM Tom_L: found it
07:20 AM Tom_L: this has one sheet
07:22 AM NetPipe: https://github.com/netpipe/mreminder
07:22 AM JT-Cave: did you pull
07:23 AM Tom_L: about 5 min ago
07:23 AM JT-Cave: https://github.com/jethornton/flexgui/commits/master/
07:23 AM Tom_L: updating
07:25 AM Tom_L: anything specific?
07:26 AM JT-Cave: just check to see if I missed anything in the enable/disable logic
07:27 AM Tom_L: does libre have a way to hilite a block and print it?
07:28 AM Tom_L: meh nevermind, you prettied it all up on a page by itself
07:29 AM JT-Cave: looks like I can use state and not bother with exec state
07:32 AM JT-Cave: interp state, task state and task mode seems like all I need to monitor along with homed and program loaded or not
07:33 AM Tom_L: sounds about right
07:38 AM Tom_L: near as i can see it looks accurate
07:39 AM Tom_L: no
07:57 AM Tom_L: JT-Cave, is this how you would lay out a plc for programming?
08:04 AM JT-Cave: the spreadsheet?
08:05 AM Tom_L: yeah
08:06 AM JT-Cave: no, but it could help with logic... I usually program state machines so do something then when done do the next thing
08:06 AM * JT-Cave starts his chicken day
08:06 AM * Tom_L goes out to mow
08:08 AM JT-Cave: when you are done look at page 3 I discovered a way to tell if a mdi is running
09:10 AM Tom_L: ok
09:10 AM * Tom_L checks the yard off his list
09:14 AM Tom_L: MODE_MDI is kinda a giveaway
09:17 AM Tom_L: Task Mode
09:28 AM Tom_L: looks like for jog only MODE_MANUAL needs to be active
09:28 AM Tom_L: aside from estop and poer
09:28 AM Tom_L: power
09:32 AM Tom_L: how did you arrive at the groups of states?
09:33 AM lcnc-relay: <JT> On page 3?
09:33 AM Tom_L: P2
09:33 AM Tom_L: estop, interp idle, state estop, mode manual, exec done, rsc done for the first group
09:35 AM Tom_L: exec state & state don't seem too important for this
09:36 AM lcnc-relay: <JT> The columns are different machine states
09:36 AM lcnc-relay: <JT> P3 is more
09:37 AM Tom_L: seems like interp state, task state & task mode are the ones to be watching
09:37 AM Tom_L: like you did on P3
09:39 AM lcnc-relay: <JT> Yup
09:40 AM Tom_L: exec state & state are results
09:40 AM Tom_L: can probably be ignored for this
09:41 AM lcnc-relay: <JT> Yup, I think p3 is the one to watch
09:42 AM Tom_L: you gonna rework all the logic again?
09:42 AM Tom_L: i thought the only one left was jog afik
09:44 AM Tom_L: home buttons should be disabled during program run as well
09:44 AM Tom_L: i can unhome all etc during a program run
09:45 AM Tom_L: MODE_MANUAL
09:46 AM Tom_L: INTERP_IDLE & STATE_ON
09:47 AM Tom_L: same for jog i think
09:51 AM lcnc-relay: <roguish> JT: check this on the upper right corner..... https://www.nytimes.com/
09:51 AM lcnc-relay: <roguish> don't you have one of those?
11:22 AM JT-Cave: just pushed p3 I think I have everything accounted for now but a look see would help
11:23 AM * Tom_L boots back into linux
11:33 AM Tom_L: mdi enabled during MODE_MANUAL? should that be MODE_MDI?
11:33 AM Tom_L: col G
11:33 AM Tom_L: or is MODE_MDI set after a mdi command?
11:37 AM Tom_L: what about step when program is paused? it's disabled there
11:39 AM Tom_L: that may be the current behavior
11:43 AM Tom_L: near as i can tell it looks ok
11:43 AM Tom_L: except maybe mdi ^^
11:45 AM Tom_L: and maybe mdi in col J
11:46 AM Tom_L: it should be enabled if it's running
11:46 AM Tom_L: ?
11:46 AM JT-Cave: no, MODE_MDI is when your running a mdi
11:46 AM Tom_L: ok
11:46 AM Tom_L: so it starts in MODE_MANUAL
11:47 AM JT-Cave: I don't think you can step while paused but might be wrong, need to test in axis
11:47 AM Tom_L: i don't think so either
11:48 AM Tom_L: axis allows step when paused
11:50 AM Tom_L: the difference in pause resume and pause step is: pause step will finish the line. pause resume pause will stop mid line
11:51 AM Tom_L: without finishing the cut for that line
11:51 AM JT-Cave: ok
11:51 AM Tom_L: not sure about arcs
11:51 AM Tom_L: but step during pause is ok
11:52 AM Tom_L: just make sure resume keeps up with the states
11:52 AM JT-Cave: it will
11:52 AM JT-Cave: nap time here
11:52 AM Tom_L: agreed
11:52 AM Tom_L: just finished lunch
12:44 PM * JT-Shop punches in to work
01:15 PM Unterhaus__ is now known as Unterhausen
01:15 PM Unterhausen: I pledge to stay off the internet most days, but April 1 is the day I should really honor that
01:15 PM Unterhausen: anyone know when mesa ethernet boards might become available again?
01:20 PM JT-Shop: which one?
01:41 PM Tom_L: JT-Shop, is the new logic going to be kinda like a lookup table?
01:49 PM JT-Shop: kinda sorta maybe...
01:49 PM Tom_L: heh
01:49 PM Tom_L: i'm still figuring out tuples & dictionaries
01:49 PM JT-Shop: I have for example parent.state_estop dictionary and the keys are the control names and the values are either True or False
01:49 PM Tom_L: to me one is an array and the other is a multi dimensional array :)
01:50 PM Tom_L: which can get messy
01:50 PM JT-Shop: so in startup.py I check to see if the item is not present I remove it from the dictionary
01:50 PM JT-Shop: python has no arrays
01:50 PM Tom_L: it does, they just don't call them arrays
01:51 PM Tom_L: either name, it's an orgainzed memory block
01:51 PM JT-Shop: so when the state changes to STATE_ESTOP I set everthing to the values in the dict
01:52 PM JT-Shop: well a dictionary is a key, value pairs
01:52 PM JT-Shop: and a list is a list of things
01:52 PM JT-Shop: you can have a list of dicts if you want your head to hurt
01:55 PM JT-Shop: arrays in C have to be accessed by their index
01:56 PM JT-Shop: dictionarys the keys must be unique and you can test for keys by name
01:56 PM * JT-Shop goes back to work for a bit
02:19 PM solarwind: https://www.youtube.com/shorts/jCm-Ih7PT1I how is this a thing?
02:19 PM solarwind: I've never heard of this "squatting"
02:19 PM solarwind: People just see an "abandoned" house and move in?
02:19 PM solarwind: Where are there even abandoned houses in New York?
02:20 PM solarwind: and squatters have rights after 30 days what?
02:24 PM Unterhausen: up until now, landlords have been worse than squatters, that's how it's a thing
02:24 PM Unterhausen: it can be as little as 2 weeks
02:24 PM Unterhausen: but a lot of states are passing anti-squatter bills
02:25 PM Unterhausen: You need to be careful about letting people stay at your house/apartment in a lot of places
02:25 PM roycroft: squatting has been around for millennia
02:25 PM roycroft: and it's not indigenous to the usa
02:25 PM roycroft: canada has squatters too
02:25 PM roycroft: as does every country in the world
02:25 PM Tom_L: freeloaders
02:26 PM roycroft: not always
02:26 PM * roycroft doesn't like pigeonholing
02:28 PM Unterhausen: squatters used to leave when discovered
02:29 PM Unterhausen: the problem now is they have learned they have tenant's rights
02:31 PM XXCoder: in old days squatters is a way to convert lost owner house into new owner house evenually
02:31 PM XXCoder: things is different now
02:31 PM lcnc-relay: <roguish> shooot 'tm
02:31 PM roycroft: a big problem today is that housing prices are out of reach by most folks, and rent is both out of reach to many of those folks and the shortage of available rentals makes it hard to find a place to live even if you have the money
02:31 PM roycroft: it's easy to just say folks should go buy a house
02:31 PM roycroft: and it used to be doable
02:31 PM XXCoder: yep. when I worked, I wouldnt be able to afford apartment, and I didnt work in minium wage job
02:31 PM Unterhausen: yeah, majority of homeless have jobs, rents have gotten out of hand
02:32 PM roycroft: oregon is about in the middle when it comes to housing prices
02:32 PM XXCoder: I cant picture trying to live somewhere on minium wage.
02:32 PM Unterhausen: ss disability pays less than rents in most of U.S., for example
02:32 PM roycroft: and it takes an income of close to $130k to afford the median house in this state
02:32 PM roycroft: when the average income is about half that
02:32 PM lcnc-relay: <roguish> Cal min wage is now 20.00
02:33 PM lcnc-relay: <roguish> could barely rent a garage for that
02:33 PM roycroft: that's still only $40k/year
02:33 PM lcnc-relay: <roguish> yup
02:33 PM roycroft: try buying that small $750k house on that
02:33 PM XXCoder: isnt that specific to reserant workers? or are they focusing heavily on that on news but are overall min wage?
02:33 PM Unterhausen: when I made minimal wage back in the '70s, I made $25 an hour corrected for inflation
02:33 PM roycroft: at 6.5% interest
02:34 PM Unterhausen: if you look at minimal wage in '72, it's even higher than that corrected for inflation
02:34 PM lcnc-relay: <roguish> there's always been an economic caste system
02:35 PM roycroft: yes, but it's much worse now in this country than it's been in a very long time
02:35 PM roycroft: and it's continuing to get worse
02:36 PM lcnc-relay: <roguish> Fed min in '72 was 1.65
02:37 PM lcnc-relay: <roguish> I sorted tomatos for 2.00 pay was higher that min to help keep the imagration police away from the farms
02:38 PM lcnc-relay: <roguish> and gas was about 0.40
02:40 PM * roycroft remembers when gas was 28ยข
02:41 PM roycroft: then it was 1974
02:41 PM lcnc-relay: <roguish> different state
02:41 PM * Tom_L remembers .19
02:41 PM roycroft: remember even-odd days for fillups?
02:41 PM Tom_L: we didn't have that
02:41 PM lcnc-relay: <roguish> you're are olsd
02:41 PM lcnc-relay: <roguish> old
02:42 PM roycroft: during the arab oil embargo i thought everyone in this country had that
02:42 PM XXCoder: there was very brief window where I had car driving license and gas was under dollar a gallon
02:42 PM roycroft: even-odd days and rationing in some places
02:42 PM lcnc-relay: <roguish> that was the gas shortage in the 70's
02:42 PM roycroft: yes, in '74
02:44 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/temp/sign.jpg
02:44 PM XXCoder: if I recall right it was usually little bit over dollar, like dollar 50, but it dipped a little to under dollar then returned to above
02:44 PM lcnc-relay: <roguish> that's a good one..
02:44 PM XXCoder: lol yeah. I found one of old versions. "$2.25 arm leg"
02:44 PM XXCoder: 2.25 would be very cheap now!
02:46 PM roycroft: #2 is cheaper than gasoline around here now
02:46 PM roycroft: it varies
02:46 PM roycroft: for years it was always cheaper, but then it started going way up
02:46 PM XXCoder: its $4.25 gal here now
02:46 PM XXCoder: tacoma
02:46 PM roycroft: currently #2 is $3.69, and 87 octane gasoline is $3.89
02:50 PM XXCoder: ah yes. happy doubt day, all
02:51 PM XXCoder: the day that everyone uses critical thinking
03:11 PM Unterhausen: I remember when gas was 19 cents a gallon. Vaguely recall that was considered expensive
03:14 PM Unterhausen: I think it first hit 29 cents during the '70s gas crisis
03:15 PM Unterhausen: there was an ad where a teenager on a date only had a quarter to buy gas. Google absolutely refuses to find it though
03:24 PM roycroft: keep in mind that when you could buy a gallon of gas for a quarter, that much gas only got you 10 miles down the road
03:24 PM JT-Shop: not in my `57 VW
03:24 PM lcnc-relay: <roguish> but with a 454 it was fun
03:25 PM roycroft: ok, you got 20 miles on that gallon, jt-shop
03:25 PM roycroft: but the oldsmobile delta 98 that was 3x as long as your beetle only went 7 miles
03:25 PM roycroft: delta 88
03:26 PM Tom_L: https://www.youtube.com/watch?v=02cUPyx2dcw
03:26 PM lcnc-relay: <roguish> well, Baltimore finally got a couple of big barge cranes.
03:27 PM Tom_L: there's your ad
03:27 PM lcnc-relay: <roguish> and of course, now the media is whining about lots of bridges.....
03:28 PM Tom_L: Unterhausen, just talk niceer to google :)
03:28 PM roycroft: and the wingnuts are complaining that the whole mess is the fault of the "dei mayor"
03:29 PM Tom_L: JT-Shop, was that one the 40hp?
03:29 PM roycroft: i'm sure that if the mayor were less pigmented the cargo ship would never have crashed
03:29 PM lcnc-relay: <roguish> those aren't wingnuts. those are full on idiots
03:30 PM roycroft: whatever you call them there are way too many of them and they are way too loud
03:31 PM JT-Shop: 36hp
03:31 PM lcnc-relay: <roguish> yup. we need a serious population culling....at least 50%
03:32 PM Tom_L: mine was a '68
03:32 PM JT-Shop: I had a 65, 66 and 67 beetle and one van I forget the year
03:32 PM Tom_L: i put a southwind heater in mine
03:32 PM roycroft: or maybe improving the average education level
03:34 PM Tom_L: the govt doesn't want that, they want followers
03:34 PM lcnc-relay: <roguish> JT-Shop: hey, i installed python and pyqt5 on one of my windows machines..... gonna try some coding
03:35 PM lcnc-relay: <roguish> might try a Udemy course
03:35 PM Tom_L: few dots of rain on the drive now.. it's starting
03:36 PM lcnc-relay: <roguish> bright and sunny, upper 60's today
03:37 PM lcnc-relay: <roguish> forecast mid 70's for tomorrow
03:55 PM roycroft: it's going to be nice here, too
03:56 PM roycroft: i should probably work on cutting the grass after work today and tomorrow - it's getting pretty long
03:56 PM roycroft: the lawn mower is still at the old house, but my weed eater is at the new house
03:59 PM Unterhausen: Tom_L google hates me
03:59 PM Unterhausen: fairly long list
04:18 PM JT-Shop: roguish cool
04:25 PM * JT-Shop thinks he will punch in and work another hour
04:26 PM XXCoder: shoot me please. so sore from exercise yeserday and had to go to winco for more food
04:27 PM roycroft: i'm doing ok today, actually
04:28 PM XXCoder: way to go
04:28 PM XXCoder: hows new house
04:28 PM roycroft: i spent a long day yesterday painting ceilings and removing the carpeting from a room
04:28 PM roycroft: i was really sore and tired last night
04:28 PM roycroft: it's coming along slowly
04:28 PM roycroft: i was hoping to move in by the end of april, but it may be mid-may now
04:28 PM XXCoder: keep in mind I have been unable to exercise for over 2 years
04:28 PM XXCoder: so I just started short time ago, so still developing muscle
04:29 PM JT-Shop: take it slow and add a tiny bit each time
04:29 PM XXCoder: while not as good as my brothers, my muscles do retain strength for pretty lot longer than average
04:30 PM XXCoder: my arms is same as my bros but legs not as much
04:30 PM XXCoder: I can still lift quite heavy stuff easily
04:36 PM JT-Shop: https://youtu.be/PagJzBTzW_4?t=987
04:36 PM JT-Shop: cool mic
04:42 PM Tom_L: to measure taper?
04:42 PM JT-Shop: yup
04:42 PM Tom_L: never seen one of those
04:43 PM JT-Shop: me neither
04:43 PM Tom_L: never dealt with tapers much either maybe that's why
04:43 PM JT-Shop: I made one once by trial and error
04:44 PM Tom_L: there are other ways to measure them but that is kindof unique
04:45 PM lcnc-relay: <skunkworks8841> 2 bearing races - measure the distance between
04:45 PM Tom_L: chuck in lathe, dial on the tool post and move Z a known distance recording both diameters
04:46 PM lcnc-relay: <skunkworks8841> now I would probably just probe it.
04:47 PM XXCoder: interesting mic
04:54 PM Unterhausen: I wonder if my 60 year old function generator can be convinced to put out a 3.3v p-p square wave
04:56 PM Unterhausen: the matching counter has nixie tube readout
05:13 PM lcnc-relay: <skunkworks8841> https://jauriarts.org/_matrix/media/v3/download/jauriarts.org/bgYtsnANdsJbSJlkvtqvGgAu/PXL_20240401_213019753.MP.jpg
05:13 PM lcnc-relay: <skunkworks8841> Did I post this? I don't remember
05:21 PM XXCoder: bad jokes abound in todays picklocking lawyer
05:54 PM XXCoder: lol https://youtu.be/WeusVRtaDpI
06:05 PM lcnc-relay: <big_kevin420> you know its a productive day at work.....when you go through 60x fake mustaches
06:21 PM XXCoder: lol fun joe video today https://youtu.be/IjlPX10NAxQ
07:21 PM XXCoder: blade I ordered due to talk here just arrived. seems very nice
07:26 PM lcnc-relay: <skunkworks8841> A highschool mate posted that she was pregnant today... She is 52.. It took me most of the day to realize that it was the 1st..
07:29 PM Tom_L: :)
07:51 PM roycroft: speaking of blades
07:51 PM roycroft: the latest hazard in eugene is runaway saw blades
07:51 PM roycroft: https://www.youtube.com/watch?v=1ue2ChtCbIg
07:53 PM CloudEvil: Well, 1/2000 or so babies in the UK are born to moms over 50
07:55 PM XXCoder: roy dang thats close call
07:55 PM roycroft: yeah
07:55 PM roycroft: and that blade would have sliced him in two
07:56 PM roycroft: it would have gone right through his body
07:56 PM XXCoder: yeah few inches into harder wood
07:56 PM XXCoder: 4 or 5 inches?
07:56 PM XXCoder: thats a lot force
07:56 PM roycroft: it is
07:57 PM roycroft: the report is that it went 2' into the store
07:57 PM roycroft: the blade is 4' in diameter
07:58 PM XXCoder: oh larger than I thought
07:58 PM roycroft: and while it did not seem to go halfway in, it went close to half
07:58 PM XXCoder: that just makes it much worse and more force
07:58 PM XXCoder: over 1/3 I would say
07:58 PM roycroft: i've never been to that store but i know exactly where it is
07:59 PM roycroft: the slit it cut was probably 2' long
07:59 PM roycroft: but the blade did not go in 2'
07:59 PM XXCoder: looked longer than that
08:00 PM roycroft: it still would have killed the guy, no question
08:00 PM XXCoder: very much so
08:00 PM roycroft: unless it just delimbed him
08:00 PM Unterhausen: reminds me of what we used to do with dvd's in the robotics lab
08:00 PM XXCoder: slightly reminds me of that movie "we come in peace"
08:00 PM roycroft: anyway, that ws friday in eugene
08:00 PM XXCoder: alien weapon was flying disc
08:02 PM XXCoder: https://www.youtube.com/watch?v=oGAG1XF2VgU man havent thought of that movie for a long time.
08:39 PM XXCoder: bought cheap strop thing and the green abrustive thing for it
08:39 PM XXCoder: probably not as good as good ones but then I dont need it to be that good
08:45 PM roycroft: if you strop regularly you won't need to sharpen it for a long time
08:58 PM XXCoder: yeah. I doubt I will use those knives a lot but its better to have sharp ones
08:58 PM XXCoder: plus if I learn how properly, I can also sharpen kitchen ones
09:21 PM XXCoder: dishwasher is so bad to knives
09:21 PM XXCoder: its likesandblasting it