Hello
I recently converted a 4-axis CNC machine for a customer. The machine was previously controlled by some old system that was still on WIN98.
The computer crashed and it was no longer possible to start the thing...
The 4th axis (parallel to X) was used only for positioning and did not work simultaneously with the other axes.
This system converted the standard G-code into a file with pulses with some compiler and controlled the machine from this file.
When I ran now the original G-code on Mach3, the program ran, but when the 4th axis was repositioned, there was a shift along the Y and Z axes.
I found out that the old system automatically recalculated the rest of the program after the A15 command and moved the rest of the program along the Y and Z axes.
I'm thinking that this would be possible in Mach3 with the G52 Y? Z? function, but I don't know how I could recalculate this shift in the script.
I tried by inserting M200 after A15 and writing some formulas for the calculation in this script and then calling G52 with these values.
The shift works but with my knowledge I can't come up with the correct formula.
For an easier presentation I am also attaching an example....
Any idea would be welcome.