CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
621 stars 143 forks source link

JSON material feeds and speeds import #281

Open WillAdams opened 5 years ago

WillAdams commented 5 years ago

Discussed at: https://groups.google.com/forum/#!topic/camotics-users/qYYuiPXYKVI

Considerations include:

Rather than material, should there just be a set of files by chipload and desired feed rate?

Perhaps the machine setting in Autodesk Fusion 360 could be used?

jcoffland commented 5 years ago

I do plan on implementing a feed and speed calculator in CAMotics. Is that what you had in mind with feeds and speeds import?

WillAdams commented 5 years ago

A feed and speed calculator would be awesome --- I'd just like some easy way to have a .tpl file be easily switchable to cutting with a different material which has different feeds and speeds (in particular, I'm doing test cuts in soft fir/pine now, but will be switching to various tropical hardwoods for the actual project).

Similarly, some projects will switch between my Shapeoko and Nomad --- it would be nice to have a way to alter the feeds and speeds accordingly.

WillAdams commented 5 years ago

Alternately, perhaps it could be implemented dynamically with some consideration of the underlying physics?

When I first heard of G-Wizard my assumption was that it would accept a G-Code file and once informed of the material which it was for, would analyze each movement and determine along that path how much material was present and how much force was necessary and would adjust the feed rate along the path (breaking it up if need be) and determine the optimal speed for the entire file (for machines which couldn't dynamically adjust the spindle speed).

It would be great to denote a desired chipload and cutting force when setting a path and have the program determine the appropriate feed rate for a given spindle speed.

jcoffland commented 5 years ago

That is ultimately one of my goals for CAMotics. Since CAMotics simulates the tool path cuts it would be possible to also compute the contact area between the tool and workpiece at any given moment. The direction vector and speed are already known. With some information about the tool and material, you can calculate lots of interesting things such as the force required, chip load, tool wear, etc.

The most difficult part is to compute the tool to workpiece contact area efficiently. I have some ideas on how to estimate this accurately. I just need time to get around to it.

WillAdams commented 5 years ago

Very cool!

Apparently Autodesk uses JSON for tool definitions as well: https://support.bantamtools.com/hc/en-us/articles/115001671594-Fusion-360-Tool-Library