#linuxcnc Logs
Oct 21 2018
#linuxcnc Calendar
02:18 AM Deejay: moin
02:50 AM XXCoder: so silent...
02:50 AM XXCoder: literally all irc channels in in said nothing for while
02:51 AM XXCoder: *i'm
02:51 AM MarcelineVQ: Change the channel marge :>
02:51 AM XXCoder: lol
02:52 AM XXCoder: its bit strange really as it includes one channel that usually talks a lot
03:23 AM gloops: irc is dying
03:23 AM gloops: people communicate with gifs these days
03:23 AM MarcelineVQ: I've been hearing that for 15 years
03:24 AM gloops: well the facebook cnc grouos have 10000 members - tell them to come here, none do
03:26 AM gloops: bridge of my nose is throbbing 3 days after i clouted it
04:21 AM Deejay: facebook is dying. irc will live forever!
04:25 AM XXCoder: theres xkcd of that too lol
04:25 AM XXCoder: not facebook but irc being forever
04:26 AM MarcelineVQ: XXCoder: competing standards?
04:26 AM XXCoder: nah
04:26 AM XXCoder: just google xkcd irc if youre curious lol
04:36 AM jthornton: morning
04:37 AM XXCoder: hey jthornton
04:38 AM jthornton: we lost power for a while last night
04:39 AM XXCoder: ouch heh
04:40 AM jthornton: just in the middle of installing my new distribution panel so the electric service area is a mess and I didn't feel like messing with it in the dark so it was oil lanterns
04:46 AM XXCoder: you was working on power system when power went out? wouldnt that not affect uou because you already turned it off?
04:48 AM jthornton: no a transformer blew up and the whole neighborhood was out
04:55 AM XXCoder: oh not talking about why it happened, wouldnt you not affected because you';d have already turned power off to modify it?
04:56 AM jthornton: no, I was watching TV when the transformer blew up
04:56 AM XXCoder: ahh ok lol
04:59 AM jthornton: one of my cameras gets a new random ip after a power outage and now I forgot the magic needed to change it in motioneye
05:00 AM jthornton: and the author thinks that answering questions on github is good enough for documents lol
05:01 AM XXCoder: you can reserve ip to mac address
05:01 AM XXCoder: most routers has this
05:01 AM XXCoder: so its still "dynimatic" but same mac address gets same ip if reserved
05:01 AM jthornton: I tried to set it in the camera as static but didn't work to good
05:02 AM XXCoder: some stuff dont work with static yeah thats why reservations is great thing to have
05:02 AM jthornton: I'll have to see what I can do with the router... it's behind at least 2 switches
05:03 AM XXCoder: once you reserve it, restart your camera it'll grab the correct ip
05:05 AM jthornton: https://imagebin.ca/v/4Jqhq8L29qT6
05:05 AM jthornton: from this page?
05:06 AM jthornton: hmm my test raspberry pi is on 50...
05:08 AM XXCoder: yep
05:08 AM XXCoder: dhcp reservation
05:08 AM XXCoder: put in ip address and mac address
05:09 AM XXCoder: copy the hostname if it exists
05:09 AM XXCoder: dont forget to click enable then save
05:09 AM jthornton: bbib gotta setup the coop2 raspberry pi static ip
05:10 AM jthornton: need this monitor as only one with HDMI plug
05:10 AM XXCoder: cool
05:12 AM jthornton: pi
05:24 AM XXCoder: oh FINALLY find a way to actually run a vismach
05:24 AM XXCoder: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Vismach
05:24 AM XXCoder: im running 5axis machine now
05:28 AM jthornton: cool
05:29 AM jthornton: does that page have more information than the documents?
05:31 AM XXCoder: somewhat
05:31 AM XXCoder: it actually says how to run machine for one
05:31 AM XXCoder: and location of exampkles! its in /usr/bin/5axiscnc for example
05:31 AM XXCoder: it doesnt say how to connect linuxcnc to virtual machine though
05:32 AM jthornton: I'll have to compare the two when I get done with all this ip mess
05:32 AM XXCoder: links at bottom is borked
05:32 AM XXCoder: links to videobin which dont exist
05:33 AM jthornton: I have the ip reserved for the camera so I just need to power cycle it?
05:33 AM XXCoder: yeah
05:34 AM XXCoder: capture() is still unknown
05:35 AM XXCoder: your version is better formatted honesly but other one has some missing details
05:35 AM XXCoder: but not a lot
05:37 AM XXCoder: wow! scaragui is fairly good commented and has links to certain C codes for more details
05:37 AM XXCoder: example # parameters that define the geometry see scarakins.c for definitions these
05:37 AM XXCoder: # numbers match the defaults there, and will need to be changed or specified on
05:37 AM XXCoder: # the commandline if you are not using the defaults.
05:37 AM jthornton: hmm camera is still on 52
05:38 AM jthornton: and reserve disappeared from the reservations list
05:38 AM XXCoder: have you released it? realized its still set
05:38 AM XXCoder: oh odd did you save it, and save setting page also?
05:38 AM jthornton: released it? what is that?
05:38 AM XXCoder: some router gui is weird
05:38 AM XXCoder: oh devices list there is "release" it expires ip address right away
05:39 AM jthornton: mine has a revoke and reserve button next to each client
05:39 AM XXCoder: oh revoke is basically same
05:40 AM jthornton: ok it's gone from the DHCP list
05:42 AM jthornton: poor chickens are going wtf is all that noise out there can't they tell it's sleepy time
05:42 AM XXCoder: does page itself has "save settings" seperate from save dhcp reservation?
05:42 AM XXCoder: if so, you have to click it after you save dhcp reservation. sometimes routers really has wtf design
05:42 AM jthornton: cool, it worked!
05:43 AM XXCoder: awesome :)
05:43 AM jthornton: thanks, now on to the next problem to solve this morning
05:43 AM XXCoder: it'll be always that ip now
05:43 AM XXCoder: btw that vismach file is quite detailed, but does NOT say what capture() is lol
05:44 AM XXCoder: reaxing max5gui now
05:44 AM jthornton: the scaragui one?
05:44 AM XXCoder: yeah
05:45 AM XXCoder: that one is arm type machine
05:45 AM XXCoder: so it has quite complex math and connections
05:46 AM XXCoder: capture() not defined ahain. I am starting to wonder if its taken from linuxcnc
05:46 AM jthornton: yikes it's 34°F outside and I didn't pick up the garden hoses
05:46 AM XXCoder: man your region have faster and wider range of temeprate
05:47 AM XXCoder: here its styill steady 50f
05:47 AM XXCoder: +
05:47 AM jthornton: 34-55 today
05:47 AM XXCoder: capture() is always called in this line: work = capture()
05:47 AM XXCoder: then its put into collection with other parts
05:48 AM jthornton: we need to see if hazzy can shed some light on this
05:49 AM jthornton: trying to roll all 4 tests into 1 for the chicken door/light astral thingy
05:50 AM XXCoder: nice
05:50 AM XXCoder: hmm max5gui is 5 axis mill, head rotates B axis, table have rotate, C axis
05:52 AM XXCoder: when I close linuxcnc, it also closes sim machine
05:52 AM gloops: hmm something funny here, not used machine for a couple of weeks, start up - homing wrong direction
05:52 AM XXCoder: but it dont run with linuxcnc
05:52 AM XXCoder: gloops: you sure you loaded right hal?
05:52 AM jthornton: gloops: stepper?
05:53 AM gloops: 2 steppers on that axis
05:53 AM gloops: XXCoder pretty sure yeah lol
05:53 AM jthornton: direction wire broken?
05:53 AM XXCoder: can you move it other way? if not probably as jt said
05:53 AM gloops: well both steppers are going wrong way, seems like a config issue more than anything
05:54 AM gloops: i cant jog it until its home, actually ill check switches might be stuck or something
05:54 AM jthornton: ah yea limit/home switches could be the issue
05:56 AM XXCoder: hbmgui looks like small mill machine. plain 3 axis horzional mill
05:59 AM XXCoder: ah! The .hal file of your machine in your /home/user/linuxcnc/config/yourmachine loads this script with "loadusr" al a HAL component and connects the axis. Following important things are described in the script:
05:59 AM XXCoder: so it must be called from HAL in order to work
06:01 AM jthornton: making progress? keeping notes?
06:01 AM XXCoder: nothing that that page doesnt say so far
06:02 AM XXCoder: you can load machine directly but it doesnt function, just displays machine
06:02 AM XXCoder: you just need to add loadusr (machine define file)
06:02 AM XXCoder: in HAL
06:02 AM gloops: false alar,. 12v supply to home switches hadnt started up, working ok now
06:02 AM gloops: alarm
06:03 AM XXCoder: ah lol
06:03 AM XXCoder: its trying to get off switch if its normally off
06:03 AM XXCoder: *on
06:03 AM XXCoder: so its going backwards trying to get off switcgh
06:03 AM gloops: yeah that would be it
06:04 AM gloops: glad i didnt start messing with the config homing took some messing to get right
06:04 AM XXCoder: jthornton: I might finally know what capture() does
06:04 AM XXCoder: # "tooltip" for backplot will be the tip of the finger
06:04 AM XXCoder: tooltip = Capture()
06:04 AM jthornton: cool
06:05 AM XXCoder: not quite sure what that means but maybe it gets model from linuxcnc, tool size so on and adds it there
06:05 AM jthornton: maybe reads the tool table?
06:05 AM XXCoder: yeah maybe
06:06 AM XXCoder: I suspect it gets diameter and length
06:06 AM XXCoder: pumagui seems to be good on notes
06:06 AM XXCoder: first one is very detailed but skips capture lol
06:07 AM jthornton: just need to collect all the bits into one txt file
06:08 AM XXCoder: what makes it bit unclear is this lines:
06:08 AM XXCoder: # tool or finger
06:08 AM XXCoder: finger1 = CylinderZ(0, 5, 50, 5)
06:10 AM XXCoder: that is in collection with few boxes then its collected with tooltip (the capture() variable)
06:10 AM XXCoder: maybe finger1 is "collet"?
06:11 AM XXCoder: I need to create HAL now
06:12 AM XXCoder: coniguring it to match hbmgui
06:13 AM XXCoder: it amazes me that theres no standard mill and no standard router
06:13 AM XXCoder: just weird machines
06:14 AM jthornton: yea a simple mill or lathe would be easier to follow
06:14 AM XXCoder: hbm is closest but its written strange way and its horzional
06:15 AM XXCoder: or maybe its too old and configation issue
06:16 AM XXCoder: thankfully scaragui while a arm, has clearly defined work area
06:22 AM XXCoder: hm it has 5 pins, so its bit more complex than I can make HAL file from
06:22 AM XXCoder: maybe ill just make your example machine and see later. its getting bit late so gonna sleep
06:22 AM jthornton: ok goodnight
06:22 AM jthornton: see you later
06:24 AM XXCoder: nice to make tiny progress there
06:24 AM XXCoder: I like your writing style way better
06:24 AM XXCoder: that pages a mess
06:24 AM jthornton: thanks :)
06:25 AM XXCoder: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Vismach in case dont have link lol
06:25 AM XXCoder: maybe I can create a standard cnc mill and router and configurations for those and push it in
06:25 AM XXCoder: because dang
06:28 AM XXCoder: maybe need tp split it into 3 pages, overall and some details on existing files, then how to specify machine, then how to create HAL hat runs that virtual machine
06:28 AM XXCoder: in fact, it'd be perfect if last one has "start from nothing" example
06:29 AM XXCoder: create machine, then create hal to work with it, then finally making it work
06:29 AM XXCoder: anyway off to bed
06:29 AM jthornton: yep that's what we need a start from scratch super simple example that just works
06:29 AM jthornton: I've just eliminated one chicken door test :)
06:34 AM Tom_L: 41°F Hi 67
06:34 AM jthornton: yesterday they said low of 40°F but it's 33°F atm
06:35 AM Tom_L: hope you took notes setting up your camera IPs
06:36 AM jthornton: and I didn't pick up my garden hoses yesterday...
06:49 AM jthornton: I think I got that now, it's only one crappy camera that resists me setting a static ip lol
08:26 AM gloops: first test of vertical plane for dovetails - works fine
08:27 AM gloops: made 1 big mistake though, fitted it at far end of table, cant see to touch off from computer lol
08:35 AM jthornton: need longer arms?
08:40 AM gloops: just a longer monitor cable for when dovetailing heh
08:41 AM gloops: i use under table for storage, so put the jig at the back out of the way
09:30 AM * JT-Shop starts a little fire
09:30 AM Tom_L: little nippy around the edges here
09:32 AM JT-Shop: yea here too
03:23 PM gloops: quiet again
03:25 PM * Deejay makes some noise
03:26 PM rmu: somebody is building rt-preempt raspbian images: https://github.com/guysoft/RealtimePi
03:46 PM JT-Shop: I thought buildbot was building one...
03:47 PM JT-Shop: or was that pcw_home that has one running for some time now
03:49 PM pcw_home: I've been using a kernel from rmu (its been running since July)
03:51 PM JT-Shop: all I've been running on my RPi's are chicken automation, I'm guessing if you run without a monitor it's ok?
03:52 PM pcw_home: Its OK running axis as long as you dont have any really complex backplots
03:52 PM JT-Shop: cool
03:53 PM pcw_home: (you need to enable hardware OpenGL)
03:54 PM pcw_home: if you do a full screen, dense 3d contouring backplot, you lose...
03:54 PM pcw_home: other than that is like running LinuxCNC on a slower Atom (Say D525 or so)
03:57 PM JT-Shop: well that's not bad then, is the kernel RTAI or preempt?
03:57 PM pcw_home: Preempt-RT is what I'm running
03:58 PM JT-Shop: is there enough power to run an ethernet card?
03:59 PM pcw_home: I have not tried since the RPI Ethernet is interfaced via USB
03:59 PM JT-Shop: oh yea, I had forgot about that
04:00 PM pcw_home: the Odroid C2 Ethernet is known to work OK
04:00 PM pcw_home: so probably "Le Potato" would work also
04:01 PM pcw_home: rmu: I'd like to try the RealTimePi install but it looks like it needs a lot to get to a working graphic
04:01 PM pcw_home: install
04:04 PM pcw_home: I am running the RPI LinuxCNC with a SPI interfaced FPGA card (that connects to the RPI's GPIO connector)
04:05 PM JT-Shop: neat!
04:11 PM pcw_home: using hm2_rspi driver
04:19 PM rmu: I just made an experiment with official raspberry pi 4.14 rt preempt tree (built new kernel packages), but max jitter seems to be worse than with my older kernel
04:19 PM rmu: then i found out about RealtimePi, didn't try it or look at it yet
04:20 PM rmu: arm ubuntu is here https://wiki.ubuntu.com/ARM/RaspberryPi
04:21 PM andypugh: Well, my spare bracket sold, but I don’t think I will try making them as a paying job: https://www.ebay.co.uk/itm/113308700577?_trksid=p2471758.m4704
04:24 PM JT-Shop: you could have included my cat...
04:25 PM andypugh: The chap who won is actually someone I have talked about CNC conversion ot the same mill as I have with.
04:28 PM JT-Shop: time for me to snuggle with the chickens for some warmth as they are 106°F
04:30 PM rmu: pcw_home: what do mean with graphic install?
04:31 PM MarcelineVQ: JT-Shop: is it getting cold where you are already?
04:31 PM pcw_home: the RealTimePi install is a console only dist AFAICT
04:32 PM rmu: last nightly build is from 2018-09-17
04:32 PM rmu: pcw_home: apt install xubuntu-desktop and some time should take care of that
04:33 PM pcw_home: Yeah, still seems like I would need to have a free day for futzing about with dependencies
04:35 PM Deejay: gn8
04:36 PM rmu: i just startet from the ubuntu console install linked above, desktop env installed without any problems
04:36 PM JT-Shop: MarcelineVQ: yea we had frost last night killed all the garden plants... burned some wood today
04:37 PM pcw_home: Maybe it just my unfamiliarity with the RPI, do thing like the hardware OpenGL driver get installed automatically?
04:38 PM rmu: didn't check native opengl yet
04:39 PM pcw_home: Gremlin is pretty painful without it
04:39 PM pcw_home: I guess I'm spoiled by I7s
04:40 PM rmu: you should try a 1992 vintage 68008 based controller ;)
04:43 PM pcw_home: Wasn't that a 8 bit bus version of the 68000?
04:46 PM rmu: yes
04:46 PM pcw_home: I'm curious to see how the RealTImePi kernel does. I need to have ISOLCPUs 1,2,3 to get long term reliability at a 1 KHZ servo thread and if if that could be avoided it would make the RPI more pleasant
04:48 PM pcw_home: I wonder if the person who wrote the hm2_rspi driver could be persuaded to port it to something a bit faster
04:48 PM rmu: like the lepotato?
04:49 PM rmu: i didn't manage to change kernel on that one
04:49 PM pcw_home: yeah at least you can have 4G of RAM but I think OpenGL support is a common issue with these ARM boards
04:50 PM rmu: they only do GLES AFAIK
04:50 PM pcw_home: sigh
04:50 PM rmu: that would need an ugly hack (like the one xscreensaver is using to make opengl screensavers run on GLES)
04:52 PM pcw_home: Yeah, I heard there was some kind of (possibly flakey) shim
04:52 PM rmu: so my glxgears are doing 150ish fps, i think that is not pure software rendering
04:53 PM pcw_home: I would not think so
04:53 PM XXCoder: run something that cannot be done in software render
04:54 PM rmu: the hardware opengl _should_ be synced to monitor refresh
04:55 PM pcw_home: I think that is the case AFAIKR
04:57 PM pcw_home: With software OpenGL when you started LinuxCNC there was about 5-10 second delay after axis painted the screen before the backplot was rendered
04:57 PM pcw_home: and backplot updates use about all of CPU when running
05:01 PM pcw_home: rmu, if you test the RealTimePi setup, tell me how it goes, got a sick ewe to attend to
05:03 PM rmu: don't understand, but i will :)
06:59 PM pink_vampire: hi
07:04 PM Tom_L: hi
07:10 PM infornography: hi
07:36 PM XXCoder: hey all
07:37 PM ziper: hi
07:38 PM XXCoder: pink_vampire: I finally managed to run vismach virtual machine
07:38 PM XXCoder: its ... interesting. I gonna learn more about it
07:39 PM pink_vampire: what is "vismach"??
07:39 PM XXCoder: its set of scrips and programs to fake a machine
07:39 PM XXCoder: any kind of machine
07:40 PM XXCoder: examples come wiht fairly unusual horzional mill to machine arm
07:47 PM pink_vampire: is there G0704?
07:47 PM XXCoder: the horzional one looks similiar to that but not quite
07:47 PM XXCoder: there is no standard mill example
07:47 PM XXCoder: im considering making one
07:47 PM pink_vampire: can you take some screen shots?
07:48 PM XXCoder: theres video of one lemme get it
07:48 PM XXCoder: https://www.youtube.com/watch?v=PfZwpjUs1xI
07:48 PM XXCoder: too bad that machine is not aviliable as example
07:57 PM pink_vampire: sorry I was next to the machine
08:02 PM XXCoder: no problem
08:07 PM pink_vampire: some parts are born https://i.imgur.com/smLJndv.png
08:07 PM XXCoder: effiel tower?
08:07 PM XXCoder: or filiment roller stabnd?
08:07 PM pink_vampire: no, and no
08:13 PM XXCoder: papwr towel wall mount?
08:13 PM pink_vampire: light
08:14 PM XXCoder: led strip I think I remember you talking about that
08:17 PM pink_vampire: you will see.
08:21 PM XXCoder: cool
08:22 PM pink_vampire: is is a project to test and get familiar with acrylic glue
08:23 PM XXCoder: nice :)
08:23 PM XXCoder: how was milling it? if I recall right it wasnt too hard, not like nylon
08:25 PM pink_vampire: it was like G0
08:25 PM XXCoder: fast eh. nice
08:25 PM XXCoder: dont try that with nylon it will fuse tool to block
08:26 PM pink_vampire: originally it was design to be in aluminum
08:28 PM XXCoder: interesting
08:59 PM XXCoder: LOL!
08:59 PM XXCoder: https://www.youtube.com/watch?v=QlKC5qUS80o ikea chair
09:27 PM pink_vampire: I'm in love with the acrylic glue!
09:32 PM _unreal_: acrylic glue?
09:32 PM _unreal_: sounds like crazy glue to me
09:32 PM pink_vampire: i mean the one that melt the edge
09:34 PM Tom_L: acrylic solvent
09:41 PM pink_vampire: yeah, I think this is the name for it
09:41 PM Tom_L: you can get it in different consistencies
09:42 PM Tom_L: i've had a tube of it and a liquid in a can
09:42 PM Tom_L: i like the liquid better
09:43 PM pink_vampire: the thick ones use to fill gaps
09:43 PM Tom_L: yep
09:54 PM XXCoder: :)
09:58 PM pink_vampire: waste board is done
09:59 PM pink_vampire: now i need to cut some aluminum