Patent attributes
A robot with a noncontact sensor is configured to: perform the predetermined motion in a state where the moving object does not enter, and thereby store, for each of a plurality of measurement points set in a movable range of the robot, an output value of the noncontact sensor as a reference output value in advance, and stop the predetermined motion when the output value of the noncontact sensor changes from the reference output value at the measurement point closest to a current operating position of the robot by a first threshold value or larger when the robot is performing the predetermined motion in a state where the moving object could possibly enter and the current operating position of the robot is in a range in which it is necessary to determine an entering state of the moving object.