![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Visual Basic Discuss Visual Basic programing. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Does anyone know where I can find the source code that would print out the g-code for an arc? The g-code would look something like this, "N30 G2 X115 Y113.3 I-43 J25.52". Maybe someone know's the math behind this. My little bitty brain just can't quit get a grasp on it. Any help would be very much appreciated. Gary |
|
#2
| ||||
| ||||
| If you know the start pint, endpoint, and radius of the arc, you should be able to google to find the math. You'll also need to know if it's CW or CCW.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| ||||
| ||||
| Actually, if you know the startpoint, endpoint, and radius, the only math you would need is to find the center.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#6
| ||||
| ||||
| This should get you in the right direction. http://mathforum.org/dr.math/faq/faq...e.segment.html
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#8
| ||||
| ||||
| Gary, A while back I posted some Visual Basic source code in the Coding forum. You didn't say what programming language you were looking for, but hopefully you can decipher what you need from it. It includes a function for calculating the arc center from start, end and radius. Open source geometry stuff Regards, Scott |
|
#11
| |||
| |||
| widgitmaster, Thanks for the link. I am trying to figure out how to use MetlHead's Geometry module to use in a program I am trying to write. I ain't figured it out yet but I'm trying. Must be nice not to be so darn dumb. Gary |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |