![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Coding Post your Coding for opensource projects here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| Guys, I am working on a utility for 3 axis milling. The idea is that the util will analyze a .NC file to compute statistics. My goal is to scan the file then list sfm (surface feet per minute), fpt (feed per tooth), and ramp angles for each tool. This information is useful for proper management of feed/speed on the mill. When the tool is ready I will make it open source. The idea is that this tool can be run on an NC file to quickly check the cutting parameters so you can determine if the tool usage is optimal. Sfm and fpt are easy to calculate once I know the tool size and number of flutes. This info is not in the NC file but I can embed it in comments. I can detect plunge moves and list them separately (so the fpt range does not report really slow stuff). Plunge moves are easy to detect since x and y don't move. Ramp moves can be detected when the program sees change in x,y, and z. Calculation of ramp angle for the tool moves is a bit tricky and I suck at trig. Basically I am looking for some help with the math to determine the angle of line for any ramp move that I detect. double computeRampAngle(double x, double y, double z) { double xyDistance = Math.sqrt((x * x) + (y * y));} If anyone is good at math and willing to help it would be very much apreciated. The project code is in java. I will post it on my website this weekend so if anyone does java coding they are welcome to take a look. Right now sfm and fpt calculations work for xy and plunge moves. When the ramping stuff works I think it will be ready for a 1.0 release and hopefully someone will find the idea useful. -Mark |
|
#2
| |||
| |||
| I think it's just: angle = ATan(z/x) I don't know Java - be sure that you're using a trig function that works with degrees and not radians
__________________ Software For Metalworking http://closetolerancesoftware.com |
|
#7
| |||
| |||
| double xyDistance = Math.abs(Math.sqrt((x * x) + (y * y))) double zDepth = Math.tan(5/180*Math.Pi) * xyDistance |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Clamping force calculation | Wiseco | Moldmaking | 10 | 08-04-2008 02:20 PM |
| Ramp in Z Toolpath | solgood | BobCad-Cam | 4 | 08-14-2006 11:35 PM |
| Is this calculation correct? | h3ndrix | Stepper Motors and Drives | 4 | 02-07-2006 01:08 AM |
| resistor calculation need help | mike10 | Stepper Motors and Drives | 2 | 03-29-2005 10:21 PM |
| Back EMF calculation? | OCNC | Stepper Motors and Drives | 12 | 12-08-2004 11:03 AM |