I am familiar generating G-Code for an X-Y plasma table.
My new 3-D printing project has circular rails, 1) full 360-degree track in the X-Y plane for rotation around the Z-axis. 2) on that track, standing up vertically at 90 degrees to the circular track, rotates a half-circle arch gantry, and, 3) along that gantry travels a tool carriage holding a linear actuator with the printing nozzle that points towards the center of the hemisphere circumscribed by the arcs.
The machine is built. I'm pretty sure there is no out-of-the-box solution for generating the G-Code to place the nozzle at a particular point in cartesian coordinate space. G-Code assumes the tool travels along linear axes. We plan to use KFLOP for motion control.
My current plan is to convert back and forth between spherical and cartesian coordinate systems: We have a point xyz in cartesian coordinates, we translate that point into the machine's spherical coordinate system to find the distance that each actuator needs to travel to arrive at that point, generate the G-Code from those distances (xMachine,yMachine,zMachine) and I feed that point into the KFLOP which moves the nozzle to the desired xyz point!
Planned method for doing this is to build a 3-D model of the desired shape, query the model at regular intervals for xyz along the desired toolpath / translate xyz to machine spherical coordinates (latitude, longitude and 'elevation' or distance from the center point) / generate G-Code from that / send to KFLOP and we're there, right?
Thank you for any insights you may have.