Method of programming manipulator, control system and industrial robot