How to solve the problem:
In the proposed solution the elevator moves up and down with two speeds. The switches 'near...' are used to switch to slow motion in order to stop the elevator exactly at the limit switch. All actions are used with the 'N'-qualifier.