We demonstrate a time-optimal control algorithm based on the sliding mode control principle to control a robot manipulator. A designed time-optimal trajectory during the reaching phase is combined with fast sliding dynamics. The discontinuous algorithm gives a time response closer to the analytical time-optimal control solution based on the Pontryagin principle, and robust performance in the presence of plant parameter uncertainties.