How is the definition position_endstop applied?

See Home offset for small PEI - #4 by Sineos