Horizontal and vertical upward
Vertical downward
[nmax,1] = min-1
Maximum permitted emergency stop speed depending on the use case