- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!
- tommylight
-
- Away
- Moderator
-
- Posts: 19973
- Thank you received: 6781
Please Log in or Create an account to join the conversation.
- eduard
-
Topic Author
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 12
Please Log in or Create an account to join the conversation.
- eduard
-
Topic Author
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 12
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.
- eduard
-
Topic Author
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 12
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 or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
- Posts: 19973
- Thank you received: 6781
Please Log in or Create an account to join the conversation.
- eduard
-
Topic Author
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 12
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.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4262
- Thank you received: 1879
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 or Create an account to join the conversation.
- eduard
-
Topic Author
- Offline
- Premium Member
-
- Posts: 80
- Thank you received: 12
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.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4262
- Thank you received: 1879
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 or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
- Posts: 4262
- Thank you received: 1879
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
Looking at the default 'motion/homing.c' it may not be all that much work to get it to work:
Attachments:
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Help Needed: Cracking the Code on LinuxCNC Servo Homing Setup!