Here, Read this post and hopefully you'll get a better idea of what's going on. https://www.forum.linuxcnc.org/forum/32-documents/12146-an-explanation-of-limits-homing-hope-its-clear
If you DO have a home switch you did not make a connection for it in hal. The instructions I gave you to edit your hal file were based on the idea that I thought you were homing to a limit switch. If your home switch isn't at the very end of travel on the axis I suggest you don't bother with it and just home to the limit switch. 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. > Doesn't matter if you have a home switch if you haven't connected it to anything in hal. Are all of the switches connected to different pins on the BBB? 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. > > No idea, I thought you were trying home to a limit switch. Where is your home switch located, how long is the axis exactly, and why bother with the home switch anyway? You will see linuxcnc is using 0, and machinekit NO. > > I assure you, it does not matter. Machinekit is built on an old version of LinuxCNC. This is the X axis on one of my machines running on LinuxCNC, you will see the word "NO" #******************** # Axis X #******************** [AXIS_X] MIN_LIMIT = 0 MAX_LIMIT = 20.65 MAX_VELOCITY = 4 MAX_ACCELERATION = 15 [JOINT_0] TYPE = LINEAR HOME = 10.325 FERROR = 0.5 MIN_FERROR = 0.05 MAX_VELOCITY = 4 MAX_ACCELERATION = 15 # The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION # If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger. STEPGEN_MAXVEL = 5 STEPGEN_MAXACCEL = 20 P = 1000 I = 0 D = 0 FF0 = 0 FF1 = 1 FF2 = 0 BIAS = 0 DEADBAND = 0 MAX_OUTPUT = 0 # these are in nanoseconds DIRSETUP = 7500 DIRHOLD = 2000 STEPLEN = 7500 STEPSPACE = 1000 STEP_SCALE = -3446.67 #MIN_LIMIT = 0 #MAX_LIMIT = 20.65 HOME_OFFSET = -0.2500000 HOME_SEARCH_VEL = -0.7 HOME_LATCH_VEL = -0.2 HOME_FINAL_VEL = 1 HOME_USE_INDEX = NO HOME_IGNORE_LIMITS = NO HOME_SEQUENCE = 0 -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/c9e62382-5913-4542-ab5e-54e9cdd4f3d1%40googlegroups.com.
