Hello,
I have a Mini-Lathe converted to CNC and would like to use the Lathe Macros provided Andy Pugh ( @Andy: Thanks a lot for that ).
To become familiar with the macros I used the SIM lathe example configuration in order to not destroy anything, if have some false understanding of how to use it.
For testing I enabled the start button in lathemacro.ui file and tried the turning cycle.
I didn't get the tool path which I would have expected and saw, that in the debug messages the start diameter and the start length
were not the values I had jogged to before starting the cycle.
It took me some time to find out that the lathe example configuration has TOOL_CHANGE_POSITION = 2 0 1 ( these are probably inch values, but I use mm ) defined in the INI file and the M6 command in the turning.ngc changes my previously set X and Z coordinates to the tool change position.
As soon as I removed the TOOL_CHANGE_POSITION from the INI, it works as expected.
If the reading of #<_x> and #<_z> would be done before the M6 command the definition of the TOOL_CHANGE_POSITION wouldn't matter.
Used version of LinuxCNC is 2.8.4.
The version of the Lathe Macros was downloaded from
github.com/andypugh/LatheMacros/archive/refs/tags/v2.0.tar.gz
I'm not sure if I downloaded the correct version and may be I'm describing a behavior that might have already been fixed.
Best regards
Werner