Homing and limit in one switch.

More
12 May 2025 19:31 #328306 by DarkPhoinix
Homing and limit in one switch. was created by DarkPhoinix
I am try homing and limits.For test i have only Y stepper driver installed.
Homing work.
but i limit stop not work. I need for safety and bad moves.

hal:
#Homing and limits
net Y_HOME remora.input.09 => joint.1.home-sw-in

ini:
[AXIS_Y]
#MAX_VELOCITY = 100.0
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 30.0
MIN_LIMIT = 0
MAX_LIMIT = 30000.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = 0
MAX_LIMIT = 30000.0
#MAX_VELOCITY = 100.0
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 30.0
SCALE = 160.0
FERROR = 1.0
MIN_FERROR = 0.5
#HOME_SEARCH_VEL = -10.0
#HOME_LATCH_VEL = -3.0
#HOME_FINAL_VEL = 20
#HOME_IGNORE_LIMITS = YES
#HOME_USE_INDEX = NO
#HOME_OFFSET = -20.0
#HOME = -10.0
#HOME_SEQUENCE = 2
#HOME_OFFSET = 0.0
#HOME_SEARCH_VEL = 50
#HOME_LATCH_VEL = 50
#HOME_SEQUENCE = 50

HOME = 1
HOME_OFFSET = -3
HOME_SEARCH_VEL = -10
HOME_LATCH_VEL = 30
HOME_SEQUENCE = -1
#HOME_USE_INDEX = False
#HOME_IGNORE_LIMITS = True

I read:
forum.linuxcnc.org/38-general-linuxcnc-q...tches-is-it-possible
forum.linuxcnc.org/38-general-linuxcnc-q...ng-on-a-single-input
www.forum.linuxcnc.org/49-basic-configur...sibly-wrong?start=60
forum.linuxcnc.org/plasmac/46160-homing-...ctive-before-backoff
linuxcnc.org/docs/devel/html/config/ini-homing.html

what do i need to do to make the limits work?
Why doesn't homing lock the stepper instantly and needs a monstrously slow motion for the initial search?
 


 
Attachments:

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

More
12 May 2025 20:17 #328308 by DarkPhoinix
Replied by DarkPhoinix on topic Homing and limit in one switch.
added ini:
HOME_IGNORE_LIMITS = True

added hal:
net Y_HOME remora.input.09 => joint.1.home-sw-in joint.1.neg-lim-sw-in
Work!


I still need to figure out why the home search has to be done so slowly.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
12 May 2025 23:08 #328327 by tommylight
Replied by tommylight on topic Homing and limit in one switch.
In the ini file
HOME_SEARCH_VELOCITY
HOME_LATCH_VELOCITY
HOME_FINAL_VELOCITY
Any of those you have, set to some reasonable value in machine units per second.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum