#garfield Logs

Jan 09 2024

#garfield Calendar

07:35 AM rue_mohr: hmm
07:49 AM Tom_L: 1st client cancelled
07:49 AM rue_mohr: Tom_L, looks like the people are using a program called "candle" as a g-code feeder to grbl
07:49 AM rue_mohr: its all graphicallness
07:49 AM Tom_L: gonna try it?
07:49 AM rue_mohr: no, I like mine
07:49 AM Tom_L: seems to do ok
07:49 AM rue_mohr: https://user-images.githubusercontent.com/15223225/76141496-0d811100-60b9-11ea-8a19-4b7c6cfa3034.jpg
07:49 AM rue_mohr: they integrated a 'pendant' into it
07:50 AM Tom_L: headless pc with a remote control
07:50 AM Tom_L: i like axis gui
07:50 AM rue_mohr: can you edit the nc file in there?
07:50 AM Tom_L: alot of others use different ones
07:51 AM Tom_L: i use geany then reload it
07:51 AM Tom_L: i don't think you can edit directly
07:51 AM rue_mohr: (Tom_L, I dont know what candle uses for the graphics display)
07:51 AM Tom_L: i've honestly never tried
07:51 AM rue_mohr: yea, I like that I can edit driectly and then save the resulting file
07:52 AM rue_mohr: thats how I did the lathe thing
07:52 AM rue_mohr: edit, step, manual command, reset program pointer, step...
07:52 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/screenshots/Current_Linuxcnc_Axis_screen.png
07:52 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/screenshots/Rotary_Axis_screenshot.png
07:52 AM Tom_L: those are the 2 i use
07:52 AM Tom_L: 2nd one has the A axis stuff
07:53 AM Tom_L: you can add custom stuff to the right side
07:55 AM Tom_L: https://github.com/kcjengr/probe_basic
07:55 AM Tom_L: somebody wrote that with pyvcp
07:56 AM Tom_L: too much for me
07:57 AM rue_mohr: thats a lot
07:57 AM Tom_L: yeah
07:57 AM Tom_L: touch screen
07:58 AM Tom_L: aparently you can edit from it
07:58 AM Tom_L: axis that is
07:59 AM Tom_L: http://linuxcnc.org/docs/stable/html/gui/axis.html
07:59 AM Tom_L: i generally just keep the file open in geany if i need to change something
08:00 AM rue_mohr: k, thats there atleast
08:00 AM rue_mohr: polprog, I cant seem to find the 555 digram...
08:00 AM Tom_L: i edit the tool table as well thru axis
08:01 AM polprog: oh no :(
08:01 AM rue_mohr: I take a LOT of photos...
08:01 AM Tom_L: http://ruemohr.org/~ircjunk/tempimage/p1300548.jpg
08:01 AM Tom_L: not that?
08:01 AM Tom_L: http://ruemohr.org/~ircjunk/tempimage/p1300549.jpg
08:01 AM rue_mohr: and I'm not sure if it was last year or the year before
08:02 AM rue_mohr: Tom_L, no, I did an 'alternate 555 pinout'
08:02 AM rue_mohr: its a 555, but with abnormal pin descriptions
08:02 AM Tom_L: oh
08:04 AM rue_mohr: neightbours have their house up for sale, I wonder how long it'll be listed for
08:04 AM Tom_L: maybe you should get it, save building a new one
08:04 AM rue_mohr: hah
08:04 AM rue_mohr: I need a building like nobody else
08:04 AM Tom_L: give you more room to play
08:05 AM rue_mohr: 2100 square feet shop, 300 square feet living
08:05 AM Tom_L: thus the tiny house link earlier
08:05 AM Tom_L: :)
08:05 AM polprog: buy the house next door, dig a tunnel, profit
08:05 AM rue_mohr: same building
08:06 AM rue_mohr: I had a spook at work yesterday
08:06 AM rue_mohr: morning meeting is at 7:30am
08:06 AM rue_mohr: at 7:28 I was the only person there
08:06 AM rue_mohr: THE ONLY
08:06 AM Tom_L: was it a good meeting??
08:07 AM rue_mohr: 2 people were there by 7:30
08:08 AM rue_mohr: at 7:32 the boss showed up
08:08 AM rue_mohr: :]
08:12 AM polprog: who was the spook
08:13 AM polprog: what agency/dept?
08:13 AM Tom_L: an empty room probably
08:13 AM rue_mohr: spook?
08:14 AM Tom_L: <rue_mohr> I had a spook at work yesterday
08:14 AM rue_mohr: oh no, I mean in the morning when I was sitting there, the only person
08:14 AM polprog: ahh
08:15 AM rue_mohr: wondering if there was a holiday or something I didn't know about
08:15 AM polprog: you mean a spook as got spooked by the room or there was some suspicious person ("government spook")
08:15 AM Tom_L: i've gotten up from a hard sleep and gotten all ready before to find out it's the weekend
08:16 AM polprog: ouch
08:17 AM polprog: i had a tour de city today, had to drop off dad at central station for an early morning train
08:17 AM polprog: got up at 6
08:17 AM polprog: i drop him off 20 min before the train leaves
08:17 AM rue_mohr: I was spooked when nobody showed up for work
08:17 AM polprog: drive to work, 10 mins later get a call "Hey, the train is listed with no platform and there was a message that it will not depart from here, and all passengers are to go to the east station"
08:18 AM rue_mohr: oh no
08:18 AM polprog: (east station is like, 3 miles east, 15 min by car)
08:18 AM polprog: so i drive back, pick him up, we drive to the east station
08:18 AM polprog: drop him off just in time
08:18 AM polprog: drive to work
08:19 AM polprog: 40 mins later i get a message "im on the train, there is no loco yet"
08:19 AM polprog: Winter strikes the national railway again
08:19 AM polprog: (it hit -13 C today)
08:19 AM Tom_L: nice
08:19 AM Tom_L: do they break the ice and go swimming there?
08:19 AM polprog: eventually they hauled some cargo loco to take the passenger cars and that drove them to the destination
08:19 AM Tom_L: those guys are nuts
08:20 AM polprog: what a shitshow
08:20 AM polprog: yeah we have "morse clubs" here
08:20 AM polprog: they usually do it at the seaside in the baltic (no ice there) or in the lakes (lots of ice)
08:24 AM polprog: rue_mohr: what did you write TapeRunner in?
08:31 AM Tom_L: i don't think he wrote it
08:31 AM Tom_L: modified maybe
08:33 AM Tom_L: i dunno maybe he did
06:12 PM rue_mohr: python
06:13 PM rue_mohr: I made taperunner from scratch
06:13 PM rue_mohr: I even used oop in python
06:14 PM rue_mohr: which isn't evil like oop in C
06:14 PM rue_mohr: ++
06:15 PM Tom_L: cool
06:40 PM rue_mohr: - sort pipe fittings
06:40 PM rue_mohr: - make paint sprayers
06:40 PM rue_mohr: - make robot remote
06:40 PM rue_mohr: not sure on a design for the remote, I'd like a tractor drive of some sort
09:10 PM rue_mohr: https://github.com/ruenahcmohr/TapeRunner/tree/master
09:10 PM rue_mohr: suggestions?
09:21 PM rue_mohr: polprog, I think I managed pretty clean code for that
09:21 PM rue_mohr: the object thing worked well
09:38 PM Tom_L: are you updating it?
09:39 PM Tom_L: you did something
09:40 PM Tom_L: you should fork it and update qt
09:41 PM Tom_L: i wonder what errors i'd get if i ran it
09:42 PM Tom_L: i wouldn't have alot of the dependencies
09:43 PM rue_mohr: taperunner? no
09:43 PM rue_mohr: the other thing has tonnes of complex dependencies
09:43 PM rue_mohr: I'm not so stupid as to use QT
09:43 PM Tom_L: which?
09:44 PM Tom_L: he uses it for his config tool
09:44 PM rue_mohr: candle has complex dependencies
09:44 PM Tom_L: oh
09:44 PM rue_mohr: not mine, (taperunner)
09:44 PM Tom_L: yeah i don't think i'd touch that
09:45 PM rue_mohr: its for serial port machines :]
09:45 PM Tom_L: does main.py call everything else?
09:45 PM rue_mohr: both of them I guess
09:45 PM rue_mohr: yes, main.py is the core
09:45 PM rue_mohr: python3 main.py
09:45 PM Tom_L: i know
09:45 PM rue_mohr: hey, did you ever catch z's middle name?
09:45 PM Tom_L: z?
09:45 PM rue_mohr: zhanx
09:45 PM Tom_L: no
09:46 PM rue_mohr: huh
09:46 PM rue_mohr: I wonder if it started with a B.
09:46 PM Tom_L: i never knew
09:46 PM rue_mohr: there is a poster on the local for sale list with a suspect name
09:46 PM Tom_L: do i need to change rights for the serial port?
09:47 PM rue_mohr: yea, you need to be allowed to open it
09:47 PM rue_mohr: I usually chmod 777 /dev/ttyUSBx
09:47 PM Tom_L: i'll clone it and see what happens
09:47 PM rue_mohr: but your machine does't use a serial port?
09:49 PM Tom_L: dependencies: grblcnc selectcomm serial
09:49 PM rue_mohr: grblcnc is one of the files in the github, so are the rest...
09:50 PM rue_mohr: did you get all the files in the project?
09:50 PM Tom_L: i cloned it
09:50 PM Tom_L: i think i got em all
09:50 PM rue_mohr: ? odd
09:50 PM rue_mohr: its all right there
09:50 PM rue_mohr: did it just complain that it couldn't find those?
09:51 PM Tom_dev: tom@bookworm:~/taperunner$ python3 main.py
09:51 PM Tom_dev: Traceback (most recent call last):
09:51 PM Tom_dev: File "/home/tom/taperunner/main.py", line 3, in <module>
09:51 PM Tom_dev: from grblcnc import *
09:51 PM Tom_dev: File "/home/tom/taperunner/grblcnc.py", line 5, in <module>
09:51 PM Tom_dev: from selectcomm import *
09:51 PM Tom_dev: File "/home/tom/taperunner/selectcomm.py", line 2, in <module>
09:51 PM Tom_dev: import serial
09:51 PM rue_mohr: oh! its serial its having an issue with
09:52 PM rue_mohr: python3-serial
09:52 PM rue_mohr: ^^^ that module is the one you need
09:52 PM rue_mohr: apt-get install python3-serial
09:53 PM Tom_dev: it runs
09:53 PM rue_mohr: yay
09:53 PM rue_mohr: under the ...
09:54 PM rue_mohr: machine menu
09:54 PM rue_mohr: you can select a port
09:55 PM Tom_dev: i'm not even sure what ports are on this pc
09:55 PM rue_mohr: it will list the /dev/ttyS* ports
09:55 PM Tom_dev: it's not usb but serial right?
09:55 PM Tom_dev: yeah
09:55 PM rue_mohr: if you want, type in /dev/null
09:55 PM Tom_dev: only one
09:55 PM Tom_dev: 9600?
09:55 PM rue_mohr: if you want
09:55 PM Tom_dev: i guess it doesn't matter
09:56 PM rue_mohr: when you have it, click Yup
09:56 PM Tom_dev: no rights
09:56 PM rue_mohr: it will enable the connect and disconnect items
09:56 PM Tom_dev: permission denied
09:56 PM rue_mohr: ok, use /dev/null :]
09:56 PM rue_mohr: or run chmod 777 /dev/ttyS....
09:57 PM Tom_dev: sudo?
09:57 PM rue_mohr: oh I'm always root, yea
09:58 PM Tom_dev: do you have to run machine ->setup each time?
09:59 PM rue_mohr: when you start the program yea
09:59 PM Tom_dev: got no errors that time
09:59 PM rue_mohr: so, if you go to file->open you can select an NC file
09:59 PM rue_mohr: it only opens the files read-only, it loads them into the gui and closes the file
10:00 PM rue_mohr: you can edit them in the window
10:00 PM rue_mohr: if you click machine->step, it will send a line to the machine
10:00 PM Tom_dev: hard for me to see the dark cursor
10:00 PM rue_mohr: it has to get a reply for 'run' to work
10:01 PM rue_mohr: I made the menus tear-off, so I usually tear-off the 'machine' menu
10:01 PM Tom_dev: Please allow me 1 second while I figure out how to quit.
10:02 PM rue_mohr: There is threading, the children use a 1 second poll to find out if their parent died
10:02 PM Tom_dev: even if i didn't know i could figure out who the author was
10:03 PM Tom_dev: you're using qt for the gui?
10:03 PM rue_mohr: none
10:03 PM rue_mohr: tk
10:03 PM Tom_dev: oh
10:03 PM rue_mohr: I wont use QT
10:04 PM Tom_dev: i know next to nothing about either one
10:04 PM rue_mohr: just pre-made ui objects
10:04 PM rue_mohr: buttons, text fields, positioning grids
10:05 PM Tom_dev: so this hooks to a hardware uart on the mega?
10:05 PM Tom_dev: or software
10:05 PM rue_mohr: just a serial port, it doesn't care
10:06 PM Tom_dev: i mean is that what you're using?
10:06 PM rue_mohr: most of grbl is a serial->usb adapters
10:06 PM Tom_dev: mmm
10:06 PM rue_mohr: mine use serial->usb adapters, I think all are on arduino unos
10:06 PM Tom_dev: linuxcnc doesn't support usb because it's not realtime
10:07 PM rue_mohr: yep
10:07 PM rue_mohr: the motion control is done on the other end of the usb tho
10:07 PM Tom_dev: the sherline used to use a serial connection to the pc
10:07 PM Tom_dev: on the old control it had
10:07 PM rue_mohr: that program is just sending the NC text to the avr
10:07 PM Tom_dev: right
10:07 PM Tom_dev: grbl does the interpretation
10:08 PM Tom_dev: 16Mhz?
10:08 PM Tom_dev: avr
10:08 PM rue_mohr: 16..... yea
10:10 PM Tom_dev: i got one of those mega boards somewhere
10:10 PM Tom_dev: i don't even remember which mega it was now
10:10 PM Tom_dev: for a printer
10:10 PM Tom_dev: but i never used it for that
10:10 PM rue_mohr: probably 256
10:11 PM rue_mohr: probably 2560
10:11 PM Tom_dev: 2560
10:11 PM Tom_dev: not even sure where it is now
10:11 PM Tom_dev: will grbl use an lcd?
10:11 PM rue_mohr: https://github.com/ruenahcmohr/TapeRunner/blob/master/README.md
10:12 PM rue_mohr: thanks, I updated the readme
10:17 PM Tom_dev: file open, you should keep recent ones
10:17 PM Tom_dev: a few anyway
10:17 PM rue_mohr: history there would be cool
10:17 PM rue_mohr: what I'd really like is a history on the command window
10:17 PM Tom_dev: mdi
10:17 PM Tom_dev: ?
10:18 PM rue_mohr: so you could hit the up arrow for previous commands
10:18 PM Tom_dev: right
10:18 PM rue_mohr: mdi?
10:18 PM Tom_dev: manual data input
10:18 PM Tom_dev: same thing
10:18 PM rue_mohr: did you notice the blue hilight in the left pane?
10:19 PM Tom_dev: yeah
10:19 PM rue_mohr: thats the program counter
10:19 PM Tom_dev: but i can't hardly see the black cursor
10:19 PM rue_mohr: you can click on a line and it'll jump to that line
10:19 PM rue_mohr: not while in 'run' mode tho, that was a disaster...
10:19 PM rue_mohr: then I fixed it
10:19 PM rue_mohr: but you CAN edit while running
10:20 PM rue_mohr: I'v had a few programs I'v jumped ahead and changed feed rates on while it was running
10:20 PM rue_mohr: the hilight it just the next line its going to send tho
10:20 PM Tom_dev: it doesn't save the edits back to disk does it?
10:21 PM rue_mohr: you can using Save AS
10:21 PM rue_mohr: I did that intentionlly so you could not accediently overwrite a file
10:21 PM Tom_dev: that's what i wondered
10:21 PM rue_mohr: if you overwrite a file, you had to be trying
10:22 PM rue_mohr: I'm not sure how it would handle gigantic files
10:22 PM rue_mohr: cause it loads it into the text box and closes the file
10:22 PM Tom_L: i probably have some
10:22 PM rue_mohr: heh
10:23 PM rue_mohr: I suppose if you have a file history there has to be a config file somewhere
10:23 PM rue_mohr: which I could also save the port settings into
10:23 PM Tom_L: you should look at his config tool
10:23 PM Tom_L: it's getting pretty fancy
10:23 PM rue_mohr: I like simple...
10:23 PM Tom_L: i debug it for him
10:23 PM rue_mohr: heh
10:24 PM rue_mohr: part of why I like simple
10:24 PM Tom_L: it's plain but powerful
10:24 PM Tom_L: fancy was a bad word for it
10:24 PM Tom_L: https://github.com/tlight9/mesact
10:24 PM Tom_L: there's likely a deb there to install with
10:25 PM rue_mohr: huh, no sreenshots
10:26 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/JT-SHOP/mesact/Mesact1.png
10:26 PM Tom_L: that's an old one
10:26 PM Tom_L: it's up to 2.1.0 now
10:27 PM rue_mohr: oof
10:27 PM Tom_L: he's put alot of time into it
10:27 PM Tom_L: but it will generate a working config
10:28 PM rue_mohr: yea, thats a lot of gui
10:28 PM rue_mohr: gui code is crazy big
10:28 PM Tom_L: you could see how he did his history though
10:28 PM rue_mohr: :]
10:29 PM Tom_L: trying to think.. i don't recall what all would have a history
10:29 PM Tom_L: there's a checkbox to load the last used file i know
10:29 PM rue_mohr: oh I can just ask chatgpt
10:29 PM Tom_L: or there used to be
10:29 PM rue_mohr: I need to go to bed soon
10:29 PM Tom_L: i'm shutting stuff down as we type
10:30 PM Tom_L: now that you got the new mill working, you should update this thing some
10:31 PM rue_mohr: it says
10:31 PM rue_mohr: http://paste.debian.net/1303591/
10:32 PM Tom_L: try it
10:33 PM rue_mohr: looks extremely cursed, not now :]
10:33 PM Tom_L: so does: socat pty,link=/dev/ttySEther,raw,echo=0 tcp:192.168.9.14:44
10:33 PM Tom_L: take the place of the gui?
10:33 PM Tom_L: or wtf is that for?
10:33 PM rue_mohr: ah!
10:34 PM rue_mohr: I have a bunch of serial to ethernet adapters
10:34 PM rue_mohr: serial port on one end, ethernet on the other
10:34 PM Tom_L: oh
10:34 PM rue_mohr: they are set to do raw communications between port 44 of its ip address to the serial port
10:35 PM rue_mohr: that line creates a virtual serial port on the computer I run taperunner on, so that it THINKS that the cnc is on a local serial port
10:36 PM rue_mohr: avr->serial->ethernet~~~~~~~~~ workstation (socat) (taperunner)
10:36 PM rue_mohr: I have like 10 of the adapters
10:36 PM Tom_L: one pc or 2?
10:36 PM rue_mohr: one
10:36 PM rue_mohr: the cnc just has an avr and the ethernet to serial adapter
10:37 PM rue_mohr: I think the device is an "ipocket 232"
10:37 PM Tom_L: k, it's bedtime here
10:38 PM rue_mohr: half hour ago for me
10:48 PM rue_mohr: https://m.media-amazon.com/images/I/41xrqatAvwL._AC_UF894,1000_QL80_.jpg