1
General Mach Discussion / Re: Auto-height-compensation possible?
« on: July 05, 2011, 05:58:33 AM »
Hi,
when Marc told me about this I thought that would be easy to do in Mach and so I told him, that I would look into it.
My first try was to simply change the reference system (G54 etc.) according to the height profile. This apparently is not looked at during a move.
My 2nd try was to directly modify the trajectory buffer's Z position. This somehow works but this way I redo some work, which the engine does anyhow:
The engine must keep somewhere what the destination coordinates are and fill the trajectory buffer accordingly.
Changing those coordinates' Z part as a function of XY position seems to me the easiest way to achieve the height compensation.
However, looking through the headers I couldn't figure out, where this would be stored.
Does anybody know if this is accessible from within a plugin?
Cheers, Frank.
when Marc told me about this I thought that would be easy to do in Mach and so I told him, that I would look into it.
My first try was to simply change the reference system (G54 etc.) according to the height profile. This apparently is not looked at during a move.
My 2nd try was to directly modify the trajectory buffer's Z position. This somehow works but this way I redo some work, which the engine does anyhow:
The engine must keep somewhere what the destination coordinates are and fill the trajectory buffer accordingly.
Changing those coordinates' Z part as a function of XY position seems to me the easiest way to achieve the height compensation.
However, looking through the headers I couldn't figure out, where this would be stored.
Does anybody know if this is accessible from within a plugin?
Cheers, Frank.