homing, store corrections in log file ?

More
08 Nov 2012 05:51 #26353 by vroemm
Hi.

Can linuxcnc after homing store the corrections in a log file ?

Could be useful during trouble shooting.

As i am doing now :-)

also: I am trying to find the place in the linuxcnc source code where the value of the axis is set to zero after homing.
Can someone give me a hint where to find the place in the git source code ?

Thanks..

Vroemm.

Please Log in or Create an account to join the conversation.

More
08 Nov 2012 17:05 #26363 by jmelson

Hi.

Can linuxcnc after homing store the corrections in a log file ?

LinuxCNC stores the offsets relative to the machine home position in the var file
every time it shuts down, so that workpiece offsets (G54, etc.) can be restored
when it is next started up. I think that might be waht you are asking for.


also: I am trying to find the place in the linuxcnc source code where the value of the axis is set to zero after homing.
Can someone give me a hint where to find the place in the git source code ?

This is done in various drivers, so they would mostly be in
src/hal/drivers. In hardware servo interfaces, this is often actually done
in the encoder counter module, external to the PC. When encoder
index pulses are available, the most accurate homing can be performed
when the hardware counter resets its count when the index pulse is
seen. This makes resolution more accurate than the typical 1 ms
\servo thread timing. So, the motion hal component sets encoder_index_enable
and when the index pulse is detected, the counter is zeroed.

Jon

Please Log in or Create an account to join the conversation.

More
08 Nov 2012 20:39 #26372 by andypugh

: I am trying to find the place in the linuxcnc source code where the value of the axis is set to zero after homing.

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...fs/heads/v2.5_branch
Line 587.

Please Log in or Create an account to join the conversation.

More
09 Nov 2012 02:20 #26388 by vroemm

: I am trying to find the place in the linuxcnc source code where the value of the axis is set to zero after homing.

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...fs/heads/v2.5_branch
Line 587.


I think this is what i was looking for.

Thanks !

Vroemm.

Please Log in or Create an account to join the conversation.

Time to create page: 0.303 seconds
Powered by Kunena Forum