Set the two limits, the hysteresis width and the initial output. The hysteresis width must be smaller than the distance between the limits.
Move the input slowly up and down. The output switches at the limits and only returns to 0 once the input has moved back by the hysteresis width.
Changing a parameter restarts the controller from the initial output.