224
« on: January 08, 2013, 01:27:04 AM »
I believe Mach could drive the machine with two separate cross-slides, driven by two separate motors, in sync with the Z axis.
The Mach profile can be set-up as the traditional Z, X, plus a B axis.
Providing the code is the “trick.” ……….. (And, not worth doing, IMO.)
Consider you program an MDI move for the tool to travel from one corner of a “virtual” rectangular box to the opposite corner.
If the start point is the top of box, right/rear corner, and the end point is bottom of the box, left/front corner, the X, Y, and Z axis motors move simultaneously from start to finish. The three axis’ dimensions of the “virtual” rectangular box may all be different dimensions, but the motion is a straight line (within the tolerances of the machine) from start to end.
Mach integrates the steps; all we provide is; G1 X5 Y6 X-1 at the start and X-3 Y-2 Z-4 for the end point values on the next line of the program. We just made an X, Y, Z move with three axis’ moving in sync.
Nothing new so far; this is the “magic” of a CNC machine we use without a second thought.
In the Lathe problem, the two cross slides are riding on the Z axis; X and B must both be in sync with the Z, even though they may be moving at different rates, different directions, or number of steps with each other.
In other words, each incremental step size chosen for the Z, will be similar to the description of a
“Virtual rectangle box” motion from one corner to the other; but it will be Z, X, B moving in sync.
The “bad” part of this code programming is that the Z increment (distance travel) is the “baseline” for the programming.
The Z axis must move some given distance, to produce a corresponding X and B move. In real life, sometimes the Z is stationary, while X is making a cut, like a facing motion, or moving very slowly in tiny steps in relation to the X, as when cutting the OD of a sphere.
For each increment of the horizontal Z path, each corresponding displacement value of the “X”, and the displacement value of the “B” must be programmed on the same line.
One possible method would to use CamBam. Output the dxf for the Z,X profile, and divide the Z(X axis in CamBam) line into however many increments needed. You can then save the CSV file of X (the Z axis) and Y (the X axis) coordinates. CamBam can store the point pairs in a separate file.
Do the same for the Z,B profile, and save this CSV file.
(Note: CamBam may be able to combine the two profiles, but you would have to ask on the forum.)
The two profiles can now be combined using MS Excel.
Paste the first Z,X CSV file into into Excel. You will have two columns. Now paste the second Z,B CSV file into the same spreadsheet, in the next two columns. Make sure to keep the common Z “Zero” point aligned vertically.
You will now have an Excel spread sheet with (4) columns,
Z, X, Z, B.
Delete the duplicate Z column after making sure the Z “Zero” columns match exactly vertically before you delete; add in columns for the G-code letters Z, X, and B in the appropriate position. Save the spreadsheet as a .txt file, and you have a G-code text file that Mach should be able to load and run.
Some CAD programs may be able to do this without the bother of using Excel, but I am not into CAD lathe programming and do not have knowledge of such details.
--------
Unless I am missing something, I see NO viable reason to build a lathe to do this kind of operation.
Two passes with different tools will do the same thing, and utilize the functions such as cutting radii, linear slopes, vertical slopes, and do it well.
This goofy dual slide set-up removes the smooth motions of a standard CNC lathe; you cannot do a vertical slope; you cannot thread, or plunge a slot. Also, such a set-up more than likely would be a jerky motion, as the feed rate “vectors” (three axis) would be jumping all over the place, as all the vectors are tied to the Z axis traveling some given distance. Some moves simply could not be done realistically, like cutting a vertical face. And, it certainly is not easily programmed.
I also do not believe such a machine makes a big cycle time improvement, as the motion cannot be as smooth as a standard Z, X lathe profile.
The machine in the picture probably has a very high "Gee Whiz" factor, to impress onlookers.