They actually will function as limit switches.
You need to make sure this is set:
$21=1 (hard limits, bool)