On Thu, 30 Apr 2020 at 16:59, Leonardo Marsaglia <[email protected]>
wrote:

>
> What I would like to know is. Does G96 only work when lathe mode is on?
>

Possibly, though I would be surprised as LATHE is an INI entry in the
[DISPLAY] section.


> Does it automatically recognise the X axis? Because I don't know if I have
> some problems with the axis declarations on the INI and HAL files but I'm
> just guessing.
>

I am pretty sure that it uses G-code X rather than a joint. (which is
something of a  limitation, maybe we should have G96.1 to use Y, G96.6 to
use U)

https://github.com/LinuxCNC/linuxcnc/blob/5cb4a18e0068fe430a2f2acbf219530f68c30c32/src/emc/motion/control.c#L1839-L1881

Is where the HAL pins are set.

xoffset looks important:
Set here:
https://github.com/LinuxCNC/linuxcnc/blob/5cb4a18e0068fe430a2f2acbf219530f68c30c32/src/emc/motion/command.c#L1787
(Looks wierd, I am suspecting a misused variable)
https://github.com/LinuxCNC/linuxcnc/blob/5cb4a18e0068fe430a2f2acbf219530f68c30c32/src/emc/task/taskintf.cc#L1866
Yes, it appears so.
And here i where it is calculated:
https://github.com/LinuxCNC/linuxcnc/blob/5cb4a18e0068fe430a2f2acbf219530f68c30c32/src/emc/task/emccanon.cc#L1882-L1884

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to