A method for calculating a positional relationship between a substrate transfer robot and a substrate placement portion, the substrate transfer robot being provided with a robot reference axis and having an object detection sensor for detecting an object obstructing a detection area, and a robot arm for moving the detection area in a plane perpendicular to an axial direction of the robot reference axis, the substrate placement portion having a plurality of targets and being configured to rotate about a rotation axis extending in parallel to the axial direction, for each of the plurality of targets, the method comprising the steps of:
- detecting a part of a surface of the target that is located on an inner circumferential side of a predetermined circle using the object detection sensor at a plurality of rotation positions,
- wherein the circle is centered on the rotation axis and passes through the plurality of targets, and
- wherein at least one of a rotation position of the target about the rotation axis and a rotation position of the detection area about the robot reference axis is changed for each of the plurality of rotation positions;
- calculating a quantity correlated with an index length representing a distance from the robot reference axis to the target, wherein the target is detected by the object detection sensor, for each of the plurality of rotation positions;
- and
- calculating the positional relationship between the robot reference axis and the rotation axis on the basis of, among the plurality of rotation positions, the one at which the quantity correlated with the index length is maximized or minimized.