Hello! I have a feeling that you should look at this part: https://linuxcnc.org/docs/html/config/ini-homing.html#_home_ignore_limits
IMHO the setup might look like this (theoretical idea, not tested in practice): max_limit = 100 home_offset = 102 home = 99 home_final_vel = 50 (or whatever reasonable velocity) home_ignore_limits = 1 This way home/limit switch would be 2 mm outside of theoretical work envelope, so you should never hit it during normal operation, but it will reach it during homing and move the machine inside work envelope after doing home_search and home_latch moves Viesturs ceturtd., 2026. g. 14. maijs, plkst. 15:43 — lietotājs Marco (<[email protected]>) rakstīja: > > Hi, > > I've got my basic setup working and have made some cuts. Time to add > the limit switches. For now, I've added one switch on Z+. This > should act as a limit and homing switch. It's sort-of working but… > > When I'm homing the Z axes (joint 2), the machine correctly moves > towards the switch, the machine stops and I get: > > joint 2 on limit switch error > emc/task/taskintf.cc 976: Error on joint 2, command number 95 > > So this doesn't seem correct. It appears that it acts mainly as a > limit switch and doesn't quite double-up as homing switch. Likely > due to misconfiguration on my side. > > I also observed that it shuts off all movement, not only movement > towards Z+ if the switch triggers. Not sure if that's by design or > another sign of misconfiguration. > > I've read > > https://linuxcnc.org/docs/html/config/ini-homing.html > > but frankly, that's a lot to digest. Find my configuration attached. > What do I need to change so I can use this single switch for homing > as well as a limit switch? > > Marco > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
