#linuxcnc Logs

Feb 06 2024

#linuxcnc Calendar

12:59 AM Deejay: moin
02:11 AM fdarling: I have a question: if I use M61 to set the current tool manually, iocontrol.0.tool-from-pocket is not updated to reflect that tool. If I use M6 to switch to the tool, iocontrol.0.tool-from-pocket is updated with that tool's pocket...
02:12 AM fdarling: is there a way to have M61 also update iocontrol.0.tool-from-pocket? Maybe with some remapping and Python trickery?
02:13 AM fdarling: it doesn't functionally seem to break anything since M6 still behaves correctly (at least with the routine I wrote), but it makes the GUI not show the "return to" pocket correctly
02:13 AM fdarling: (by GUI, I mean a custom number display in a PyVCP panel I made)
02:27 AM jpa-: i wonder if you could do a fake M6 to the current tool after M61 and whether it would update the value
02:27 AM fdarling: jpa-: I am not at the machine in question right now, but I thought of that too and will have to try it
04:08 AM Tom_L: morning
04:09 AM Tom_L: fdarling, you may want G43 after the M61 too as the TLO isn't updated with M61
04:09 AM fdarling: I might, but usually if TLO is needed it's set in a program that will be run.
04:09 AM Tom_L: hopefully yes
04:10 AM Tom_L: in your case with a tool changer probably.
04:10 AM fdarling: the issue is that I don't want to crash the toolchanger, so I have some convoluted stuff to save/restore the tool in the spindle to make it persistent
04:10 AM fdarling: https://www.youtube.com/watch?v=-qiiYXdvxuA
04:10 AM fdarling: ^^^ this is the result of my work last night
04:11 AM fdarling: it changes tools properly, both to a valid tool number and to 0 (no tool)
04:11 AM fdarling: if you shutdown LinuxCNC and restart it, it remembers the tool in the spindle and where the carousel is
04:11 AM Guts71: Could I create an HMI from scratch ?
04:11 AM fdarling: however, that iocontrol pin saying what the tool's pocket is seems to be incorrect if the tool is artificially loaded with M61
04:12 AM fdarling: Guts71: what do you mean by HMI? a LinuxCNC GUI? or something else?
04:13 AM Guts71: fdarling Yes exactly !
04:14 AM Tom_L: sure you can
04:14 AM Tom_L: https://www.gnipsel.com/linuxcnc/flex/index.html
04:14 AM Tom_L: is one example of scratch built
04:16 AM Tom_L: fdarling, where is the pocket number stored?
04:17 AM Tom_L: oh, that's in the tool table isn't it?
04:17 AM fdarling: Tom_L: in the tool table
04:17 AM fdarling: Tom_L: yeah, that's why I think M61 should update that iocontrol pin
04:18 AM Tom_L: the tool table is slow to update i'm finding out unless you flush it with another command to help it along
04:18 AM fdarling: Tom_L: do you know who runs that server? The image links seem broken
04:18 AM Tom_L: the var file s even slower
04:18 AM Tom_L: jt
04:18 AM Tom_L: the gnipsel one?
04:19 AM fdarling: Tom_L: I am not currently running into tooltable loading issues since I don't change its contents very often
04:19 AM fdarling: I think M61 and M6 behave different on how they update that "tool-from-pocket" pin...
04:20 AM fdarling: Tom_L: yes, the server for gnipsel.com
04:20 AM Tom_L: i'm not sure who he uses but that's jt's site
04:21 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/JT-SHOP/JET/jog_for_fixture_touchoff.png
04:21 AM Tom_L: there's a screen shot of it
04:39 AM Tom_L: fdarling, i wonder what effect RANDOM_TOOLCHANGER = 1 would have on it
04:39 AM Tom_L: http://linuxcnc.org/docs/2.7/html/config/ini-config.html#_emcio_section
04:40 AM Tom_L: https://forum.linuxcnc.org/10-advanced-configuration/37574-non-random-atc-gmoccapy-tool-pockets-numbers?start=10
04:45 AM Guts71: fdarling to create a LinuxCNC GUI, what kind of programming language is it written in?
04:46 AM fdarling: Guts71: most people write the GUI in Python, but it is possible to do it in C++, I believe it's a bit less documented (or there are less examples)
04:46 AM fdarling: (I personally would prefer to do it in C++)
04:48 AM Guts71: fdarling and could I visualize systems like 'visualization of variation of a motor in real time' ?
04:48 AM fdarling: Guts71: do you mean visualize the "following error" of a joint/axis?
04:49 AM Guts71: Like a graph !
04:51 AM fdarling: Guts71: what do you mean by "variation" though? It has to be varying from some other thing to have a comparison
04:52 AM Guts71: Not to follow the errors, but rather the variation of the motor in real time when it is running, this via its drive which controls it
05:07 AM JT-Cave: morning
06:28 AM Tom_L: 29F & fog
06:29 AM Tom_L: hi 56F
06:29 AM JT-Cave: 34°F Sunny High: 56°F
06:30 AM Tom_L: i at least found why the right pannel was gone.... somehow got turned off in the view settings
06:31 AM Tom_L: JT-Cave, where are the colors changed for the estop & power buttons?
06:31 AM JT-Cave: status.py
06:33 AM JT-Cave: https://github.com/jethornton/jet/blob/master/jet/src/libjet/status.py#L31
06:34 AM JT-Cave: that drove me nuts because the manual states that there is a STATE_OFF but there is not
07:18 AM Tom_L: there is ON OFF ESTOP & ESTOP_RESET
07:19 AM Tom_L: from emc.hh
07:21 AM Tom_L: but under estop just shows STATE_ESTOP returns or not
07:23 AM JT-Cave: https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/axis/extensions/emcmodule.cc#L419
07:25 AM Tom_L: gets a bit confusing
07:25 AM Tom_L: later...
07:27 AM JT-Cave: k
07:28 AM JT-Cave: .hh defines it but .cc doesn't use it
09:11 AM JT-Cave: Tom_L, hal pins from the gui tomorrow!
09:47 AM Roguish: JT-Cave, any work on a path preview graphic yet? ya know, something like gremlin
09:47 AM Roguish: just curious
09:47 AM Roguish: not pushing
09:48 AM JT-Shop: been side tracked on getting functions to work, I have been working on the plot away from the gui for the moment
09:48 AM Roguish: cool.
09:50 AM JT-Shop: off to the feed store
09:50 AM JT-Shop: and bonus I'm about to get dynamic creation of hal pins connected to pushbuttons done
12:02 PM Tom_L: JT-Shop, trying to decided where to put coolant buttons
12:02 PM Tom_L: manual tab seems like it
12:03 PM Tom_L: i figured that would be an easy place to start
12:04 PM JT-Shop: yup manual seems right to me
12:09 PM Tom_L: how do you restrict the size of a bounding box?
12:09 PM Tom_L: the horizontal vertical spacers are too wide
12:10 PM Tom_L: unless there's a setting to change that
12:11 PM JT-Shop: the size of an object is usually controlled by the container it's in... you can use vert and horz to make it the minimum size you specify
12:11 PM JT-Shop: it's a bit of a trade off sometimes and takes some fiddling
12:11 PM * JT-Shop wanders in for a nap
01:25 PM Unterhaus_ is now known as Unterhausen
06:16 PM roycroft: um, ok
06:16 PM roycroft: i need a forstner drill, and am having a hard time finding the size i need (1-13/16"), but amazon claim to have them
06:17 PM roycroft: free delivery on friday, august 23, 2024
06:17 PM roycroft: or i can pay for expedited shipping and get it between august 17 and august 21
06:18 PM * roycroft wonders if anyone ever orders tools that have that kind of lead time
06:18 PM roycroft: i'll go with 1-3/4" and a rasp :)
06:24 PM Tom_L: you in a hurry?
06:25 PM Tom_L: https://timberlinetools.com/Woodstock-D2858-1-13-16-Forstner-Bit-p/woodstock%20d2858.htm
06:39 PM Tom_L: JT-Shop, how did you figure the mdi thing out? that's pretty cool
08:06 PM Oksana is now known as Oksanaa
08:06 PM Oksanaa is now known as Oksana
08:30 PM -!- #linuxcnc mode set to +v by ChanServ
08:33 PM Tom_L: :/ all that over a bad cable i think
08:44 PM flyback: Tom_L,
08:44 PM flyback: I can help you try to recover more data on the ssd
08:44 PM flyback: if the ssd is failing
08:44 PM Tom_L: i don't need it, i copied what i needed
08:44 PM flyback: ok :)
08:44 PM Tom_L: the rest is just time
08:45 PM flyback: this laptop is failing, I going to replace it with another one, the lcd is less 1366x900 vs 1980x1020
08:45 PM flyback: but at least it doesn't have lines in the screen or the screen isn't having seizures
08:45 PM flyback: and it's only for bedtime laptop anyways
08:45 PM flyback: I am moving irc to a encrypted vm this week also :)
08:45 PM flyback: finally
08:46 PM flyback: also moving it to wired ethernet so no more random wifi drop outs
08:46 PM flyback: and xrdp which makes remote acesss 100x over vnc
08:46 PM flyback: im slowly moving all my stuff to modern filesystems and disk encryption to guard against theft
08:48 PM flyback: once I have some of my infrastructure fixed up then I can start working on electronic projects
08:48 PM flyback: setting up a solder bench etc
08:48 PM flyback: still have to find a new job also, dunno how much free time I will have after that
08:48 PM Tom_L: how do you add/remove items from xfce menu?
08:48 PM flyback: nfc :P
08:49 PM Tom_L: wasn't my choice of desktops
08:49 PM flyback: I use lubuntu and lxqt
08:49 PM flyback: never liked the uc***tu unity/gnome-fake-unity-look interface
08:51 PM XXCoder: flyback: xfce is not unity or whatever
08:51 PM XXCoder: it is its own deskop manager
08:53 PM XXCoder: Tom_L: there should be menu editor]
08:53 PM XXCoder: yep literally "menu editor"
08:53 PM Tom_L: yeah if you install one
08:53 PM Tom_L: where?
08:53 PM XXCoder: I dont know if I installed it in past or not
08:53 PM XXCoder: I just used search
08:54 PM XXCoder: (in menu)
09:01 PM Tom_L: this is a worthless pos
09:38 PM flyback: I know that
09:38 PM flyback: I was just saying I hate unity
09:39 PM XXCoder: ok
10:14 PM -!- #linuxcnc mode set to +v by ChanServ
11:03 PM solarwind: RTAI kernel showing almost 10x lower jitter than preempt RT
11:03 PM solarwind: I don't know why anyone would consider preempt RT "realtime", it just isn't
11:35 PM Tom_L: for ethernet mesa cards