. . "According to an aspect of the present invention, a robot controller comprises: storing means for storing assignment information on types of stopping procedure assigned for each of a plurality of causes for stopping the robot; detecting means for detecting a first cause for stopping occurred in the robot associated with the robot controller; designating means for designating a first type of stoppin" . .