5660
« on: December 16, 2017, 07:19:12 PM »
Hi,
I wouldn't be concerned with limit switches initially. Home switches are important though. Your proposal to use two switches each for x any y axes will be fine.
You still need a z axis home switch. If you could arrange it to be near the top of travel all well and good but its not essential.
If for instance you had to mount your Z axis home switch 20mm lower than the extreme top so that it fitted or did not otherwise foul or restrict the axis
movement. Once you've homed your machine the machine coordinate of the extreme top would be 20mm, and the bottom would be -80mm if you had
100mm of travel say. Your soft limits would be 20 and -80. I know it sounds a bit weird to have your z axis machine zero inside the boundaries, 20mm
short of the top in this example, but so what? Its not really that you use machine co-ordinates, Mach does not you. When you are working at the machine
you'll be using work coordinates.
Another alternative that may well assuage your misgiving about having the machine zero at other than an extreme of axis travel is to use the Home Offset
provision of Mach. Again with the example above with the home switch 20mm short of the top you can set the <home offset> setting of -20mm.
Then the machine would home as normal stopping on your Z axis home switch (20mm short of the top) but instead of the machine coordinate being set to zero
it would be set to -20mm. If you jogged until the machine coordinate of the Z axis was zero you would be at the extreme top of travel. The advantage is that
the top of travel is 0 and logical for us humans but your switch is at 20mm below that but that turned out to be a much better place to put the switch.
Craig