- 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: 19188
- Thank you received: 6430
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
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: 19188
- Thank you received: 6430
Please Log in or Create an account to join the conversation.
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.
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.
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.
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.
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!