Homing with absolute encoders

More
5 years 5 months ago - 5 years 5 months ago #210223 by PKM
Replied by PKM on topic Homing with absolute encoders
This looks like a suspect

github.com/LinuxCNC/linuxcnc/blob/2e58fb...motion/homing.c#L997

I compiled from source, so I can try to change something...
Last edit: 5 years 5 months ago by PKM.

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

More
5 years 5 months ago #210225 by PKM
Replied by PKM on topic Homing with absolute encoders
Oh.
I mentioned that the position changed even without homing.
So it must be somewhere else, right?

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

More
5 years 5 months ago #210232 by andypugh

PKM wrote: This looks like a suspecthttps://github.com/LinuxCNC/linuxcnc/blob/2e58fb153ca8197d5a2149313fbc7cb300ca0b2f/src/emc/motion/homing.c#L997


That line shouldn't execute if HOME_ABSOLUTE_ENCODER is set.

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

More
5 years 5 months ago - 5 years 5 months ago #210236 by PKM
Replied by PKM on topic Homing with absolute encoders
I understand that it should not...
Anyways, it changes even without homing.
Is the offset kept somewhere when the machine is off? The problem might be there
Last edit: 5 years 5 months ago by PKM.

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

More
5 years 5 months ago #210330 by PKM
Replied by PKM on topic Homing with absolute encoders
The problem disappeared when I moved the ini file to a separate folder.

Now the position is read from the drives at startup and HOME_ALL applies joint offsets.

There are some inconvenient things, though:
1. To change the offsets, HOME_ABSOLUTE_ENCODER should be set to 0 for all joints. And then set back to 1 or 2.
2. Homing is not automatic. But that can be set up in HAL, I guess?

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

More
5 years 5 months ago #210379 by andypugh
You can connect halui.home-all to icontrol.0.machine.is-on (or similar)
The following user(s) said Thank You: PKM

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

Time to create page: 0.070 seconds
Powered by Kunena Forum