#linuxcnc Logs
Dec 25 2024
#linuxcnc Calendar
12:52 AM lcnc-relay: <ntulinux2467@discord> it's my SO's fault, she couldn't wait so i opened all of mine too lmao
01:09 AM lcnc-relay: <ntulinux2467@discord> Merry Christmas everyone!
01:09 AM xxcoder: merry xmas
02:04 AM Deejay: moin
02:05 AM Deejay: merry christmas
02:05 AM xxcoder: merry xmas
02:05 AM Deejay: :)
04:10 AM lcnc-relay: <travis_farmer@discord> Merry Christmas!!!
04:29 AM JT-Cave: merry xmas
04:33 AM Tom_L: Merry Christmas
05:08 AM lcnc-relay: <meisterdippel@discord> merry xmas
08:12 AM * JT-Cave starts his chicken day
08:27 AM BorgPipe: https://www.youtube.com/shorts/ovLYSJN_VUM
08:46 AM TurboTechnique: ultrasonic wire splicing is the only method used in mass production nowadays
08:47 AM TurboTechnique: every car wire harness has splices like this
09:08 AM CaptHindsight: what we need now is an ultrasonic unsplicer
10:45 AM john__ is now known as C3_Shop
10:53 AM Tom_L: https://www.prestigeequipment.com/Machining-Centers-Horizontal-CNC/Makino-MCC2013-VG/43188/m
10:53 AM Tom_L: that gives the axis breakdown
11:03 AM lcnc-relay: <skunkworks8841@discord> facebook?
11:03 AM lcnc-relay: <skunkworks8841@discord> underhousen: 3 linear and 2 rotary are 'popular'
11:05 AM lcnc-relay: <skunkworks8841@discord> either trunion or spindle
11:59 AM lcnc-relay: <skunkworks8841@discord> I think a lot of time - people don't know what they really need.. But more axis more better...
12:12 PM Unterhausen: That was a facebook question. Isn't 3 linear and 2 rotary == 5 axis?
12:13 PM Unterhausen: I can't believe you linked a titan video without a warning. Now my hearing is down another 5db
12:30 PM xxcoder: lol https://cdn.discordapp.com/attachments/1022072757044908043/1321542026730274836/AQPm16s7qPRafXevjyP1cfzB5DwwX9cD0bTLRIIMfrvi1TUIS3jR3rKqmJ8raRIxODVDThmQSGx42dMTRKKcLq5B_WOIpaEvEPB7FGM.mov?ex=676d9d6c&is=676c4bec&hm=2d0ee6b444b3457a44a1011903e762a5388df730773b20e82b269e41b89a5781&
12:30 PM xxcoder: its download link unfortunately but funny cnc video
01:04 PM xxcoder: interesting. TC guy converts high wattage heater to use ev charger to power it
01:04 PM xxcoder: https://youtu.be/kTctVqjhDEw
02:04 PM * C3_Shop never clicks on a link that has tracking
02:07 PM xxcoder: its the timestamp, because discord sucks
03:12 PM Tom_L: Unterhausen, you shouldn't have the volume up that high to begin with :)
03:22 PM * JT-Shop needs to clean up the knuckle and spindle and put the spring in
03:25 PM Tom_L: JT-Shop, the rain missing you?
03:25 PM Tom_L: ... barely if it is
03:25 PM JT-Shop: no
03:25 PM JT-Shop: rain from monday until saturday
03:25 PM xxcoder: its normal here
03:25 PM xxcoder: ie its rain all day
06:03 PM linext: i'm trying to cut a rounded edge using a cnc mini lathe
06:03 PM linext: is the tool i'm using unable to reach the flat part of the curve?
06:04 PM linext: https://i.ibb.co/XxRmVFW/vncviewer-Kc-TIGGd-ARp.gif
06:13 PM Tom_L: the retract appears to be in the wrong direction too
06:19 PM linext: is the index able to cut only on the curved yellow?
06:22 PM Tom_L: add a leadin move to it if that's what you're asking
06:22 PM Tom_L: i can't really tell what you got going on there
07:16 PM linext: i'm trying to create this curve onto a 5mm steel cylinder: https://ibb.co/album/WsJFRP
07:16 PM linext: GrblGru appears to skip over that long taper on the right side
07:17 PM linext: i have a feeling to tool could do that section, maybe GrblGru is not supposed to use that side of the insert?
07:20 PM linext: at 10x the size it's still doing the same movement, so must be settings and not the shape
07:52 PM Tom_L: does it define different moves for facing & turning?
07:53 PM Tom_L: the insert should be fine as long as you have clearance
09:53 PM lcnc-relay: <tarehjerne@discord> Hello,
09:53 PM lcnc-relay: i have made my own nc communication program.
09:53 PM lcnc-relay: however i am not able to get the data out from the nc output on a fanuc machine.
09:53 PM lcnc-relay: since you all know a lot about computers and machinery, i figured i could get a bit wiser here.
09:54 PM lcnc-relay: <tarehjerne@discord> match serialport::new(port_name, baud_rate) // Use the selected baud rate
09:54 PM lcnc-relay: .data_bits(DataBits::Seven)
09:54 PM lcnc-relay: .stop_bits(StopBits::Two)
09:54 PM lcnc-relay: .parity(Parity::Even)
09:54 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/WhXpRigIFiZcjIYGGJXVRLxB/8ZnCQ4y-SYE (8 lines)
09:54 PM lcnc-relay: <tarehjerne@discord> i used these for the serial connection, where the user can change the baudrate, i set 4800 as default
09:55 PM lcnc-relay: <tarehjerne@discord> match port.read(buffer.as_mut_slice()) {
09:55 PM lcnc-relay: Ok(bytes_read) => {
09:55 PM lcnc-relay: if bytes_read > 0 {
09:55 PM lcnc-relay: let chunk = &buffer[..bytes_read];
09:55 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/KFYfONElnsEfVmNeZqxlRYbb/4Tf2Ds5LPf8 (17 lines)
09:55 PM lcnc-relay: <tarehjerne@discord> if xoff_received {
09:55 PM lcnc-relay: println!("Paused due to XOFF signal.");
09:55 PM lcnc-relay: continue;
09:55 PM lcnc-relay: }
09:55 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/llHXHFhQRbdsUteYgMklWRXK/Ik5-dpxQbaU (19 lines)
09:55 PM xxcoder: please use dpaste for large text paste
09:55 PM lcnc-relay: <tarehjerne@discord> i cant! it wont let me
09:56 PM xxcoder: dpaste is a website/ its at dpaste.com
09:56 PM lcnc-relay: <tarehjerne@discord> thought you meant deposit paste as a file.. yes let me do that
09:56 PM xxcoder: 👍
09:57 PM lcnc-relay: <tarehjerne@discord> https://dpaste.com/DKUEQ2DK8
09:57 PM lcnc-relay: <tarehjerne@discord> i am relatively new to rust. a lot of this was written by trial and error just to be clear.
09:57 PM xxcoder: cool :) hopefully someone will know whats issue with it
09:59 PM Tom_L: some older machines need delay built in the transfer
09:59 PM lcnc-relay: <tarehjerne@discord> when i export data from the machine, the raw data format i saved as hex and its in such a format.
09:59 PM lcnc-relay: https://dpaste.com/9RC5LD2UW
10:00 PM lcnc-relay: <tarehjerne@discord> Tom_L say more about that.
10:00 PM lcnc-relay: as we can see from the raw data transfer it creates a datadelay with spamming the same "78 18 78 18 18 78 18 18 78"
10:00 PM lcnc-relay: a lot before it starts
10:01 PM lcnc-relay: <tarehjerne@discord> i created a python program to revert this to ascii, but it leaves me with only unreadable characters
10:01 PM Tom_L: i was trying to remember the program we used to tranfer files
10:01 PM lcnc-relay: <tarehjerne@discord> if you have sourcecode, that would be super helpful hehe
10:02 PM Tom_L: it was very versatile in that you could set baud, parity bits etc and also add delay to the transfer for slow machines
10:02 PM lcnc-relay: <tarehjerne@discord> tera term?
10:02 PM Tom_L: no
10:02 PM lcnc-relay: <zincboy_ca_on@discord> Do you have the correct baud rate / databits / etc set?
10:02 PM Tom_L: it was a popular serial terminal program back then
10:02 PM xxcoder: i remember putty
10:02 PM lcnc-relay: <tarehjerne@discord> ZincBoy; i do believe i have. i am able to upload files to the machine using the same parameters
10:02 PM Tom_L: looking on my other pc
10:03 PM xxcoder: dunno if its same program you was thinking though (putty)
10:03 PM Tom_L: no
10:05 PM lcnc-relay: <tarehjerne@discord> RealTerm, HyperTerminal, HyperTerminal, Docklight, Qmodem, Minicom ?
10:06 PM Tom_L: realterm
10:06 PM Tom_L: pretty sure
10:06 PM lcnc-relay: <zincboy_ca_on@discord> It isn't generating normal ascii data so something is getting garbled. I would use a normal terminal program to see what the output looks like. That way you can figure out if the machine is generating valid data or if there is a problem with your code.
10:07 PM Tom_L: 4800 N 7 2 was fairly common
10:07 PM Tom_L: we had one that was set up like that but we had to add delay to the terminal program for it to work reliablly
10:07 PM lcnc-relay: <tarehjerne@discord> ZincBoy, i know for a fact there is a problem with my code. i am able to use another program to download data without issue using those parameters.
10:07 PM lcnc-relay: the laptop's harddrive took fire, and i had a.... not legitimally obtained version of a software to send and receive data
10:08 PM Tom_L: realterm would be your easy way out
10:08 PM lcnc-relay: <tarehjerne@discord> yes, it probably would be.
10:08 PM lcnc-relay: the other part of the task is i want to create a free, opensource easy to use program to send and receive data throug serial and ether
10:09 PM xxcoder: I found probably virus ridden sourceforge download and one github source
10:09 PM xxcoder: dunno if latter is same'
10:09 PM lcnc-relay: <tarehjerne@discord> feel free to share the github page
10:10 PM xxcoder: https://github.com/igorizyumin/realterm
10:10 PM Tom_L: we've used hyperterm (not as reliable) realterm and procomm but found realterm the best
10:11 PM lcnc-relay: <tarehjerne@discord> this is far worse than i imagined.
10:11 PM lcnc-relay: they have a data conversion table
10:11 PM lcnc-relay: <tarehjerne@discord> then i just need to find the relevant ones for fanuc, siemens and heidenhain
10:12 PM Tom_L: is this for downloading or DNC?
10:12 PM lcnc-relay: <tarehjerne@discord> downloading. DNC works perfectly fine as is
10:13 PM lcnc-relay: <tarehjerne@discord> the issue is not me being unable to read data from the machine. i am unable to convert it into a readable format.
10:13 PM lcnc-relay: the machine is sending instructions and other type of data that i am not able to translate through standard ascii conversion
10:13 PM Tom_L: do you have the cable wired right for the control?
10:13 PM Tom_L: some need jumpers on a few pins
10:13 PM lcnc-relay: <tarehjerne@discord> yes, i have a custom built usb to serial
10:14 PM lcnc-relay: <tarehjerne@discord> all of this runs on a converted hp laptop
10:14 PM Tom_L: we used pure serial, not sure how the usb/serial works
10:14 PM lcnc-relay: <tarehjerne@discord> it doesnt really work. but its the best i got.
10:14 PM lcnc-relay: i am using a prolific usb to serial cable, and i have a driver that registers it under the COM3 serial
10:15 PM lcnc-relay: <tarehjerne@discord> the libraries in rust for serialport do struggle with some functions. specifically dropping and flushing.
10:15 PM lcnc-relay: as its not a real serialport
10:15 PM Tom_L: you may be fighting more than one issue there
10:16 PM lcnc-relay: <tarehjerne@discord> its by no means optimal. i just dont get how its capable of sending but not receiving under the same connection
10:16 PM Tom_L: is it software or hardware flow control?
10:16 PM Tom_L: or none
10:16 PM lcnc-relay: <tarehjerne@discord> software
10:16 PM Tom_L: ack nak
10:17 PM lcnc-relay: <tarehjerne@discord> xon xoff i believe is software
10:17 PM lcnc-relay: <tarehjerne@discord> .data_bits(DataBits::Seven)
10:17 PM lcnc-relay: .stop_bits(StopBits::Two)
10:17 PM lcnc-relay: .parity(Parity::Even)
10:17 PM lcnc-relay: .flow_control(FlowControl::Software)
10:17 PM lcnc-relay: <tarehjerne@discord> baudrate 4800
10:17 PM Tom_L: it is
10:18 PM Tom_L: those settings were fairly common then
10:19 PM lcnc-relay: <tarehjerne@discord> yes. i know for a fact those parameters are correct
10:19 PM Tom_L: no jumpers on the cnc end?
10:19 PM Tom_L: trying to recall.. 4-5 6-8-20
10:19 PM Tom_L: on some
10:19 PM lcnc-relay: <tarehjerne@discord> i am not sure what you mean. i have a custom made db9 to db25 cable
10:20 PM lcnc-relay: <tarehjerne@discord> yes, that is what i did
10:20 PM Tom_L: on the DB9 or Db25
10:20 PM lcnc-relay: <tarehjerne@discord> something like that. the cable works well
10:20 PM Tom_L: ok
10:20 PM Tom_L: been quite a while since i messed with that stuff
10:20 PM lcnc-relay: <zincboy_ca_on@discord> Do you see the same character strings when using a normal terminal program? If so, the control is not putting out ascii values and you will need to reverse engineer what it is doing. That would be odd in my expectation.
10:21 PM lcnc-relay: <tarehjerne@discord> what i could do is compare the raw data against the expected program output and decode it that way
10:21 PM Tom_L: if it's just a serial downloader it shouldn't mess with the data
10:21 PM lcnc-relay: <tarehjerne@discord> its got two part. serial downloader and a part that converts it
10:22 PM Tom_L: mmm
10:23 PM Tom_L: like zinc said, that's odd
10:23 PM xxcoder: whats up with those data conversion tables?
10:24 PM Tom_L: we had one cnc that had an odd control on it that required things translated
10:24 PM Tom_L: we didn't keep it very long
10:24 PM Tom_L: iirc it was conversational
10:24 PM Tom_L: not just gcode some oddball thing
10:24 PM lcnc-relay: <tarehjerne@discord> the data i sent starts with
10:24 PM lcnc-relay: O3293 (DELETE THIS) ;
10:24 PM lcnc-relay: N10 G98 G18 ;
10:24 PM lcnc-relay: N11 G21 ;
10:24 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/XyYEnyAjBmMnucEOxWSYAFAV/sAG74S-gaUs (17 lines)
10:25 PM Tom_L: what's that look like in a hex editor?
10:26 PM lcnc-relay: <tarehjerne@discord> it just becomes gibberish
10:26 PM lcnc-relay: Decoded ASCII Data:
10:26 PM lcnc-relay: }xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx~:]}}X~W |.]x~X
10:26 PM lcnc-relay: ^. _x }]_x } 9x?:}^ W=x }M/z/~V]:~VMST{x~=}'zz }m'zZxx~X^ }X8KGV}::xxV}{]Mx~=z'x~==}wWzz
10:26 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/rTbICoWkAaahiUSmMFVKnZxi/AEo1-irUvi0 (6 lines)
10:26 PM Tom_L: that doesn't cross to irc
10:26 PM Tom_L: just garbage here
10:26 PM lcnc-relay: <tarehjerne@discord> yes. its not readable data
10:26 PM xxcoder: looks like garbage on discord too
10:27 PM lcnc-relay: <tarehjerne@discord> i can send you the raw data file, and converted file but its just gibberish
10:27 PM Tom_L: i don't need it
10:29 PM lcnc-relay: <tarehjerne@discord> Currently i have an idea.
10:29 PM lcnc-relay: i have programs in the machine, and the downloaded version of the program on my pc.
10:29 PM lcnc-relay: i can theoretically create a conversion table.
10:29 PM lcnc-relay: i take the raw data output, and match it using an algorythm to the datafile
10:30 PM lcnc-relay: <tarehjerne@discord> such that 7D -> G, 1A->X
10:30 PM lcnc-relay: <tarehjerne@discord> and irregular oddities like 78 18 18 18 are just to be ignored
10:32 PM Tom_L: 78 is N 18 is DC2 if it's actually hex
10:32 PM lcnc-relay: <tarehjerne@discord> this is indeed hex
10:32 PM lcnc-relay: <tarehjerne@discord> you are however assuming that this is standard utf8 or ascii formatting
10:33 PM Tom_L: no, i can't make sense of it
10:34 PM xxcoder: you can upload any file and download it correct?
10:35 PM xxcoder: wonder if you could upload known and simplest possible file and download it and compare
10:35 PM lcnc-relay: <tarehjerne@discord> yes, of course i can
10:35 PM lcnc-relay: <tarehjerne@discord> let me get you a pair of uploaded and downloaded files, as well as the hex raw data to go with it
10:37 PM xxcoder: dpaste it :)
10:37 PM xxcoder: I cant help much, I only remember some troubleshoot, but my knowledge is very rusty
10:41 PM lcnc-relay: <tarehjerne@discord> https://dpaste.com/CDKAQ5MRD
10:42 PM xxcoder: few changes ti download I see
10:43 PM xxcoder: the o code
10:43 PM xxcoder: that oddity before % start
10:43 PM lcnc-relay: <tarehjerne@discord> yes, the O is altered, and it puts HE
10:43 PM lcnc-relay: <tarehjerne@discord> however the rest should be fairly similar
10:43 PM Tom_L: different controls had different ways for comments
10:44 PM Tom_L: some use O others () or ; etc
10:44 PM lcnc-relay: <tarehjerne@discord> i am just curious if its normal for fanuc to have ascii formatting from rawdata output to whatever this is
10:44 PM lcnc-relay: <tarehjerne@discord> and how other softwares deal with this
10:44 PM Tom_L: i never knew fanuc to need translation
10:45 PM lcnc-relay: <tarehjerne@discord> well, you cant send letters through serial
10:45 PM lcnc-relay: <tarehjerne@discord> it has to come in as a binary signal
10:45 PM lcnc-relay: <tarehjerne@discord> and that needs conversion
10:45 PM Tom_L: right, i set realterm to 'ascii'
10:45 PM lcnc-relay: <tarehjerne@discord> ok. that tells me something
10:45 PM lcnc-relay: <tarehjerne@discord> ascii is just utf8 with less characters
10:45 PM lcnc-relay: <tarehjerne@discord> they have the same translation
10:46 PM Tom_L: prior to that we used to use procomm
10:46 PM Tom_L: same basic setup
10:46 PM Tom_L: i would test with realterm, get something working then figure out what it did that you don't have yet
10:47 PM Tom_L: possibly the hex/ascii bit? i dunno
10:47 PM Tom_L: you said it was 4800 E 7 2?
10:51 PM lcnc-relay: <tarehjerne@discord> yes, i gets the best data reading from that
10:51 PM lcnc-relay: <tarehjerne@discord> however it can use 9600 on the upload
10:52 PM lcnc-relay: <tarehjerne@discord> i just ran it again on the machine. here is what the console log said
10:52 PM lcnc-relay: aved file at C:\Users\Admin\Desktop\downloadedbolt.txt
10:52 PM lcnc-relay: Opened serial port: COM3 with baud rate: 9600
10:52 PM lcnc-relay: Received raw data: [1B]
10:52 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/nVYeoUzslMaJFBcwXUuNzElH/iWsdjimmMOY (12 lines)
10:52 PM lcnc-relay: <tarehjerne@discord> would you look at that. that is a &HE: and newline
10:52 PM lcnc-relay: <tarehjerne@discord> then it gets lost
10:52 PM lcnc-relay: <tarehjerne@discord> Raw Data (Hex):
10:52 PM lcnc-relay: 1B 26 48 45 3A 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00...
10:52 PM lcnc-relay: ... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00...
10:52 PM lcnc-relay: ... 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 25 20 0A 0D 0D
10:52 PM lcnc-relay: ... long message truncated: https://jauriarts.org/_heisenbridge/media/jauriarts.org/rqAIpsZqfwbQrYrcZbPFYWSi/ysL0ov0D0Ok (6 lines)
10:52 PM xxcoder: wow thats hella spam, please use dpaste.com
10:53 PM lcnc-relay: <tarehjerne@discord> perhaps i am doing something wrong with the code after all.
10:54 PM Tom_L: it's possible you could get data at 9600 but doubt it to be reliable if the baud should be at 4800
10:54 PM lcnc-relay: <tarehjerne@discord> at 4800 it does not produce any readable characters
10:54 PM Tom_L: also depending on the cable length etc
10:54 PM lcnc-relay: <tarehjerne@discord> here it produced some readable characters
10:55 PM Tom_L: no manuals?
10:55 PM lcnc-relay: <tarehjerne@discord> i could perhaps dig some up from the internet. all manuals i have on paper are about service and operator
10:55 PM Tom_L: sometimes hard to come by
10:57 PM Tom_L: i'm afraid it's just going to be trial and error
10:57 PM Tom_L: i would try realterm since it's so easy to change settings
10:57 PM lcnc-relay: <tarehjerne@discord> nothing wrong with that.
10:57 PM lcnc-relay: unfortunately manufactuers like fanuc purposly try to make this more difficult than it has to be
10:58 PM Tom_L: i'm aware of that
10:58 PM lcnc-relay: <tarehjerne@discord> my goal with this project, is to take a hit at their monopoly and create a usable, free, open source, userfriendly solution
10:58 PM lcnc-relay: <tarehjerne@discord> perhaps i can craft an algorithm that takes a sample file, sample raw data outputs, then creates a conversion table
10:59 PM lcnc-relay: <tarehjerne@discord> that way, any control manufacturer that does not use standard notation cant hide behind some pesky conversion error
11:01 PM * Tom_L goes to bed
11:01 PM lcnc-relay: <tarehjerne@discord> good night!
11:05 PM xxcoder: well good luck, hope you figure it out :)