A return-to-origin method of a horizontal articulated robot, the horizontal articulated robot comprising at least:
- a base;
- a base side link rotatably connected to the base;
- an arm section side link coupled to the base side link;
- an arm section freely rotatably connected to the arm section side link;
- a hand section freely rotatably connected to the arm section to hold a work;
- a storage for storing teaching data;
- and a computation unit which controls drive of the base side link, the arm section, and the hand section on a basis of the teaching data, the horizontal articulated robot being used for transferring the work, and the base side link and the arm section side link constituting a link mechanism configured to control in such a manner that a movement locus of a center point of a coupling shaft of the arm section side link and the arm section becomes a predetermined straight line, and, with a center of rotation of the base side link with
- respect to the base as an origin, a specified via point is specified for each quadrant of an XY orthogonal coordinate system in which one of two opposite directions parallel to the predetermined straight line is an X-axis positive direction,
- the return-to-origin method comprising:
- continuously executing recording of coordinates of the horizontal articulated robot during transfer operation and return-to-origin operation,
- when a return-to-origin request is input, determining whether or not a current coordinate of the horizontal articulated robot when the return-to-origin request is input is within a predetermined range from a latest recorded coordinate,
- when the current coordinate is within the predetermined range, calculating a locus for the return-to-origin operation and moving the horizontal articulated robot in a returning direction to a return-to-origin position,
- when the current coordinate is not within the predetermined range, calculating past transfer paths based on past teaching data stored in the storage, and determining whether or not there is any calculated transfer path close to the current coordinate among the past transfer paths, and if there is the calculated transfer path close to the current coordinate, moving the horizontal articulated robot to the calculated transfer path, and then moving the horizontal articulated robot to the return-to-origin position, and
- if there is no calculated transfer path close to the current coordinate among the past transfer paths, determining whether or not the hand section is positioned outside of a turn safe area, and when the hand section is positioned outside of the turn safe area, pulling the hand section to an inside of the turn safe area and then moving the horizontal articulated robot to the return-to-origin position through the specified via point specified for each quadrant of an XY
- orthogonal coordinate system.