The invention relates to a method for operating a robot (1) comprising a robot arm (2) having a plurality of links (5-11), a fastening device (12) and a tool (13) fastened to the fastening device (12), and a control device (3) for moving the robot arm (2), which is designed to control the robot arm (2) in an automatic mode such that the tool (13) automatically follows a workpiece path (15) on a workpiece (16) at least substantially parallel to a workpiece edge (17) of the workpiece (16). The invention also relates to a robot (1) for carrying out the method, which has in particular a mechanical feeler device (14).
展开▼