Greetings,
I need to write code parametrically for "Arch Top" window sash. There are numerous arced paths involved (CutOut OD, Plane on center line, Rough Cutout ID, Profile ID) but they are all arcs of concentric circles so the circles centers are all at exactly the same point XY.. The length of the part is on the Y axis. The center line of the part is on the circle diameter and all share the same Y coordinate with the diameter.
It's easy to calculate the X coordinates at this center diameter - for example the finished part is 2.125" wide so the OD is at X 0 and the ID is at X 2.125. Using a 1/4" bit the OD path would be through X -.125 and the ID path would be through X 2.25. The problem lies in what the X coordinates are at the ends of the arcs since they are not at that point diameter and are significantly different than those at the diameter. For example, at the ends of the same part that's 30" long the difference between the OD and ID of the finished part is 2.227".
I'm sure I could scrounge around and find the trig algorithm to specify the X coordinates at the ends of the arcs but I'm hoping there is a G-code function that allows me to specify the center of the circles, the length of the radii and the start and end Ys. One would think that's all the information needed to execute the path.
See attachment for simplified image.
Thanks