Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!

More
15 Jun 2024 19:57 #303071 by tommylight
Also, home 0 with home_offset 0 and min limit 5 will most probably not work, you have those for X and Z axis.

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

More
15 Jun 2024 20:11 #303075 by eduard
Here is the latest ini. Still having issues while powering off lcnc, but after homing, jogging from 0,0,0 to any other point, and power off, does not complaining about softlimits. Am I missing something? 
Attachments:

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

More
15 Jun 2024 20:13 #303076 by eduard
Here is how I did it.

forum.linuxcnc.org/ethercat/51830-marco-...rcat?start=20#302562

But still having issues to turn off internal homing, after homed.

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

More
15 Jun 2024 20:36 #303077 by eduard
This is how I solved for now: moved all axes 1mm out from home 0 point. 

This is not a good solution, just temporary, but working. Still not understand how soft limits work (in lcnc), and how to stop the machine in a distance from the switches. 


 
Attachments:

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

More
15 Jun 2024 20:45 #303080 by tommylight

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

More
15 Jun 2024 20:59 #303081 by eduard
Nothing happens if

home_offset = -1

or

home_offset = 0

the machine still can go to the switch.

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

More
16 Jun 2024 07:07 #303092 by Aciera

Nothing happens if

home_offset = -1

or

home_offset = 0

the machine still can go to the switch.

Since 'home_offset' is the standard procedure for this and definitely works on my machines I would guess your custom homing comp does not support 'home_offset'.
Does the drive use the limit switch for homing?

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

More
16 Jun 2024 08:44 #303093 by eduard
Yes, the drives using limit switch to homing. The homing process is:

1. Fast limit sw search
2. direction change at low speed
3. stop at first z signal
4. lcnc homed

It is possible, the offset is not implemented. I'm using Marco Reps modifications with a custom comp file, which is based on standard homing.c

What is the desired motion if home offset is on? Let say 1mm.

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

More
16 Jun 2024 09:32 #303096 by Aciera
Here is an example of a Z-axis on a mill using a limit/home switch at the positive end of travel and an index signal from a linear glass scale:
HOME_SEARCH_VEL = 20      # find limit/home switch
HOME_LATCH_VEL = -10       # find  index signal from glass scale in opposite direction
HOME_OFFSET = -46.0          # set position at index signal (ie the actual zero position is located 46mm below the index location)
HOME_FINAL_VEL = 15         # move to zero position
HOME_USE_INDEX = YES
HOME_IGNORE_LIMITS = YES

 
The following user(s) said Thank You: Clive S

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

More
16 Jun 2024 10:56 #303100 by Aciera

It is possible, the offset is not implemented. I'm using Marco Reps modifications with a custom comp file, which is based on standard homing.c

Looking at 'el8_homecomp.c' confirms that 'HOME_OFFSET' is indeed not implemented:

 

Looking at the default 'motion/homing.c' it may not be all that much work to get it to work:

 
Attachments:
The following user(s) said Thank You: DPFlex

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

Time to create page: 0.127 seconds
Powered by Kunena Forum