Leo wrote:Simply adding the corresponding coordinate shift at the beginning of the code you want to run and that will be the new machining location. From there you can use the relative (point to point) programming. That is not so uncommon.
Cool.
I looked at the DIN66025 (Gcode) interpreter of the cnc machine controller and G54 is available!
Never used this but it seems like this:
- Code: Select all
G54 X30
will move the zero point of the X axis +30mm.
Good! So I can experiment with it and see if that helps.
I think G54 should work in general.
Alternatively... it seems that I can write a macro (never did this, seems to be written in C#) which sets X=0 and Y=0. And I can add this macro to every position in the G-Code Editor. So I could import the positions (which I previously saved as teach-in points [X/Y coordinates]) then add the "zero X,Y" command right after each G00 movements.
Even better... I could save sub-macros... for example "3mm hole" and add teh "zero x,y" to the beginning of this g-code.

Thanks guys! You're great. The idea with setting the axis to zero seems to be a good workaround. So simple that this did not came into my mind.

Thanks so much!
Roelli.