News for hackers. Stuff that matters.
Re:The Beauty of Pulse Arc Welding by CoastalCoder on Tuesday April 11, 2023 @11:12AM (#35526284)
How about ChatGPT producing a suitable CNC program?

(I have no idea how feasible that is, I'm just curious.)

Re:The Beauty of Pulse Arc Welding by Blackthorn on Tuesday April 11, 2023 @11:24AM (#35526449)
And you thought chatgpt was bad with subtle bugs in generated Python code. Now just imagine it scrapping a thirteen hour part or crashing a $300,000 machine.
Re:The Beauty of Pulse Arc Welding by CoastalCoder on Tuesday April 11, 2023 @12:03PM (#35527091)
I've never worked with a CNC. Wouldn't they typically have safeguards against machine-damaging instructions?
Re:The Beauty of Pulse Arc Welding by Blackthorn on Tuesday April 11, 2023 @12:27PM (#35527442)
What the machine knows:

(1) Where the head is. (2) If you program it right, where the end of the tool is. (3) If you program it right, what the width of the cutting edge of the tool is.

That's it. You could maybe prevent it from diving the tool into the table. But you won't prevent it from trying to take a 2" cut into D2 steel. Or going down into a pocket and crashing the tool holder into a section of the workpiece. Or going down into a pocket and rapid moving left, slamming the tool into the workpiece (which if you're lucky will just break the tool).

Re:The Beauty of Pulse Arc Welding by mauvehaus on Tuesday April 11, 2023 @01:39PM (#35528442)
... And depending on whether it uses steppers or servos, it may only know where the head is relative to where it was last told its origin was.

... And, if it's using steppers, it only knows that much if it hasn't slipped/missed/lost a step.

Re:The Beauty of Pulse Arc Welding by davemp on Tuesday April 11, 2023 @12:29PM (#35527464)
From my at a glance knowledge of the space, complex CNC setups can have NP path routing problems to go from a model to the actual job. So I wouldn’t be surprised if the tools are underdeveloped. You’re only selling a couple of these machines to very sophisticated operators after all. There isn’t the scale/market to justify much polish.
Re:The Beauty of Pulse Arc Welding by jaipilot747 on Tuesday April 11, 2023 @12:25PM (#35527428)
Usually not. Especially not in machines where you manually set the bits and the machine has no idea of the bit and it's properties, nor of the piece you are machining.
Re:The Beauty of Pulse Arc Welding by jdboyd on Tuesday April 11, 2023 @12:46PM (#35527694)
They might try, but it is hard to know which instructions will damage something. The machine might not not what the shape of the work piece inside of it is supposed to be, and if it doesn't know that, it might not know when one operation fails in a way that would now cause a later operation to incorrectly collide part of the machine with the work piece.

On stupider machines that are only 10s of thousands of dollars/euros/etc, you also have to be certain that what the machine expects for tool geometry matches reality (meaning that the correct tool was in the correct tool location, that the tool is mounted in the holder at just the right length, that the tool itself hasn't deformed, etc.

That said, I wouldn't bet against AI stuff potentially being good at generating tool paths in the future.

Sometimes I think that existing CNC stuff might be too dumb. Where is the lathe equivalent of auto-probing a 3d printer bed or using machine vision to monitor the print? Where is the mill equivalent of visual examining each part like a pick and place machine does? Why can't I put a piece of metal in a vise and just tell the mill to square of the ends? It could be that what I'm picturing is only stuff that casual users would be interested in, and thus there isn't sufficient money to develop it.

Re:The Beauty of Pulse Arc Welding by di4na on Tuesday April 11, 2023 @01:09PM (#35528025)
Re auto probing: it exists but usually not at your level because you rarely need that precision for the work you do. On top of this, it gets far more expensive because the levelling mechanism end up having a precision cost too.

Also let say that the use case are a bit different. a 3d printer is a far far far more controlled environment

Re:The Beauty of Pulse Arc Welding by Kirby64 on Tuesday April 11, 2023 @01:27PM (#35528280)
The difference is simple, a 3d printer starts with nothing on the 'table' or platform and adds. It has 100% of the information of what is added, so in theory it's possible to know where any potential collisions are (this is not done in practice, and also doesn't account for adhesion print failures, etc, but it's possible).

A CNC starts with an unknown block on the table, held by an unknown workholding fixture, made of an unknown material. There just is not enough information to not crash into something unless programmed around it. Or just run way too fast and destroy tools.

In theory you could design sets of rules, but now you're having to add so much specificity to a design it's a big time waste. There's not really any meaningful entry level CNC machines, so if you can pay for the big machine... you kind of can pay for the expertise to not destroy the machine.

Re:The Beauty of Pulse Arc Welding by kube-system on Tuesday April 11, 2023 @01:59PM (#35528735)
There are FDM processes that go back down in Z direction - like printing multiple units on the same build plate one at a time. And in those situations you do have to be careful not to crash the print head into an already printed part.
Re:The Beauty of Pulse Arc Welding by dale_glass on Tuesday April 11, 2023 @02:58PM (#35529727)
Most will print every copy at once, switching between them.

It also often works better because doing small parts can overheat the plastic. Moving between copies lets things cool down.

Re:The Beauty of Pulse Arc Welding by kube-system on Wednesday April 12, 2023 @01:33PM (#35543504)
It can be useful for circumstances where you want to minimize (or even eliminate) retraction. I've done some cool prints in vase/spiralize mode with large nozzle sizes -- with zero seams, zero retractions, and zero moves over printed surfaces, you can get some really awesome looking prints.

But anyway it was just an example of a scenario where the slicer might not have enough information to know how to not crash the print head.

Re:The Beauty of Pulse Arc Welding by Kirby64 on Tuesday April 11, 2023 @04:21PM (#35530984)
Almost noone does this, though. But, even then, you have all the information you need in theory because you're putting down the plastic.
Re:The Beauty of Pulse Arc Welding by kube-system on Wednesday April 12, 2023 @01:25PM (#35543363)
FDM slicers usually don't have the information about the dimensions of the print head. Yes, it is a rarely used feature that is only supported by some slicers, but I just mention it as an illustration of the similar issue that exists with CNC machining.
Re:The Beauty of Pulse Arc Welding by bglazer on Tuesday April 11, 2023 @01:57PM (#35528722)
I'm surprised there's not closed loop control for feeds and speeds. Like, it seems relatively easy to tell when the tool is chattering, even a simple microphone and audio processing would probably give a decent signal that could then instruct the machine to slow the feed or take smaller bites.
Re:The Beauty of Pulse Arc Welding by jacquesm on Tuesday April 11, 2023 @03:57PM (#35530626)
There is, actually. Just not on all machines. Typically there is a current sensor and you can set some pretty tight tolerances on what is acceptable under cutting load. This also helps to detect worn out tooling (though normally you'd pre-program this in advance, but there are workpieces that are so large they'll wear out the tool in less than one pass).
Re:The Beauty of Pulse Arc Welding by dekhn on Tuesday April 11, 2023 @07:13PM (#35533000)
Not a direct response, but: adaptive toolpath (included in CAM programs like Fusion360) will make feed paths that aim for constant load on the tool, whereas more naive toolpaths will go from almost no load to extremely high load. On my crappy CNC machine it made a big difference in time/effort/money/waste.
Re:The Beauty of Pulse Arc Welding by auxym on Tuesday April 11, 2023 @12:56PM (#35527854)
Nope, not in my experience. They will happily ram themselves at full speed into your solid-block-of-steel workpiece if you tell them you (thereby probably causing tens of thousands of dollars in damage).
Re:The Beauty of Pulse Arc Welding by at_a_remove on Tuesday April 11, 2023 @02:46PM (#35529490)
Terrifying amounts of no, not even a little.
Re:The Beauty of Pulse Arc Welding by jacquesm on Tuesday April 11, 2023 @03:56PM (#35530608)
To some degree. But if you purposefully program in a toolstrike and ignore the warnings you'll get a toolstrike and depending on how beefy the tool/machine is the damage may well be considerable. Hold down clamps are a particularly good source of toolstrikes.
Re:The Beauty of Pulse Arc Welding by edrxty on Tuesday April 11, 2023 @01:15PM (#35528103)
I'm sure you could train it on a bunch of g code and get g code out but it wouldn't have any context for the specifically targeted CNC machine and would probably just gouge random holes in the bed with random tools
Re:The Beauty of Pulse Arc Welding by abakker on Tuesday April 11, 2023 @04:35PM (#35531179)
SO BAD. It is NOT aware of G and M codes on a per machine basis and will create amazing crashes will full conviction that it will work.
Re:The Beauty of Pulse Arc Welding by knodi123 on Tuesday April 11, 2023 @05:38PM (#35531942)
> crashes will full conviction that it will work

That 'full conviction' part is the kicker. I don't mind if an AI says "gee, this might work", or "maybe this?" But the confident idiocy is going to kill someone. I asked one what the best breed of dog was for a family with a child who had allergy problems and was sensitive to dander. It said a golden retriever was best, since they are hypoallergenic and don't ever shed, plus they're friendly and eager to please.

Re:The Beauty of Pulse Arc Welding by abakker on Tuesday April 11, 2023 @07:47PM (#35533269)
"confident idiocy" is exactly what is wrong with CGPT and other AIs. (and plenty of people)