A motion control method for teaching a robot position by moving a robot end-point to a teaching preset position, in a system for displaying an image captured with a camera on a monitor and for setting a positional relationship between the camera and the robot end-point so that the captured image changes in conjunction with the operation of the robot end-point, the motion control method comprising:
- an operating-command input step of inputting an operating command to the robot on a camera coordinate system having, as a reference, an image capturing screen displayed on the monitor;
- a converting step of generating a motion vector on the camera coordinate system for moving the robot from the current position to the next moving position in accordance with the operating command on the camera coordinate system input from the operating-command input step and converting the motion vector on the camera coordinate system into a motion vector on a robot coordinate system;
- a operating-instruction generating step of generating a motor instructing value to be given to a motor arranged at a joint of the robot based on the motion vector on the robot coordinate system obtained by the converting step;
- and
- a motor control step of controlling the motor arranged at the joint of the robot in accordance with the motor instructing value generated by the operating-instruction generating step.