- Posts: 22008
- Thank you received: 3
Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
- tommylight
-
- Online
- Administrator
-
Less
More
2 years 4 months ago #303071
by tommylight
Replied by tommylight on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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 to join the conversation.
2 years 4 months ago #303075
by eduard
Replied by eduard on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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?
Please Log in to join the conversation.
2 years 4 months ago #303076
by eduard
Replied by eduard on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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.
forum.linuxcnc.org/ethercat/51830-marco-...rcat?start=20#302562
But still having issues to turn off internal homing, after homed.
Please Log in to join the conversation.
2 years 4 months ago #303077
by eduard
Replied by eduard on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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.
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.
Please Log in to join the conversation.
- tommylight
-
- Online
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
2 years 4 months ago #303080
by tommylight
Replied by tommylight on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
home_offset = -1
Please Log in to join the conversation.
2 years 4 months ago #303081
by eduard
Replied by eduard on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
Nothing happens if
home_offset = -1
or
home_offset = 0
the machine still can go to the switch.
home_offset = -1
or
home_offset = 0
the machine still can go to the switch.
Please Log in to join the conversation.
2 years 4 months ago #303092
by Aciera
Does the drive use the limit switch for homing?
Replied by Aciera on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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'.Nothing happens if
home_offset = -1
or
home_offset = 0
the machine still can go to the switch.
Does the drive use the limit switch for homing?
Please Log in to join the conversation.
2 years 4 months ago #303093
by eduard
Replied by eduard on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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.
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 to join the conversation.
2 years 4 months ago #303096
by Aciera
Replied by Aciera on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
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:
Code:
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
Please Log in to join the conversation.
2 years 4 months ago #303100
by Aciera
Looking at the default 'motion/homing.c' it may not be all that much work to get it to work:
Replied by Aciera on topic Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
Looking at 'el8_homecomp.c' confirms that 'HOME_OFFSET' is indeed not implemented: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
Attachment not found
Looking at the default 'motion/homing.c' it may not be all that much work to get it to work:
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.604 seconds
