There's more to it than just the .hal file. The .ini file needs tweaking too. The Search Velocity can't be 0. A negative value is used when the home switch is in the direction of the '-' key. That's the speed the motor moves to find and activate the home switch. The LATCH velocity is the speed it moves off it again in the other direction until it deactivates. I use activate and deactivate to represent the switch changing state. In my case the switches are closed and the activate opens them.
My Home switch is also shared with the Negative motion limit switch but not the Positive motion limit switch but the HOME_IGNORE_LIMITS means that when it is activated it's not a limit switch error. And there's one home switch for each axis so I believe HOME_IS_SHARED means the switch is not shared with any other axis. Theoretically that would send Z home first and then do X and Y together. I was able to get all but the Z axis working and then spent several hours searching the web, trying to understand the HAL and figure out why DB25-13 wasn't working connected to the Z axis switch. The pin stayed low regardless of the state of the switch. It didn't look like there was anything else pulling the line low. So out came the magnifying glass, then some solder flux and the touch of an iron to re-solder what appeared to be a solder joint on the pull up resistor which was not actually connected to the pad. Now the meter reliably read 10K from the pin to the 3.3V rail and once re-installed and Machinekit running I had a working Z axis. Such a simple solution . Oh and NO_FORCE_HOMING = 0 must be set to zero to have the system actually want to home. I had it set to 1 earlier when I was testing the HP-UHU Servo drive with the BBB-DB25/26 since I didn't have home switches. HOME = 0.000 HOME_OFFSET = 0.00 HOME_SEARCH_VEL = -.1 HOME_LATCH_VEL = 0.2 HOME_IGNORE_LIMITS = YES HOME_IS_SHARED = 0 #HOME_SEQUENCE = 2 On Wednesday, April 18, 2018 at 6:35:34 PM UTC-7, John Dammeyer wrote: > > Answering one of own questions I think... >> > From the Wiki for standard parallel port modified for the BBB and Xylotex > BBB-DB25/26: > > >> # connect DB25-11 to X home and min limit >> net home-x bb_gpio.p8.in-10 => axis.0.home-sw-in axis.0.neg-lim-sw-in >> > # connect DB25-12 to Y home and min limit >> net home-y bb_gpio.p8.in-14 => axis.1.home-sw-in axis.1.neg-lim-sw-in >> >> # connect DB25-13 to Z home and min limit >> net home-z bb_gpio.p8.in-18 => axis.2.home-sw-in axis.2.neg-lim-sw-in >> >> # connect DB25-15 to all three max limits >> net XYZ-max-lim bb_gpio.p9.in-41 => axis.0.pos-lim-sw-in >> axis.1.pos-lim-sw-in axis.2.pos-lim-sw-in >> >> >> > > Theoretically the above should work. More when I try it > -- 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]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
