I almost lost hope...
I tried all possible versions of Mach3, reinstalled WIN (from win11 to Win10),... without success.
Sometimes the procedure executed normally, but mostly I got "Error on line: Internal error <While IsMoving>..."
After spending many hours, I found a conflict between the tool change procedure (where I used axis movements and While IsMoving...), and the Macropump procedure.
In Macropump I used the function "G52 X150" and "G52 Y150"
I used this because I have three spindles on the machine and according to the selected tool in the program, the movement was automatically performed...
Now, when I wanted to arrange automatic tool change on one of these spindles, it got complicated...
Is there any other possibility of automatic movement of the coordinate system without additional M-codes in the G-code itself - movement to the corresponding spindle according to the selected tool number?
I would like for tools 1-5 (Spindle1) to have no movement (only the zero point is taken into account), for tools 6-10 (Spindle2) a movement for the zero point + X150mm (this is the distance between the Spindles), and for tools 11-15 (Spindle3) for Y150mm .