[AXIS_0] # # Step timing is 40 us steplen + 40 us stepspace # That gives 80 us step period = 12.5 KHz step freq # # Bah, even software stepping can handle that, hm2 doesnt buy you much with # such slow steppers. # # Scale is 200 steps/rev * 5 revs/inch = 1000 steps/inch # # This gives a maxvel of 12.5/1 = 12.5 ips # TYPE = LINEAR MAX_VELOCITY = 20.0 MAX_ACCELERATION = 5000.0 # Set Stepgen max 20% higher than the axis STEPGEN_MAX_VEL = 70.0 STEPGEN_MIN_VEL = 0.001 STEPGEN_MAX_ACC = 5000.0 STEPGEN_MIN_VEL = 0.001 BACKLASH = 0.000 # scale is 1600 steps/rev * (1/8) revs/mm = 200 # scale is 800 steps/rev * (1/8) revs/mm = 100 SCALE = -200 MIN_LIMIT = -251.0 MAX_LIMIT = 251.0 #FERROR = 20.0 #MIN_FERROR = 5.00 FERROR = 5 MIN_FERROR = 0.25 HOME = 0.000 HOME_OFFSET = 250.00 HOME_IGNORE_LIMITS = NO HOME_USE_INDEX = NO HOME_SEQUENCE = 0 HOME_IS_SHARED = 0 # Set to zero if you don't have physical home/limit switches # Set to the desired homing and latch velocity if you have switches # See: https://github.com/machinekit/machinekit-docs HOME_SEARCH_VEL = 7 HOME_LATCH_VEL = 1 # these are in nanoseconds DIRSETUP = 2000 DIRHOLD = 2000 STEPLEN = 10000 STEPSPACE = 10000
This is what it needs to be....no/0/false all mean the same thing on the boolean parameters:
HOME_IGNORE_LIMITS = YES HOME_IS_SHARED = YES
If there is not a separate home switch input for this axis, but a number of momentary switches wired to the same pin, set this value to 1 to prevent homing from starting if one of the shared switches is already closed. Set this value to 0 to permit homing even if the switch is already closed.
You will see linuxcnc is using 0, and machinekit NO.

For HOME_IGNORE_LIMITS documentation says "If you do not have a separate home switch set this to YES and case connect the limit switch signal to the home switch input in HAL".I have separate home switch (cramps hat for bbb has XYZ for each min max pins available), therefore I set that to NO. But I also tried with YES and I get error in each case.
limits of x axe are -251 and 251, and home_offset by definition from docs (quoted above) should be 250 ?? Please correct me if I do not understand correctly.
You will see linuxcnc is using 0, and machinekit NO.

I belive that this on picture is called home switch, and I actually dont care about limit switch - I want to have configuration that cares about this home switch only - and only for X axis - other axis should not be taken into acount while homing. Do I have correct configuration for this?
That is a limit switch since it's at the very end of travel, but there's only one switch? The first hal file you posted had that whole section commented out.That is either your min-limit, or your max limit, depending on how that thing is oriented. I would tend to call that the Min-limit but that's up to you. If that's your minimum limit switch then you don't have a home or max limit switch.
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to a topic in the Google Groups "Machinekit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/machinekit/6a9AUOleAXE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/e52adf48-2a4f-4eb2-bf1b-615648763e56%40googlegroups.com.
Yes there is only one switch - this is enough for calibrating x axis - no?It is max limit switch since it position is positive.Have you seen anything weird in my last configuration because I still cannot make this work?regards
On Wed, 21 Aug 2019 at 14:44, justin White <blaz...@gmail.com> wrote:
That is a limit switch since it's at the very end of travel, but there's only one switch? The first hal file you posted had that whole section commented out.--That is either your min-limit, or your max limit, depending on how that thing is oriented. I would tend to call that the Min-limit but that's up to you. If that's your minimum limit switch then you don't have a home or max limit switch.
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to a topic in the Google Groups "Machinekit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/machinekit/6a9AUOleAXE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/e52adf48-2a4f-4eb2-bf1b-615648763e56%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to machinekit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/58db6373-158b-4420-a136-e6ab6f172664%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/58db6373-158b-4420-a136-e6ab6f172664%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to machinekit+unsubscribe@googlegroups.com.